0% found this document useful (0 votes)
421 views9 pages

How To Debug Fox Formulas in BPC 10.1 Unified

This document describes how to debug Fox formulas in BPC 10.1 using the ABAP debugger. 1) Set a breakpoint in the CL_RSPLFR_CONTROLLER class to trigger the ABAP debugger. 2) Execute the planning function containing the Fox formula in trace mode to force ABAP execution. 3) Load the RSPLFC_DEBUGGING_SCRIPT_FOX script which will restrict the debugger view to just the Fox code.

Uploaded by

Ravi Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
421 views9 pages

How To Debug Fox Formulas in BPC 10.1 Unified

This document describes how to debug Fox formulas in BPC 10.1 using the ABAP debugger. 1) Set a breakpoint in the CL_RSPLFR_CONTROLLER class to trigger the ABAP debugger. 2) Execute the planning function containing the Fox formula in trace mode to force ABAP execution. 3) Load the RSPLFC_DEBUGGING_SCRIPT_FOX script which will restrict the debugger view to just the Fox code.

Uploaded by

Ravi Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

How To Debug Fox Formulas in

BPC 10.1 unified


By
Sai Akella.
1) Normally, in a formula based planning function we use the syntax ‘ BREAK-
POINT’. (Shown below)

2) When we run the planning function ABAP debugger stops at this break-
point
3) However, this debugging is very complex as SAP ABAP shows the system
generated code in each step along with our FOX code which makes
debugging difficult.

4) As shown below after hitting couple of F5 (single step), it has generated


system ABAP code which is not useful to us

Simplest way of debugging a FOX code in BPC 10.1 is explained below.


1) The Fox debugging uses a so-called debugging script in the ABAP
debugger. In order to activate it we need to stop in the ABAP debugger.
We start by setting a break-point in the ABAP coding. We open the
transaction se80, navigate to the class CL_RSPLFR_CONTROLLER, and
search for the method EXECUTE_SERVICE. The method calls the
execution of the planning function. We set a break-point in the first line
of the coding.

2) We start our planning function from a planning sequence. Thus we open


the transaction code rsplan and display the corresponding sequence. We
select the Fox formula we want to debug. As we can debug Fox formulas
only in ABAP execution we need to make sure the Fox formula is not
executed in memory. If you are using PAK (i.e. HANA) then you can
switch the execution to ABAP by setting the user parameter
RSPLS_HDB_SUPPORT to HBD_OFF for the current user. Another option
is to execute the planning function in trace mode as this always forces
an execution ion ABAP. We choose this (more direct) option
3) We have selected the 2n Planning sequence step and hit on ‘Execute
with Trace’ button to force ABAP debugging as explained in step 2 above
4) The ABAP debugger takes you to the class (as explained in step 1). It
takes you where you had applied the break-point

5) Click on ‘Script’ Tab and select ‘Load Script’

6) After selecting Load Script, select following script


RSPLFC_DEBUGGING_SCRIPT_FOX and hit select
7) After selecting the check button above, it takes you back to the previous
screen (shown in step 6), there you need to start the script as shown
below by hitting Start Script Button

8) After starting the script the ABAP debugger creates a layout which will
now only be restricted to your FOX code, the standard ABAP calls,
functions etc. will be triggered in the back-ground and not shown on the
screen
9) This FOX debugging is now similar to any normal ABAP debugging which
as mentioned above will be restricted to only your code
10) You can now use several features in the debugger. You can set
break-points, move forward by a single step, or jump to the next break-
point. You can also display the current block values again, show
messages, choose which (Fox) variables should be displayed, display the
reference data for the current block, and toggle the display for the plan
data in order to show the entire records (not just the characteristics that
are to be changed).

You might also like