Debugging A Function Module Macro in SAP APO

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

SAP ABAP - APO

Debug Macro function module in APO


By Rajendra P Reddi

Page 1 of 4
Debugging a macro function module in SAP APO

Function module used in APO Macros can be debugged as below.

Go to Macro workbench using Transaction /SAPAPO/ADVM

Double click on your required planning book and data view to work with the macros.

Drag the required macros which are available at the left hand side on to the Macro book
view.

Select the step where you need to debug your calculation.

Right click on any step and select BREAKPOINT ON

Page 2 of 4
Once the break point is placed, you can see the STOP statement which is highlighted.
Additionally an external breakpoint has to be placed in the function module if there is
any.

Activate the macro as it turns inactive when a breakpoint is turned ON/OFF.

Now go to your function module and place an external break point.

Load the planning book with the selection criteria from /SAPAPO/SDP94. You should
see a macro debug on as below.

Page 3 of 4
Once it is loaded it navigates to the function module.

Page 4 of 4

You might also like