06-26-2015 12:12 PM
We have a problem here in our project.
We have a report that has three obligatory parameters, no intervals.
This program is called from another program. When run on a stand alone basis, it works fine.
When called from another program, when I give all screen mandatory parameters, and click on the multiple selection arrow : , instead of taking me to the dialog box for multiple selection, the program gets executed.(behaves like F8)
I debugged to find that on clicking this button, SY-UCOMM gets set to ONLI, resulting in program execution. While running stand-alone, SY-UCOMM does not get set to ONLI.
Anybody has any idea why this could be happening?
06-26-2015 12:44 PM
Rather than attempt to solve this, rewrite your first program so that business logic is removed from the screen logic - into a function module or class for example - and call this FM directly from your second report.
06-26-2015 12:48 PM
Problem solved.
Seems like SAP creates problems when a screen with obligatory parameters is called from another program. Removed obligatory from the screen, and made parameters obligatory through code.
Thanks.
06-26-2015 1:02 PM
Hi,
if you click on the AT SELECTION-SCREEN event is raised. You should not have code that belongs to the program logic in that section. Maybe you missed the START-OF-SELECTION Statement so that the complete program logic gets processed under AT SELECTION-SCREEN ??
Regards
Oliver