Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ABAP Memory ID or PARAMETER values in debugger

Tags:

abap

Some of the ABAP programs that I have to debug use system memory to pass data to other programs using the following syntax:

EXPORT: VARIABLE_NAME  TO MEMORY ID 'NAME_OF_MEMORY_OBJECT'.

How do I check the value of these memory IDs in the debugger?


Relatedly, how can I view the value of parameter set with:

SET PARAMETER 'ZPR' FIELD lv_project.
like image 829
Lilienthal Avatar asked Feb 20 '14 11:02

Lilienthal


1 Answers

Memory IDs

These memory IDs can be accessed in the debugger, but the option isn't accessible by default in the "new" Debugger. To display them you have two options:

  • In the new Debugger, change one of the tools you're using. Do this by clicking the "New Tool" or "Replace Tool" that you can see at the top of the vertical button column on the right of each subwindow. Open the Special Tools folder in the tree and select "System Areas (Internal Only)". In the second tab of this tool you can now see a list of areas. Double-click the MEMORIES ("EXPORT/IMPORT memories") area or manually enter it in the Area input field to open the list of active memory IDs. Click through on any one to see its hexadecimal value.
  • In the menu bar, open Debugger and select "Switch to Classic Debugger". Once it opens, find the following in the menu bar: Goto, System Areas, ABAP Memory. The system areas will be displayed with the MEMORIES area selected by default.

Parameters

If you want to view the PARAMETERs that were set instead of memory IDs, the procedure is almost exactly the same. However, instead of opening the MEMORIES system area, open the SMEM ("SAP memory (SPA-GPA)") area.

like image 89
Lilienthal Avatar answered Oct 21 '22 21:10

Lilienthal