Application Development and Automation 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: 
Read only

Export from User exit.

Former Member
0 Likes
793

hi Guru's

I am using this is a user exit:


DATA: lv_diff TYPE n.
lv_diff = TRUNC( wmara-mhdhb - lv_mhdhb ).

  EXPORT lv_diff TO MEMORY ID 'ZXXXXX'.

and importing in a custom program:


DATA: lv_diff TYPE n.
IMPORT lv_diff FROM MEMORY ID 'ZXXXXX'.

Th sy-subrc eq 0 in Export but not at import... I searched the forum and found I am doing right... why is this lv_diff not filled in import program?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
762

try this, also try using some other name as memory id.

IMPORT lv_diff = lv_diff FROM MEMORY ID 'ZXXXXX' .

Edited by: kartik tarla on Jan 14, 2009 1:30 AM

6 REPLIES 6
Read only

Former Member
0 Likes
763

try this, also try using some other name as memory id.

IMPORT lv_diff = lv_diff FROM MEMORY ID 'ZXXXXX' .

Edited by: kartik tarla on Jan 14, 2009 1:30 AM

Read only

Former Member
0 Likes
762

Hi Ram,

Have you created the Memory ID.If not please double click on the memory ID to create it and then ur import Statement will return the Value.

Regards,

Irfan.

Read only

Sandra_Rossi
Active Contributor
0 Likes
762

Could you rephrase the problem?

Be careful, sy-subrc is not set by export (only import).

With the old debugger, add a breakpoint at the import, make sure whether the memory id exists or not (menu goto, system areas, abap memory)

Read only

0 Likes
762

Hi.. I just looked into and found that the Session in the user exit is getting closed and probably the memory is getting cleared...

how can I deal where the session is closed and still I can acess the memory id in another session?

Read only

0 Likes
762

I solved with SET and Get parameters..

Read only

Former Member
0 Likes
762

Hi,

Try using these statements..

IMPORT <f1> TO <g1> <f2> TO <g2> ... FROM DATABASE dbtab <ar> ID <key>
EXPORT <f1> TO <g1> <f2> TO <g2> ... TO DATABASE dbtab <ar> ID <key>