2015 Sep 11 8:07 AM
Hi Good day,
i have created a table maintenance generator and created a Module to get the Net Amount based on the Purchase order number.
when i run create the records sometimes it brings incorrect values.
when i try to DEBUG it does not loop through all the records but it only does to top 12 - 14 recrods
ex : if their are 85 records it only loops through 12 - 14 records.
i have created EVENTS and written the logic now but my previous records are incorrect and i want to correct them.
my Question is why does it not loop through all the records?
LOOP AT EXTRACT.
CHAIN.
FIELD ZPRV1-ZCONTRACT_AMOUNT MODULE Get_Net .
ENDCHAIN.
ENDLOOP.
thank you,
J.
Hi Good day,
i have created a table maintenance generator and created a Module to get the Net Amount based on the Purchase order number.
when i run create the records sometimes it brings incorrect values.
when i try to DEBUG it does not loop through all the records but it only does to top 12 - 14 recrods
ex : if their are 85 records it only loops through 12 - 14 records.
i have created EVENTS and written the logic now but my previous records are incorrect and i want to correct them.
my Question is why does it not loop through all the records?
LOOP AT EXTRACT.
CHAIN.
FIELD ZPRV1-ZCONTRACT_AMOUNT MODULE Get_Net .
ENDCHAIN.
ENDLOOP.
thank you,
J.
2015 Sep 11 10:51 AM
Hi,
It is looping as per the SY-LOOPC value in the PAI.
If you want to calculate looping at all the values , you can create a module and loop at the table EXTRACT again and do the calculation.
Hope this helps.