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

screen navigation between two report

Former Member
0 Likes
556

Hi Everyone,

can anyone help me out in this:

I have created two reports,i have placed button in one program and when i press button it should go to second report selection screen.

module USER_COMMAND_0100 input.

*case sy-ucomm.

  • when 'enter'.

*

  • SUBMIT Zreport via selection-screen and RETURN.

  • endcase.

please can anyone tell me how to navigate from button in one program to another program selection screen.

3 REPLIES 3
Read only

Kiran_Valluru
Active Contributor
0 Likes
523

Hi.,

U created 2 reports say., rep1 and rep 2. when u press button in rep1 it should call report 2 ., so., u create a tcode for rep2 let say zrep2 (hope u know how to create a tcode., goto se93 transaction enter tcode name then enter report name and create a tcode).

Now in ur program., (report 1)

when button pressed.,

call transaction 'ZREP2' .

hope this helps u.,

reply u need some more clarifications.,

Thanks & Regards

Kiran

Read only

0 Likes
523

hi,

As u said u have developed 2 reports means it will be alv reports. So,

in REUSE_ALV_GRID_DISPLAY pass


I_CALLBACK_USER_COMMAND = 'USER_COMMAND'  
I_CALLBACK_PROGRAM = sy-repid

and



FORM USER_COMMAND  USING r_ucomm LIKE sy-ucomm
                                   rs_selfield TYPE slis_selfield.
 if  r_ucomm = 'BUTTON_CLICKED'.  " function code of button clicked
     submit prog_name via selection-screen and return.
endif.
endform.

hope it helps u...

Edited by: mihir6666 on May 4, 2011 8:10 AM

Read only

Former Member
0 Likes
523

Hi,

Looks like you are doing a dialog program,If you are having only buttons in your first screen then create another screen with your desired selection screen in the same program, get the values in that selection and then pass it to the next report.

But if you are having a selection screen and a button in your first dialog program then I don't think there is a necessity for another selection screen to appear in your second report.