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

How to call Report when clicking pushbutton in module pool program ?

Former Member
0 Likes
2,202

Hello ,

      I am working with module pool program . in this screen one push button is there , when i am clicking push button in module pool screen then how to call report program selection screen . i am using  gtable (my own fileds) .

               thank & reg .

                 prasad g .

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

4 REPLIES 4
Read only

former_member215575
Active Participant
0 Likes
1,031

Hi Prasad,

You can make use of SUBMIT statement (VIA SELECTION SCREEN).

Pseudo code:

CASE ok_code.

     WHEN <function code of push button>.

          SUBMIT <program> .VIA SELECTION SCREEN.

      WHEN others.

ENDCASE.

Regards,

SG

Read only

Former Member
0 Likes
1,031

Hi

check the link which give information on your requiremnt, as per the above thread call submit in your user command. when button is clicked the required report is called.

http://scn.sap.com/thread/747527

Read only

former_member212705
Active Participant
0 Likes
1,031

Hi Prasad,

you can do one thing. Create a transaction code from SE93 for your report program selection screen. and call it from Module pool.

Case.

When 'GO'.

call transaction 'ZREPORT'.

Endcase.

Thanks,

Ashish

Read only

m4abrams
Participant
0 Likes
1,031

Hi Prasad,

I think ur best bet is to follow what Sravan said...

Under the fcode 'GO_TO_REPORT_SELNSCREEN' for that button...

case v_ok

when 'GO_TO_REPORT_SELNSCREEN'.    

         submit zreport via selection-screen <with...values> and return.

*will allow u to go to zreport seln screen and control/pgm flow will finally return to module-pool

endcase.

submmit zreport has mulitple extensions for various reasons...

1. You can pass values dynamically to the zreport selectn fields,

2. You can skip the seln screen,

3. You can BOTH skip the selection screen and pass dynamic values to seln screen 

I personally recommend using "submit report" over "call transaction".

Tell me if this works for u.

Abraham