Application Development 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: 

How to overcome looping problem in Table control?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

Check the sample program RSDEMO_TABLE_CONTROL and see how the table control has been handled .

Regards,

Ravi

former_member181962
Active Contributor
0 Kudos

Check the sample program RSDEMO_TABLE_CONTROL and see how the table control has been handled .

Regards,

Ravi

Former Member
0 Kudos

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