Application Development 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: 

how to call Report program form module pool program.

Former Member
0 Kudos

Hi,

i have one Report Program(ZEXAMPLE).i want to call report program from one module pool program and i need to paas one

value to report program.pla tell me the sytax for that one...by using sumbit statement using some value. i didn't remember excatly..

plz help me on the same any one

7 REPLIES 7

Former Member
0 Kudos

SUBMIT ZReport2 WITH PA_CARID = ZDYN_CONN-CARRID.

where PA_CARRID is the parameter or field in your Report program

0 Kudos

i want to call my report program(ZRP_EXA) from my module pool program with value.

my Module pool program name : ZDYN_POOL in this program i have one field aufo-aufnr.

i want to to call ZRP_EXA from ZDYN_POOL wih that field..with submit statement...plz tell me the syntax

0 Kudos

submit ZRP_EXA with varible = aufo-aufnr.

here variable is the variable in ur program ZRP_EXA in which u want to pass the value

0 Kudos

Hi,

This is with reference to the above reply.

write this statement in your module program(where you want to call the report program)

SUBMIT ZRP_EXA WITH PA_AUFNR = aufo-aufnr.

where PA_AUFNR is the parameter or field in your Report program (ZRP_EXA )

Regards

Nishant Malhotra

0 Kudos

Hi,

you can use IMPORT/EXPORT statments in calling and called program to accomplish your requirement

you also might have to use 'AND RETURN' addition if the requirement demands.

Regards,

Nirmal

knitinkumarsethy
Explorer
0 Kudos

HI srinathtc,

You can use Submitt and retrn for this purpose.

e.g., I have called RM06BA00 with the parameters and select options.

if any select-options is there in the report's selection screen then define a ranges for that.

RANGES: L_R_WERKS FOR MARD-WERKS.

L_R_WERKS-SIGN = 'I'.

L_R_WERKS-OPTION = 'EQ'.

L_R_WERKS-LOW = LT_FINAL-WERKS.

SUBMIT RM06BA00

WITH BA_MATNR-LOW = LT_FINAL-MATNR

WITH P_LSTUB = 'ALV'

WITH S_WERKS IN L_R_WERKS

WITH S_BANPR IN L_R_BANPR

AND RETURN.

Hope this will help you.

Regars,

Nitin

Former Member
0 Kudos

thank u