04-26-2005 4:10 AM
I have to develop a report which is used to drive 3 sapscript forms.The 3 sapscript driver programs are created as 3 separate report programs.Now i should combine all this 3 report programs in my single report.In the selection screen of my report i will provide 3 radio buttons for each sapscript report program.when i choose one among of those radiobuttons and click execute,the corresponding report program should be run.How to proceed abt this.can any give sample code on this.
Thanks.
04-26-2005 5:14 AM
Hello Murthy,
In the START-OF-SELECTION event, you just need to check which of the radio button option have been selected on the radiobutton group and submit the corresponding report.
Assuming that P_REPORT1 , P_REPORT2 AND P_REPORT3 are the parameters that you have defined to be a radio-button group, you would have something like this..
START-OF-SELECTION.
IF P_REPORT1 = 'X'.
SUBMIT REPORT1....
ENDIF.
IF P_REPORT2 = 'X'.
SUBMIT REPORT2....
ENDIF.
IF P_REPORT3 = 'X'.
SUBMIT REPORT3....
ENDIF.
When the user selects a rdio button on the selection screen and hits the Execute button, the control comes to START-OF-SELECTION.
Regards,
Anand Mandalika
04-26-2005 4:38 AM
Hi..
this can be achieved using SUBMIT <program> command.
click the link below to know about the command.
http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm
Hope it solves your purpose.
Regards,
Vara
04-26-2005 5:14 AM
Hello Murthy,
In the START-OF-SELECTION event, you just need to check which of the radio button option have been selected on the radiobutton group and submit the corresponding report.
Assuming that P_REPORT1 , P_REPORT2 AND P_REPORT3 are the parameters that you have defined to be a radio-button group, you would have something like this..
START-OF-SELECTION.
IF P_REPORT1 = 'X'.
SUBMIT REPORT1....
ENDIF.
IF P_REPORT2 = 'X'.
SUBMIT REPORT2....
ENDIF.
IF P_REPORT3 = 'X'.
SUBMIT REPORT3....
ENDIF.
When the user selects a rdio button on the selection screen and hits the Execute button, the control comes to START-OF-SELECTION.
Regards,
Anand Mandalika