cancel
Showing results for 
Search instead for 
Did you mean: 

loop in SAP script

Former Member
0 Kudos

Hi Experts,

I have to call a perform from the script which returns variable internal table as per the driver program , so please suggest how to call this perform so that whole the variable loop is transferred in script.

I have to print line items for a accounting document number.

Thank You,

Regards,

Anuj Saraswat

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

Is there any thing that tells the driver program of a perticular form, actually i am editing the old one so dont know about the driver program for my form.

Thank You,

Regards,

Anuj Saraswat

Former Member
0 Kudos

Hi Anuj,

Check this thread for the details of driver program:

Regards,

Chandra Sekhar

Former Member
0 Kudos

Hi All,

Can we use loop in form printer in script or how to deal with variable parameters requiremnts in perform call.

Thank You,

Regards,

Anuj Saraswat

Former Member
0 Kudos

Hi Anuj Saraswat,

You can do one think to print line items for a accounting document number.

Loop the internal table which contains the item details and inside loop endloop. write the function module WRITE_FORM.

For every line item, write_form is executed and the line item is displayed in the script.

Best rergards,

raam

Former Member
0 Kudos

Hi

In how many internal tables u r fetching data in program.

Based on loop condition u fetch data from ur interbnal table.

Regards:

Parbu

Former Member
0 Kudos

Hi Prabhu,

I am fetching data only in one internal table itab_line from table BSEG with where condition on BELNR. It returns different number of records for a perticular BELNR, I have to print all those record in the from.

Thank You,

Regards,

Anuj Saraswat

Former Member
0 Kudos

Hi Anuj,

Check out this code:

http://thespot4sap.com/Articles/SAPscript_example_code.asp

http://www.sap-img.com/sapscripts/sample-sapscripts-label-printing-program.htm

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Aug 26, 2008 11:08 AM