Question:
In purchase order I need to calculate through line loop 3 totals: total quantity in liters, weight and estimated packages of purchased items.
In order to do it I created 3 different line loops with 3 SQL queries and store the result in 3 different SAP UDFs.
Is there a way to avoid 3 iterations, by looping only 1 time and store data in different LLRESULT in order to speed up the calculation time?
Answer:
It is only possible to calculate one final result with Line loop.
If you need more then create Line UF's of type macros that store the values collected using either the @STORE system or write the values to a work-userdefined table (using ExecuteSQL command).