‎2011 May 04 3:50 AM
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.
‎2011 May 04 4:49 AM
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
‎2011 May 04 7:09 AM
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
‎2011 May 04 11:15 AM
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.