05-18-2009 6:23 AM
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
05-18-2009 6:53 AM
Hi,
Please go through the link.You may find it helpful.
http://help.sap.com/abapdocu/en/DYNPLOOP.htm
Regards
05-18-2009 8:46 AM
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
05-18-2009 11:23 AM
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
05-18-2009 11:36 AM