Application Development and Automation 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: 
Read only

Problem in calling multiple sapscript form

Former Member
0 Likes
521

Hi Gurus,

Good Morning.

I developed a program using SAPscript form. In the program i need to call the sapscript form 4 times with different label but with same content so that different receiver will have a copy.

Can anyone help me regarding with my problem?.

Thank you in advance.

Regrads,

dranel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
479

Dear Dranel,

You can use option button for select perticular script form.

with it just open any form of the report.

syntax:

if opt_1 eq 'X'

CALL FUNCTION 'OPEN_FORM'

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'REPORT1'

LANGUAGE = SY-LANGU.

else.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'REPORT2'

LANGUAGE = SY-LANGU.

endif.

Main widow with element is here.

CALL FUNCTION 'CLOSE_FORM'.

is the last statement. you can use this way.

I hope this will help you to call multiple sap script form.

Regards,

Nayan Lad

2 REPLIES 2
Read only

Former Member
0 Likes
480

Dear Dranel,

You can use option button for select perticular script form.

with it just open any form of the report.

syntax:

if opt_1 eq 'X'

CALL FUNCTION 'OPEN_FORM'

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'REPORT1'

LANGUAGE = SY-LANGU.

else.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = 'REPORT2'

LANGUAGE = SY-LANGU.

endif.

Main widow with element is here.

CALL FUNCTION 'CLOSE_FORM'.

is the last statement. you can use this way.

I hope this will help you to call multiple sap script form.

Regards,

Nayan Lad

Read only

0 Likes
479

Dear Nayan Lad,

Thank you.

I already did what you told but instead that the sapscript form is appeared only the screen for printer appear and go back to the select-screen.

Again thank you.,

Regards,

dranel