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: 

How to create a screen that execute others reports

0 Kudos

Hello guys.

I want to create a Z report or a dialog screen (I don't know which is better) to execute two others reports.

My screen needs have tow label zrep1, zrep2 and two execute buttons for each zreport as well.

Someone can help me?

Regards.

Happy coding.

1 ACCEPTED SOLUTION

nikbereziuk
Explorer

If I were you, I would create a simple selection screen with two radiobuttons and just call the respective program when a user presses F8:

REPORT ztest_two_progs.

PARAMETERS:
 rep1 RADIOBUTTON GROUP grp,
 rep2 RADIOBUTTON GROUP grp.

START-OF-SELECTION.

 CASE 'X'.
 WHEN rep1.
 cl_demo_output=>display( 'Executing first program' ).
 WHEN rep2.
 cl_demo_output=>display( 'Executing second program' ).
 ENDCASE.

Instead of demo messages just call the program you need, using key word SUBMIT

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abapsubmit.htm

3 REPLIES 3

nikbereziuk
Explorer

If I were you, I would create a simple selection screen with two radiobuttons and just call the respective program when a user presses F8:

REPORT ztest_two_progs.

PARAMETERS:
 rep1 RADIOBUTTON GROUP grp,
 rep2 RADIOBUTTON GROUP grp.

START-OF-SELECTION.

 CASE 'X'.
 WHEN rep1.
 cl_demo_output=>display( 'Executing first program' ).
 WHEN rep2.
 cl_demo_output=>display( 'Executing second program' ).
 ENDCASE.

Instead of demo messages just call the program you need, using key word SUBMIT

https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abapsubmit.htm

It works. Ty.

0 Kudos

The user wanted it the way I drescribed. hahahaa

So I developed something based on trees.

Check the link -> https://desenvolvimentoaberto.org/2014/04/16/visual-sap-tree-treeview-cl_simple_tree_model-node_doub...