I wanna get data Bank Account Name from Bank Account table (270) in my Report Payment Voucher. How I get that values ?
![wki1okewe8rd.png](https://us.v-cdn.net/5022383/uploads/editor/fo/wki1okewe8rd.png)
Picture above is the data I want to get.
I have code...
IF R_BankAccount.GET("Gen. Journal Line"."Account No.") THEN
BankAccount := R_BankAccount.Name;
Note : R_BankAccount is Record Lookup To Bank Account table (270), And BankAccount is Text Variable.
That cannot work.
Answers
the above example should work.
Where do you use this code?