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: 

Looping of Table Control rows

Former Member
0 Kudos

Hi Experts,

I have a table control with say 10 rows. I have entered data only in the first row.

But, the Loop with table control is continuing for 10 rows, which I don't want.

Can anyone of you please tell me, how to restrict this Looping process ?

I want loop only for those many rows in which data is entered.

Thanks,

Chandan

4 REPLIES 4

Former Member
0 Kudos

Hi,

Please go through the link.You may find it helpful.

http://help.sap.com/abapdocu/en/DYNPLOOP.htm

Regards

Former Member
0 Kudos

Hi

I think in table control loop...endloop , it will always loop for all rows in the table control. But you can use some parameters like TOP_LINE , sy-stepl etc to write the logic.

regards

Amarendra

Former Member
0 Kudos

Hi,

you write a statement

Describe table itab lines to wa_lines.

Then you loop at upro wa_lines times.

This may help you.

Thanks and regards,

Venkat

Former Member
0 Kudos

solved