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: 

report

Former Member
0 Kudos
92

hi,

I'm developing a report, in this

i want to call a transaction/program from my report and pass my selection-screen to that transaction/program and output of that transaction/program should be catched to a variable which is declaered in my report.

could anybody plz give me coding for this(using transaction or using prog).

best regards.

radhika.

5 REPLIES 5

Former Member
0 Kudos
69

Hi,

Use the SUBMIT stmt:

SUBMIT zffo_rffocp_c WITH p_laufi EQ zw_laufi

WITH p_laufd EQ zw_laufd

WITH s_zbukr IN zw_zbukr

WITH s_absbu IN zw_absbu

WITH s_rzawe IN r_rzawe

WITH s_hbkid IN sel_hbki

WITH s_hktid IN sel_hkti

WITH p_chk EQ 'X'

AND RETURN.

Where the variables after WITH are all selection screen variables in program ZFFO_RFFOCP_C.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm

Regards,

Subramanian

0 Kudos
69

thanks for reply.

hi subramanian,

how to collect that o/p into our variable?

can explain me a brief.

my prog name: zaaaa.

selection-screen :1000

selectionn fields: empno.

variable : x type i.

i want to pass this selection to prog zbbb and collect output to my variable x.

with regards.

former_member787646
Contributor
0 Kudos
69

Hi

As Subrahmanian Said you can pass the values to another program using SUBMIT statement.

The output of the Called Program can be Stored in ABAP MEMORY in a variable and the same will be used

in the calling program...

Hope it is clear and this would help you.

Murthy

0 Kudos
69

hi murty,

actually i want collect o/p into my variable for using forther calculations. so in that code(subramanian given) all are the selection fields.

i'm not getting where(in which field) the o/p will be stored.

regards.

radhika

Former Member
0 Kudos
69