‎2009 Feb 20 1:10 PM
Hello,
Before running a transaction using batch input I export a variable to memory using:
EXPORT var TO MEMORY ID 'ID_CODE'.
Then, in a user exit of that tcode I'd like to import that variable from memory using:
IMPORT var FROM MEMORY ID 'ID_CODE'.
This does not work.
Any idea on how should I do it correctly?
Thanks.
‎2009 Feb 20 1:21 PM
Hi,
IMPORT and EXPORT statements are session memory. The subsequent transaction should be executed immediately.
If possible try using SET PARAMETER ID and GET PARAMETER ID for the required field...
Prem.
‎2009 Feb 20 1:15 PM
Hi
Export to memory id works only when you keep running the same session,
for keeping data across the session, export your data to sap memory(cluster table)...
Just do an F1 on EXPORT to get the exact syntax....
Cheers
Ravish
‎2009 Feb 20 1:18 PM
Hi,
IF you are using Session method it will not work.Session method does not supports real time processing as it its processing is Asynchronous..
SO use Call transaction method this will work..
Just Specify whats the BDCmethod you are using.
Regards,
Gurpreet
‎2009 Feb 20 1:21 PM
Hi,
IMPORT and EXPORT statements are session memory. The subsequent transaction should be executed immediately.
If possible try using SET PARAMETER ID and GET PARAMETER ID for the required field...
Prem.
‎2009 Feb 20 1:21 PM
Hi ..
Please the sample code.
export i_data = i_data to memory id 'EDD0595'.
import i_data = i_data from memory id 'EDD0595'.
‎2009 Feb 20 1:42 PM
if its a variable and not a table you should be fine using set parameter and get parameter.. please hit F1 on this words in ABAP editor, SAP help will give you the required info...
‎2022 Feb 15 7:52 AM
Hi.
Export
EXPORT lv_variable TO SHARED MEMORY indx(zk) ID 'WEBAZZ'.
Import
IMPORT lv_variable TO lv_c_variable FROM SHARED MEMORY indx(zk) ID 'WEBAZZ'.
You can also use Shared Memory Objects – Transfer data between ABAP programs | SAP Blogs