‎2008 Apr 02 8:28 AM
Hallo guys,
I have 2 user exits in 2 different function groups.
In the first one I do EXPORT itab TO MEMORY ID 'LTV_POPUP'.
In the second one I want to get this data using
IMPORT itab FROM MEMORY ID 'LTV_POPUP'.
But I don't get any results - itab is initial after IMPORT command.
The second user exit is called in standard SAP function module which is called IN UPDATE TASK.
Could this by a problem? Has anybody some idea how to solve this problem?
Thanks a lot.
‎2008 Apr 02 8:36 AM
Hi,
Is the value being passed in variable 'LTV_POPUP' properly.
Probably Update Task should not be a problem. Update task comes into picture when we need to update some database table.
In such a case where your FM is Update Task and there are certain tables to be updated, then FM will update the value at the successful execution of Function Module. In case there is some error in the FM after Update statement, Update Statement would be rolled back.
Hope this clarifies your doubt!
Regards,
Lalit
‎2008 Apr 02 8:39 AM
Probably just something wrong with your export to memory.. Check in debug if the export is executed and if itab is filled with data..
Greets
‎2008 Apr 02 8:52 AM
Before EXPORT I have itab filled with one record. It is itab without header line.
After executing EXPORT command I get sy-subrc = 0.
Can get to this itab records stored in memory somehow?
‎2008 Apr 02 9:51 AM
Hi guys, i solved this proble using FROM DATABASE indx clause in EXPORT-IMPORT.
indx-aedat = sy-datum.
indx-usera = sy-uname.
EXPORT itab FROM itab
TO DATABASE indx(st) FROM ls_indx ID indxkey.
IMPORT itab = itab FROM DATABASE indx(st) ID indxkey
TO ls_indx.