Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Import Memory ID problem

Hi,

My fiirst Program will export material doc no to memory ID and call transaction MBSU.

Then the user exit EXIT_SAPLIE01_007 will import the material doc no and store in mseg-sgtxt.

But sometime there is no information store in mseg-sgtxt, it is very rare case.

What is the possiblity of no value in mseg-sgtxt? Will it be the memory ID is overwritten or lost?

First program:

parameters: p_mblnr like rm07m-mblnr obligatory,

p_mjahr like rm07m-mjahr obligatory,

export p_mblnr p_mjahr to memory id 'ZMBSU'.

call transaction 'MBSU' ...

EXIT_SAPLIE01_007:

import p_mblnr p_mjahr from memory id 'ZMBSU'.

s7_tab_mseg-sgtxt = p_mblnr.

modify s7_tab_mseg.

Thanks in advance..

replied

I guess you should use free statement every time you have imported objects from memory. Try to add following statement:

parameters: p_mblnr like rm07m-mblnr obligatory,

p_mjahr like rm07m-mjahr obligatory,

export p_mblnr p_mjahr to memory id 'ZMBSU'.

call transaction 'MBSU' ...

EXIT_SAPLIE01_007:

import p_mblnr p_mjahr from memory id 'ZMBSU'.

free memory id 'ZMBSU'.

s7_tab_mseg-sgtxt = p_mblnr.

modify s7_tab_mseg.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question