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 link report program to a button in modulepool

Former Member
0 Likes
556

Hii

i have designed a gatepass screen in modulepool..and created a table to store all the details entered in tht screen..

i have written a report progam to print all the details frm tht table..

now i want to call tht report program when i click on display button in modulepool output..can anyone help me regarding this...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
528

hi,

At user command in PAI write the code in f-code of button

 
SUBMIT zreport AND RETURN

Thanks

Arun

4 REPLIES 4
Read only

Former Member
0 Likes
528

I have provided few options that might help you resolve the issue.

When the display button is clicked

AT USER COMMAND.

WHEN 'DISPLAY'

option 1: Submit <report name> and return.

option 2: call transaction <t-code> .[ In this case you can create a t-code for the report program].

option 3: Call a subroutine (within the subroutine put the code of the report).

option 4. Write the code to get the table contents and display it here only.

I hope it will help you. let me know if any more help required

Read only

0 Likes
528

tnx for the help got the output...

Read only

Former Member
0 Likes
529

hi,

At user command in PAI write the code in f-code of button

 
SUBMIT zreport AND RETURN

Thanks

Arun

Read only

Former Member
0 Likes
528

Hi,

The code to call the report should be written in the PAI module.

If the report has a selection screen then use,

CALL TRANSACTION <report txn>.

else if only the output of the report must be displayed,

SUBMIT <report name> and return.

thanks,

Harini