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

Choosing Multiple Selection in ABAP report executes the program

sankharupa_saha
Discoverer
0 Likes
1,758

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?

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?

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
1,383

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.

Read only

sankharupa_saha
Discoverer
0 Likes
1,383

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.

Read only

oliver_wurm
Active Participant
0 Likes
1,383

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