The value of VAT payable and VAT ledger balance should match for the system to automatically pick VAT payable amount in stat payment transaction. If the payment transaction is recorded from Gateway of Tally > Accounting Vouchers > F5: Payment, the return has to be saved for the system to pre-fill the VAT payable amount in the transaction.