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

Retaining the data in the MEMORY

Former Member
0 Likes
645

Hi friends,

I tried to store a data in the Memory (using the EXPORT and IMPORT statement) during GR creation.

What I wanted is that the value that will be coming from BADI MB_DOCUMENT_BADI (this is where I put my Exporting) will be passed to BADI LE_SHP_DELIVERY_PROC (this is where I put my Import)....

But when I debug, nothing is retrieved from the memory when I reached my 2nd BADI. But the Export - Import is working when I tried it to another BADIs. But I need the data in my 2nd BADI 'coz at this BADI, the material document is already created. The other BADIs that are able to retrieve the data in the memory is not appropriate because Mat. Doc. is not yet created to those BADI.

Any help is much appreciated and rewarded. Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
586

Hi,

Which method in the BADI mb_document_badi are you exporting the values..

and in which method are you importing the values..

Thanks

Naren

Hi friends,

I tried to store a data in the Memory (using the EXPORT and IMPORT statement) during GR creation.

What I wanted is that the value that will be coming from BADI MB_DOCUMENT_BADI (this is where I put my Exporting) will be passed to BADI LE_SHP_DELIVERY_PROC (this is where I put my Import)....

But when I debug, nothing is retrieved from the memory when I reached my 2nd BADI. But the Export - Import is working when I tried it to another BADIs. But I need the data in my 2nd BADI 'coz at this BADI, the material document is already created. The other BADIs that are able to retrieve the data in the memory is not appropriate because Mat. Doc. is not yet created to those BADI.

Any help is much appreciated and rewarded. Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
587

Hi,

Which method in the BADI mb_document_badi are you exporting the values..

and in which method are you importing the values..

Thanks

Naren

Read only

Former Member
0 Likes
586

export and imports will work only when you define the parameters with same name and type.

export side.

data: matnr type mara-matnr.

export matnr from matnr to memory id 'AAA'. 
"need to define variable same in the import side
"exactly with the same name

import side

data: matnr type mara-matnr.

import matnr to matnr from memory id 'AAA'.

Read only

Former Member
0 Likes
586

Thanks for your time for the 2 of you. I've already managed it now. I've found another BADI to do my IMPORTING.

I used MB_DOCUMENT_BADI for my EXPORTING

and DELIVERY_PUBLISH for my IMPORTING...

Have a nice day ahead!