10-06-2009 12:20 AM
I want to get rid of EXPORT and IMPORT statement. What are the alternative ways for Import and export.
EXPORT TO memory ID &
IMPORT from Memory ID
BRegards
Pravin
10-06-2009 1:35 AM
U can update a Ztable (inspite of export) and use a select from ztablbe ( inspite of import) and delete the entries from ztable once the import / select is successful.
But why do u want to NOT to use a excellent(shared memory/ session memory) feature provided by SAP.
10-06-2009 1:59 AM
Hi,
As J@Y said, you can use a ztable to save the value from program 1 and retrieve it from program 2 and delete it. I think using import/export to memory id is safe as long as you use a unique ID value.
10-06-2009 3:23 PM
You can use INDX cluster tables for this purpose, quite usefull for passing values.
IMPORT p1 = w_btrtl FROM DATABASE indx(HR) ID W_CHAVE.
export p1 = w_btrtl to DATABASE indx(HR) ID W_CHAVE.
DELETE from database indx(HR) ID W_CHAVE.
10-06-2009 5:36 PM
if possible use function pool ... then get and set data
also check what micky suggested in this thread