Hi all,
I want to export some data from BADI & Import it back in user exit.
I wrote following line of code in BADI
export P1 FROM xstr to memory id 'ZABHI'.
& following line of code in User Exit
import P1 to xstr FROM memory id 'ZABHI'.
After export sy-subrc becomes 0 hence export statement is working fine but when aftr import xstr remains blank.(sy-subrc = 4)
I tried to execute same code in single ztest abap program & it works fine there.
Thanks in advance.
Hi,
You could also try the EXPORT TO DATABASE statement
EXPORT pname = cname TO DATABASE indx(xy) FROM wa_indx CLIENT
sy-mandt ID 'ZABHI'.
and import from database likewise, but be sure to delete it from that location
once u've read it into the user exit.
Regards,
Samson Rodrigues.
Hi,
If the memory is cleared before the import, then it can be blank.
Add a comment