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: 

pass values from badi to a z report

Former Member
0 Kudos

hi expets,

i am using badi 'ME_REQ_POSTED ' for some requirement but i need to capture the doc no posted in this badi and store it in a variable and use it for further processing in a bdc , can anybody help me out for this , i am new to abap objects .

thanks

reagrds

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

I think that you migth simply export it to SAP/ABAP memory while you are in the BAdI and later import it back from the point you need that for further processing.

Regards

Marcin

3 REPLIES 3

MarcinPciak
Active Contributor
0 Kudos

I think that you migth simply export it to SAP/ABAP memory while you are in the BAdI and later import it back from the point you need that for further processing.

Regards

Marcin

0 Kudos

HI marcin,

thanks for reply byt can u plz elaborate how to use import export in object oriented environment , and moreover i want to have complete int table to be exported and imnported.

can u plz help me out

thanks

regards

sarabjit

0 Kudos

This is used in same way as in classic approach. You can export/import entire table as well.


"in BADI
EXPORT mem_tab = "pass your table here
               TO MEMORY ID 'ZMY_MEM_ID'.

"in other program
data: itab type table of ....

IMPORT mem_tab = itab
             FROM MEMORY ID 'ZMY_MEM_ID'.
"here you have your ITAB with data inside

Regards

Marcin