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

module programing help

Former Member
0 Likes
981

Hi experts

i developed a intial screen,upon clicking a button on the screen it should give me a report.how to achieve it

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
960

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

9 REPLIES 9
Read only

Former Member
0 Likes
960

Hi,

use command:

Submit 'report_name'.

Read only

Former Member
0 Likes
960

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.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
960

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

Read only

Former Member
0 Likes
960

Hi Ganesh,

In the PAI Event of the screen. Use SUBMIT <reportname> to call the report.

Reward all helpful answers!!!!

Younus

Read only

Former Member
0 Likes
961

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

Read only

Former Member
0 Likes
960

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

Read only

former_member673464
Active Contributor
0 Likes
960

hi..

check the demo program

demo_dynpro_push_button for push button and coding.Use submit keyword for report.

regards,

veeresh

Read only

Former Member
0 Likes
960

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

Read only

Former Member
0 Likes
960

thanks guyz