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: 

Display output for either one of programs based on radio button

sun_light
Explorer
0 Kudos
205

Hi experts,

I have 2 reports and each report has diff parameters

1st report- Zdir, it's parameter p_dir.

2nd report- Zfile , it's parameter p_file.

I want to create selection screen with 2 radio buttons and 2 respective parameters.

If I click 1st radio button and fill p_dir, it should execute 1st report.

If I click 2nd radio button and fill p_file, it should execute 2nd report.

Also if i click 1st radio button, it should alow me to fill only p_dir, it shouldn't allow to fill p_file.

Expect some clear solution for this.

Thanks in advance.

1 ACCEPTED SOLUTION

adityaIngale
Active Participant
0 Kudos
148

Hi sun_light,

Follow the following steps

1. First create 3rd report in which create selection screen for radio buttons.

2. Use 'Screen-input = 0' to disable the input of fields.

3. Write condition like if 1st radio button selected then call the 1st report and vice versa.

4. Use below syntax to call your 1st and 2nd program into 3rd program.

SUBMIT <your report name> WITH <your parameter name> = 'your parameter value'.

Find below some link related to your requirement.

https://answers.sap.com/questions/3451034/how-to-call-one-program-from-another-program.html

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abapsubmit.htm#:~:text=The%20statement%20...

Regards,

Aditya

2 REPLIES 2

ThorstenHoefer
Active Contributor
0 Kudos
148

adityaIngale
Active Participant
0 Kudos
149

Hi sun_light,

Follow the following steps

1. First create 3rd report in which create selection screen for radio buttons.

2. Use 'Screen-input = 0' to disable the input of fields.

3. Write condition like if 1st radio button selected then call the 1st report and vice versa.

4. Use below syntax to call your 1st and 2nd program into 3rd program.

SUBMIT <your report name> WITH <your parameter name> = 'your parameter value'.

Find below some link related to your requirement.

https://answers.sap.com/questions/3451034/how-to-call-one-program-from-another-program.html

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abapsubmit.htm#:~:text=The%20statement%20...

Regards,

Aditya