‎2007 May 11 1:24 PM
Hi experts
i developed a intial screen,upon clicking a button on the screen it should give me a report.how to achieve it
‎2007 May 11 1:29 PM
Hi,
Use the sample code given below:
case sy-ucomm.
when 'BUTTON'.
Submit to 'program name' and return.
endcase.
OR, if ur report program is attached with a report transaction then u can use the code:
case sy-ucomm.
when 'BUTTON'.
call transaction 'Report Transaction'.
endcase.
If helpful, then please reward with some points.
Regards,
Pulokesh
‎2007 May 11 1:26 PM
‎2007 May 11 1:28 PM
for the push button u would have given a function code.
data : ok_code type sy-ucomm,
save_ok like ok_code.
in PAI module. use this code.
save_ok = ok_code.
clear ok_code.
case save_ok.
when '<function code>'.
call screen 9001 (ur report screen) or write ur report coding here.
endcase.
‎2007 May 11 1:28 PM
Hi
You can design like :In a screen you can design the selection-screen(A) of the report and get the output in 1 more screen(B).
and from ur modulepool screen call the screen B when clicks happend.
Try with this approach.
Regards,
Sreeram
‎2007 May 11 1:29 PM
Hi Ganesh,
In the PAI Event of the screen. Use SUBMIT <reportname> to call the report.
Reward all helpful answers!!!!
Younus
‎2007 May 11 1:29 PM
Hi,
Use the sample code given below:
case sy-ucomm.
when 'BUTTON'.
Submit to 'program name' and return.
endcase.
OR, if ur report program is attached with a report transaction then u can use the code:
case sy-ucomm.
when 'BUTTON'.
call transaction 'Report Transaction'.
endcase.
If helpful, then please reward with some points.
Regards,
Pulokesh
‎2007 May 11 1:29 PM
HI,
Hope you asing a function code for that button which you are clicking..
write in PAI..
If function code = <that button function code>'
include <your program name>.
endif.
reward if useful
regards,
nazeer
‎2007 May 11 1:29 PM
hi..
check the demo program
demo_dynpro_push_button for push button and coding.Use submit keyword for report.
regards,
veeresh
‎2007 May 11 1:34 PM
hi,
double click on PA! module then
write code in PBO module as
fun_code like sy-ucomm.
fun_code = sy-ucomm.
case fun_code.
when 'buttons function code'.
submit 'report prog name'. or if you know the screen number to display then write as call screen 'scrno'.
when 'others'.
.........
endcase.
helpful reward some points.
withregards,
sureshbabu aluri
‎2007 May 11 1:44 PM