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

Call Program

Former Member
0 Likes
1,087

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.

9 REPLIES 9
Read only

awin_prabhu
Active Contributor
0 Likes
1,041

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

Read only

Former Member
0 Likes
1,041

You need to assign a transaction to a module pool program to execute it. Just executing the module pool in SE 38 wont help.

Read only

Former Member
0 Likes
1,041

Hi:

have a look

[Call Program|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm]

Regards

Shashi

Read only

awin_prabhu
Active Contributor
0 Likes
1,041

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.

Read only

Former Member
0 Likes
1,041

Hi Meenu,

U can also use SUBMIT statement to get the module pool program executed.

ex:

submit report1 ( and return ).

Ram

Read only

Former Member
0 Likes
1,041

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...

Read only

Former Member
0 Likes
1,041

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.

Read only

former_member203501
Active Contributor
0 Likes
1,041

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.

Read only

Former Member
0 Likes
1,041

For this I have done a BDC recording for a module pool report and done call transaction for that in my report program.