Skip to Content
0
Former Member
May 20, 2015 at 07:30 PM

Accessing global memory from BADI

400 Views

Hello,

Attached is my ABAP call stack.

All I am trying to achieve is to access a variable from Global Memory/Calling program inside a BADI. SY-CPROG value inside BADI is /SAPAPO/SAPLCTM_GUI

There is a variable named et_location in /SAPAPO/SAPLCTM_GUI and /SAPAPO/SAPLCTM_INT as well.

I used ABAP statements:

ASSIGN ('(/SAPAPO/SAPLCTM_INT)ET_LOCATION') TO <fs_locations>.

ASSIGN ('(/SAPAPO/SAPLCTM_GUI)ET_LOCATION') TO <fs_locations>.

Both these statements are failing with Sy-SUBRC value 4.

can you please suggest a way to access value of et_location variable from inside the BADI?

12 METHOD /SAPAPO/IF_EX_CTM_MATLOC~MATLOC_MODIFY YCL_IM__CTM_SEM_MLOC_FILT=====CP 11 METHOD /SAPAPO/IF_EX_CTM_MATLOC~MATLOC_MODIFY /SAPAPO/CL_EX_CTM_MATLOC======CP 10 FUNCTION /SAPAPO/CTM_INT_MAT_READ /SAPAPO/SAPLCTM_INT 9 FORM PROFILE_DEFINITION_READ /SAPAPO/SAPLCTM_ORDSEL 8 FUNCTION /SAPAPO/CTM_ORDERNET_PREPARE /SAPAPO/SAPLCTM_ORDSEL 7 FUNCTION /SAPAPO/CTM_INT_PLANNING_START /SAPAPO/SAPLCTM_INT 6 FORM PLANNING_START /SAPAPO/SAPLCTM_GUI 5 FORM USER_COMMAND_100 /SAPAPO/SAPLCTM_GUI 4 MODULE (PAI) USER_COMMAND_0100 /SAPAPO/SAPLCTM_GUI 3 PAI MODULE USER_COMMAND_0100 2 PAI SCREEN 0100 /SAPAPO/SAPLCTM_GUI 1 TRANSACTION /SAPAPO/CTM(/SAPAPO/CTM)

Attachments