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: 

Export/Import To/From Memory is not working

Former Member
0 Kudos

Hi All,

I am using export statement in field exit for domain EAN11 to store values of deleted ean in internal table.

assign input to <wa_delean>.

append <wa_delean> to delean.

export delean to memory id 'EANDEL'.

but when i am importing the same in badi BADI_EAN_SYSTEMATIC i am not getting the values.

import delean = delean from MEMORY id 'EANDEL'.

The same is working in ECC6 but not in ECC5.

Propmt answer would be appreciated.

With Regards

Tausif Shaikh

3 REPLIES 3

Former Member
0 Kudos

Hi

Try re-importing the value from the memory.

IMPORT delean = delean from MEMORY id 'EANDEL'.

IF SY-SUBRC NE 0.

CLEAR <local holder_Var>.

IMPORT delean = delean from MEMORY id 'EANDEL'.

ENDIF. "this should work provided your export was successfull

I had faced the similar issue. However, re-importing worked in my case. Give it a try.

Regards,

Rupesh

Edited by: rumhat on Apr 26, 2011 4:53 PM

mahaboob_pathan
Contributor
0 Kudos

hi

it should be like

export delean from delean to memory id 'XXXX'.

and in badi import it

import delean to delean from memory id 'XXXX'.

after import memort id free memory using

free momery id 'XXXX'.

former_member195402
Active Contributor
0 Kudos

Hi,

is delean defined identically in both programs?

Try

export delean = delean to memory id 'EANDEL'.

first. If it doesn't work, try

export delean = delean[] to memory id 'EANDEL'.

with matiching

import delean = delean[] from memory id 'EANDEL'.

Regards,

Klaus

Edited by: Klaus Babl on Apr 27, 2011 7:29 AM