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

Two transactions, 1 program

Former Member
0 Likes
832

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
Read only

Former Member
0 Likes
779

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
Read only

Former Member
0 Likes
780

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).

Read only

0 Likes
779

Thank you so much!

Read only

0 Likes
779

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

Read only

former_member194669
Active Contributor
0 Likes
779

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

Read only

0 Likes
779

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?