cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent- loop-endloop in SAPscript

Former Member
0 Kudos

Hi Gurus,

Plz tell me whether we can use loop-endloop statment in sap script to print data in loop in sap script without using driver program?.

Points will be rewarded to right Ans.

regards

Rajesh.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rajesh,

There is no way you can use a loop endloop within scripts. Instead you can use PERFORM ENDPERFORM within the script and get data from another program without changing the standard driver program.

Former Member
0 Kudos

hi,

Loop Endloop statements works in driver program ...but not in the form ...

Regards,

Santosh

Former Member
0 Kudos

Hi,

The LOOP logic of a SAPscript is held in the print program, not the form. Your ABAP print program will typically extract the data, open the form, loop through the data, call elements in the main window then close the form.

There is no LOOP statement in SAPscript.

Regards,