‎2009 Oct 12 8:50 AM
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...
‎2009 Oct 12 9:20 AM
hi,
At user command in PAI write the code in f-code of button
SUBMIT zreport AND RETURN
Thanks
Arun
‎2009 Oct 12 9:05 AM
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
‎2009 Oct 12 10:26 AM
‎2009 Oct 12 9:20 AM
hi,
At user command in PAI write the code in f-code of button
SUBMIT zreport AND RETURN
Thanks
Arun
‎2009 Oct 12 9:27 AM
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