05-14-2009 5:24 PM
Hi,
If I export a value to a memory ID in a program,
later that program opens a new session where another program is executed.
(this is done using
CALL FUNCTION 'TH_CREATE_MODE'
EXPORTING
TRANSAKTION = 'YGPT2')
Can I import the values in this program in the new session?
The thing is that it is not working, but I am starting to doubt if this will ever work.
05-14-2009 5:44 PM
You need to Export the memory using the DATABASE. Since it is calling a new transaction, it will clear all internal ABAP memory.
Like:
EXPORT tab = itab
TO DATABASE indx(XY)
FROM wa_indx
CLIENT cl
ID 'TABLE'.
Regards,
Naimesh Patel
05-14-2009 5:42 PM
Hi,
Import and Export are for the same sessions only. So if you're creating a new session those variables won't be available.
For several session you need to use SAP Memory.
SET PARAMETER ID
GET PARAMETER ID
Otherwise you will need to define import parameters of the function/program you're calling.
Regards,
Gilberto Li
05-14-2009 5:44 PM
You need to Export the memory using the DATABASE. Since it is calling a new transaction, it will clear all internal ABAP memory.
Like:
EXPORT tab = itab
TO DATABASE indx(XY)
FROM wa_indx
CLIENT cl
ID 'TABLE'.
Regards,
Naimesh Patel
06-01-2009 11:42 AM
Hi,
I am using
export tab = w_inb_dates
to database indx(34)
from w_index_dates
id 'IBDDATES'.
in BAPI,
I am importing this value in
import tab = w_inb_dates
from database indx(34)
to w_index_dates
id 'IBDDATES'.
in BAID.
here the code is working fine, but the memory is not getting freed.
Can you please how can we refresh memory in above case ASAP.
Cheers!!
Venu