0% found this document useful (0 votes)
55 views6 pages

Debugging Planning Functions in SAP BI-IP

Uploaded by

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

Debugging Planning Functions in SAP BI-IP

Uploaded by

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

4/13/2020 Debugging planning functions in SAP BI-IP

tdebug
tdebug

Debugging planning functions in SAP BI-IP


May 09, 2017

SAP came up with the FOX scripting language, to make it easier for anyone with no solid
programming experience, to create custom planning functions in SAP Integrated Planning.
Some of the FOX operators were actually ahead of ABAP/4 of these times when FOX was
introduced. So real analogue of FOX's "FOREACH" was only introduced with ABAP 7.40 release,
as "FOR".

Depending on business requirements, FOX formulas can become quite complex and include
hundreds line of code, which could be a stumblingstone of support and enhancement of the
existing solution, which was developed years back, by long forgotten consultants.

Luckily, SAP has debugging option also for FOX based planning functions, which is however
not as easy to reach as traditional ABAP/4 debugger.
Due to it's non-ABAP nature, it is not possible to simply put an ABAP breakpoint in a FOX code,
nor ABAP debugger can "just pick it up".
Deep inside the application server, SAP translate FOX into ABAP/4 code to run it and so, utilize
a speci c service for this. Debugging the service is a key to debug a FOX formula.

As a start, we need to go to a class CL_RSPLFR_CONTROLLER, which is responsible for


executing the FOX related services and put an external breakpoint somewhere inside it.
Recommended place is an EXECUTE_SERVICE method.

tdebug.blogspot.com/2017/05/debugging-planning-functions-in-sap-bi.html 1/6
4/13/2020 Debugging planning functions in SAP BI-IP

tdebug
Next start your planning application. ABAP debugger will start at the breakpoint.
Since you need to debug FOX and not ABAP, FOX debugging script must be used. You would
need to navigate to "Script" tab and load RSPLFC_DEBUGGING_SCRIPT_FOX

Press Start and you will see another screen with FOX debugger.

tdebug.blogspot.com/2017/05/debugging-planning-functions-in-sap-bi.html 2/6
4/13/2020 Debugging planning functions in SAP BI-IP

tdebug

At the rst screen you will have an option to start debugging of the block or skip it and proceed
to another block. Should you decide to debug the block it is recommended to set breakpoint
right at the 1st screen, before the actual debugger start.

Planning function process data by blocks, so it will technically run once per each block.
Block is de ned by characteristics that are used by planning function, but not selected to be
changed.
So if we take above example and check characteristics usage of the planning function:

tdebug.blogspot.com/2017/05/debugging-planning-functions-in-sap-bi.html 3/6
4/13/2020 Debugging planning functions in SAP BI-IP

tdebug

We can clearly see how function de ned blocks.

Important notes:

For systems running on HANA, SAP HANA execution for FOX formulas is enabled by default.
This greatly increase performance and decrease application server memory consumption, as
FOX planning functions being pushed to the HANA side. However, it also means that FOX
planning functions cannot be debugged anymore. HDB must be disabled temporary, to make
FOX executing fully on application server side.
There are few ways doing so. The table view RSPLS_HDB_ACT_IP in SM30 can be used to
deactivate the ABAP Planning Applications KIT for individual InfoProviders.
There is, however, a global RSADMIN parameters, which allows to disable HDB for the whole
system.
That can be set using report SAP_RSADMIN_MAINTAIN with parameter object
RSPLS_HDB_PROCESSING_OFF.
Possible values are:
'F': Force Off No HANA optimized processing, cannot be overruled any user
'X': Off No HANA optimized processing, but can be overruled for single users for special
purposes
Not set: switch inactive (default and usual value)

More details on how to override 'X' setting as well as more info on HDB is available in
note 1637199

tdebug.blogspot.com/2017/05/debugging-planning-functions-in-sap-bi.html 4/6
4/13/2020 Debugging planning functions in SAP BI-IP

BI-IP debugging FOX Integrated planning


tdebug

Enter your comment...

Popular posts from this blog

"Working days" and factory calendar in ABAP


May 17, 2017

There are some functions and classes available to work with factory calendar. Some real life
scenarios, however, could be more tricky than just nding next working day.
Say you need to know which date would be a 5th working day of any given month. Even if …

READ MORE

Converting number to date data types


May 04, 2017

ABAP seems to disregard leading zeros when implicit number conversions


or even when N to D conversions.

READ MORE

Powered by Blogger

Theme images by Michael Elkan

tdebug.blogspot.com/2017/05/debugging-planning-functions-in-sap-bi.html 5/6
4/13/2020 Debugging planning functions in SAP BI-IP

tdebug

TDEBUG

VISIT PROFILE

Archive

Labels

Report Abuse

tdebug.blogspot.com/2017/05/debugging-planning-functions-in-sap-bi.html 6/6

You might also like