‎2009 Apr 07 9:23 AM
Hi All,
Please can anyone tell me how to get the output of the module pool report program in a normal report program.
Thanks in Advance,
Meenu.
‎2009 Apr 07 9:26 AM
Hi,
In Module pool program,
use LEAVE TO LIST-PROCESSING, for going to report program.
LEAVE TO LIST-PROCESSING. (Switches from 'Dialog Processing' to 'List Processing')
LEAVE LIST-PROCESSING.(Leaves list processing)
Edited by: Sap Fan on Apr 7, 2009 10:26 AM
‎2009 Apr 07 9:28 AM
You need to assign a transaction to a module pool program to execute it. Just executing the module pool in SE 38 wont help.
‎2009 Apr 07 9:31 AM
Hi:
have a look
[Call Program|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm]
Regards
Shashi
‎2009 Apr 07 9:32 AM
Hi,
Create and assign a tcode to ur module pool program in SE80.
Now call that t-code in ur report program.
Report ztest.
CALL TRANSACTION tcod.
‎2009 Apr 07 9:35 AM
Hi Meenu,
U can also use SUBMIT statement to get the module pool program executed.
ex:
submit report1 ( and return ).
Ram
‎2009 Apr 07 9:38 AM
My requirement is to capture the data from the table control that the module pool program is displaying into another report. Since this is a module pool I cannot use Submit in my normal program. Is there any other way to do this...
‎2009 Apr 07 9:40 AM
Hi,
To fulfill this requirement we will used statement
CALL TRANSACTION and before this to pass the data to report we have to use
Set parameter and there in the report program we have to use GET PARAMETER
the syntax for the above is
DATA REPID like sy-repid VALUE 'RSPFPAR'.
SET PARAMETER ID 'RID' FIELD REPID.
and similarly for get parameter to receive the values at report program,.
Regards
Nitin.
‎2009 Apr 07 9:44 AM
hi check this ...this will create a table control like a module pool program..
report y019test_test_test line-size 1023.
*---database tables used
tables: pa0002.
*----internal table to hold the data for employee
data it_pa0002 type standard table of pa0002 .
selection-screen: begin of block blk3 with frame title blk3.
select * from pa0002 into table it_pa0002 up to 10 rows.
call function 'SRTT_TABLE_DISPLAY'
exporting
table = 'PA0002'
iv_title = 'Employee Details'
tables
table_content = it_pa0002.
if sy-subrc ne 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
selection-screen: end of block blk3.
‎2010 Mar 25 12:18 PM
For this I have done a BDC recording for a module pool report and done call transaction for that in my report program.