2009 Jan 13 7:49 PM
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.
2009 Jan 13 8:00 PM
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
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
2009 Jan 13 8:00 PM
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
2009 Jan 13 8:02 PM
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.
2009 Jan 13 8:05 PM
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)
2009 Jan 13 8:13 PM
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?
2009 Jan 13 9:27 PM
2009 Jan 13 8:26 PM
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>
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |