Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IMPORT FROM MEMORY.

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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?

0 Kudos

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.