‎2010 Mar 27 3:10 AM
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
‎2010 Mar 27 3:22 AM
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
‎2010 Mar 27 3:22 AM
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
‎2010 Mar 27 6:36 AM
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