Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table maintenance generator loop through the records

former_member317781
Active Participant
0 Likes
1,049

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.

1 REPLY 1
Read only

Former Member
0 Likes
706

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.