Skip to Content

ABAP Memory. Export P_CHECK to memory ID 'WTO'


I have a program with a selection screen which a checkbox P_CHECK. This program goes to a subroutine, which then calls a method, which then calls another method. About 3 Levels down I need to know what P_CHECK is i.e. it is either 'X' or space.

I found a way to do this by using 'EXPORT P_CHECK to Memory id 'WTO'. Then in the method I use

IMPORT p_check TO lv_check FROM MEMORY ID 'WTO'.

When I test this it seems to work fine. I have run it in normal mode and also debug mode and it works. For some reason when the customer runs this it doesn't work?

Should I use SAP memory instead i.e. SET PARAMETER?

What could cause 'EXPORT to memory' not to work?

All help greatly appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Hello,

    The clean approach would be to pass the value of P_CHECK as import parameters in the subroutine and the methods as well.

    If this cant be done, what is the client the doing differently ? try to get all the individual steps and check if you get the same error.

    One cause would that the memory ID WTO is being used and changed somewhere else... try putting a name that starts with WTO and see if this solves the issue.

1 Answer

  • Best Answer
    Posted on Apr 29, 2019 at 02:16 PM

    I would use memory id ZZ_WTO to avoid conflicts - one never knows ...

    Add comment
    10|10000 characters needed characters exceeded