Copy FlowField to other table

awatharam86awatharam86 Member Posts: 49
I need idea on this. Let say I copy some records from one table and store in a temporary table. I able to copy all the fields except the flowfield from source table.
How to copy flow fields to another table?

This is my coding :-

IF "Cust. Ledger Entry".FINDSET THEN
REPEAT
"TempCust.LedgerEntry".INIT;
"TempCust.LedgerEntry"."Entry No." := "Cust. Ledger Entry"."Entry No.";
"TempCust.LedgerEntry"."Customer No." := "Cust. Ledger Entry"."Customer No.";
"TempCust.LedgerEntry"."Posting Date" := "Cust. Ledger Entry"."Posting Date";
"TempCust.LedgerEntry".Amount := "Cust. Ledger Entry"."Amount"; //THIS Amount FIELD IS FLOW FIELD ACTUALLY.
"TempCust.LedgerEntry".INSERT(TRUE);
UNTIL "Cust. Ledger Entry".NEXT = 0;

If I run this code, the amount value returns 0.
Please share, thanks in advance.

Comments

Sign In or Register to comment.