In Sales Header table I made a FlowField: Total Line Amount. It sums amounts from the connecting sales lines.
Now I need the value of this FlowField in another application, so I thougt to store the value of it in another field (called Order Amount) of Sales Header table.
Is it possible? Is this code right?
CALCFIELDS(“Total Line Amount”);
Order Amount := “Total Line Amount”;
I do not know where to write this code. I tried OnValidate triggers of Order Amount and Total Line Amount fields, and OnInsert, OnModify triggers of Sales Header table, but neither of them was good.
Thank you for any help,