hi,
you need calculate flowfields to get calculate values.
example
Codeunit 50001 TestCalcfields
Local Variables
recVendorLedgerEntry record Vendor Ledger Entry
OnRun()
recVendorLedgerEntry.GET(2551); --> obtain record (GET is like FIND on primary key)
MESSAGE('Amount : ' + FORMAT(recVendorLedgerEntry.Amount));
--> Result 0
recVendorLedgerEntry.CALCFIELDS(Amount); --> calculate flowfield
recVendorLedgerEntry.CALCFIELDS(Remaining Amt. (LCY)) etc. etc. --> calculate flowfield
MESSAGE('Amount : ' + FORMAT(recVendorLedgerEntry.Amount));
--> Result "Amount value" > ex. 50.240