cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Smartform/Sapscript printing at a time

Former Member
0 Kudos

Hi All,

is it possible to print multiple Smartforms/ scripts at a time? If so,how?

The script/smartform can be of multiple pages also.

Please let me know.

Any helpful answers will be rewarded with points.

Thanks,

Anshumita.

Accepted Solutions (0)

Answers (4)

Answers (4)

anshumita_baksi
Explorer
0 Kudos

My query is answered. Thanks a lot for your help!

Former Member
0 Kudos

Hi,

In sap-script put your open_form w/ formname outside the loop.

while in smartforms consolidate all your data in one calling of the fm generated by smart form.

Former Member
0 Kudos

Hi,

If the Script is triggered from the custom program other than that of Transaction , then using start_form we can print Multiple scripts at a single print request.

Ex:

call function 'OPEN_FORM'

exporting

language = sy-langu.

call function 'START_FORM'

exporting

form = 'ZCN_LINES'

language = sy-langu.

call function 'WRITE_FORM'

exporting

element = 'LINES'

window = 'MAIN'.

call function 'END_FORM'.

call function 'START_FORM'

exporting

form = 'ZCN_TEST'

language = sy-langu.

call function 'WRITE_FORM'

exporting

element = 'DEMO'

window = 'MAIN'.

call function 'END_FORM'.

call function 'CLOSE_FORM'.

former_member585060
Active Contributor
0 Kudos

Yes u can do it in SAPScript,

In driver program

Call the FM

OPEN_FORM

START_FORM

WRITE_FORM

END_FORM

START_FORM

WRITE_FORM

END_FORM

CLOSE_FORM.

former_member585060
Active Contributor
0 Kudos

Just use

FM 'OPEN_FORM' once no need to specify FORM name, as it is over written by START_FORM parameter FORM. ,

No of Forms u want to print.

START_FORM

WRITE_FORM

END_FORM

START_FORM

WRITE_FORM

END_FORM

START_FORM

WRITE_FORM

END_FORM

FM 'CLOSE_FORM' At last after all forms used.

Regards

Bala Krishna