Skip to Content
0
Former Member
Nov 28, 2008 at 11:18 AM

Function module inside a loop

196 Views

Hi Experts,

I am using a FM 'PRICING_SUBSCREEN_PBO' inside a loop.

This FM should work for all the line items in a contract . But my issue is that this works only for the first line item and not populating the required tables . This happens because inside the FM two internal tables are getting polpulated in the first iteration,in the second iteration there are read statements from these tables ,which will end up in exit from FM without populating the required output tables,in case of succesful read statements.

I want all the internal table inside the FM to be cleared after first iteration. What to do.

Is there any way to reset the FM ?

Thanks in advance