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: 

loop statement in sap script

Former Member
0 Kudos

hi gurus,

I have one internal ,now i have to use loop statement in sap script .

Is it possible? ,if yes ,please tell me with one example.

warm regards.

2 REPLIES 2

Former Member
0 Kudos

Hi,

WE can use these loops in driver program.Plz do check this link u may get some idea hoew to use it...

Regards,

Sana.

Reward points if helpful,,.....

Former Member
0 Kudos

Hi pawan,

1. We cannot loop on internal table,

inside the sapscript layout.

2. We have to take care of that, in the driver program.

3. like this, inside the driver program.

loop at itab.

call function 'WRITE_FORM'.

endloop.

4. Inside the layout, we should have some

text element, for ONE lineitem,

so this text element will get called in the loop,

and hence, get printed that many times, one by one,

having the workarea values.

regards,

amit m.