04-03-2007 1:16 PM
If the table control displays,say for eg 5 rows in the screen,it is looping the same in flow logic.
What if the table control has 10 rows but only 5 rows are displayed? and i want to loop through all the records in the flow logic.
how to overcome this problem?
Points will be awarded for answers.
Regards
Raja
04-03-2007 1:23 PM
Hi
U need to insert a new LOOP for you internal table and store the data in a different headerline:
PROCESS PAI (or PBO).
LOOP AT ITAB.
MODULE LOOP_ITAB.
ENDLOOP.
MODULE LOOP_ITAB.
LOOP AT ITAB INTO WA.
IF SY-TABIX = <TABLE CONTROL>-CURRENT_LINE
*--->It's the same record of LOOP of PAI (or PBO).
ENDIF.
ENLOOP.
ENDMODULE.
Max
04-03-2007 1:19 PM
Check the sample program RSDEMO_TABLE_CONTROL and see how the table control has been handled .
Regards,
Ravi
04-03-2007 1:20 PM
Check the sample program RSDEMO_TABLE_CONTROL and see how the table control has been handled .
Regards,
Ravi
04-03-2007 1:23 PM
Hi
U need to insert a new LOOP for you internal table and store the data in a different headerline:
PROCESS PAI (or PBO).
LOOP AT ITAB.
MODULE LOOP_ITAB.
ENDLOOP.
MODULE LOOP_ITAB.
LOOP AT ITAB INTO WA.
IF SY-TABIX = <TABLE CONTROL>-CURRENT_LINE
*--->It's the same record of LOOP of PAI (or PBO).
ENDIF.
ENLOOP.
ENDMODULE.
Max