Application Development 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: 

Two transactions, 1 program

Former Member
0 Kudos

Hi there, I am trying to figure out the best way to so this. I need to have 2 different selection screens for the same program. Can I use START_REPORT to accomplish this? If so, I know it is done with a parameter transaction, but I'm just not sure how to code it. Can someone help?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

You can define the different selection screens like below..

SELECTION-SCREEN BEGIN OF SCREEN 100.
PARAMETERS: cityfr TYPE spfli-cityfrom,
            cityto TYPE spfli-cityto.
SELECTION-SCREEN END OF SCREEN 100..

SELECTION-SCREEN BEGIN OF SCREEN 500 .


PARAMETERS: airpfr TYPE spfli-airpfrom,
            airpto TYPE spfli-airpto.

SELECTION-SCREEN END OF SCREEN 500.

And create different transaction codes for each screen (100 , 500).

5 REPLIES 5

Former Member
0 Kudos

hi,

You can define the different selection screens like below..

SELECTION-SCREEN BEGIN OF SCREEN 100.
PARAMETERS: cityfr TYPE spfli-cityfrom,
            cityto TYPE spfli-cityto.
SELECTION-SCREEN END OF SCREEN 100..

SELECTION-SCREEN BEGIN OF SCREEN 500 .


PARAMETERS: airpfr TYPE spfli-airpfrom,
            airpto TYPE spfli-airpto.

SELECTION-SCREEN END OF SCREEN 500.

And create different transaction codes for each screen (100 , 500).

0 Kudos

Thank you so much!

0 Kudos

One question about this approach. Why would my initialization event not work properly for selection screen 200?

former_member194669
Active Contributor
0 Kudos

Possible options are

1. Create a single selection screen with all the fields in it and while calling the START_REPORT use different variants for execution.

2. Use SHD0 and create different transaction variants

How to create Transaction Variant

0 Kudos

Question on this - I tried to do this with a custom report and it doesn't give the pop up. Can this only be done on SAP transactions or on custom screens?