Professional Documents
Culture Documents
Step by Step Guide To Debug A Start, End or An Expert Routine in BI 7.0
Step by Step Guide To Debug A Start, End or An Expert Routine in BI 7.0
Step by Step Guide To Debug A Start, End or An Expert Routine in BI 7.0
Applies to:
SAP BI 7.0. For more information, visit the Business Intelligence homepage.
Summary
You want to debug a Start, End or Expert routine created in a BI 7 Transformation.
Author Bio
Nageswara Reddy is currently with Mahindra Satyam Computer Services Ltd. He has an overall experience
of 6 years in SAP- ABAP. He has been working in SAP-BI 7.0 for 2 years now.
Table of Contents
Introduction ................................................................................................................................................... 3
1. Step by Step Solution ............................................................................................................................. 5
1.1 Setting Break-Points in the generated program .................................................................................... 5
1.2 Execute the DTP in Simulate/Debug mode........................................................................................... 6
Related Content ............................................................................................................................................ 8
Disclaimer and Liability Notice ....................................................................................................................... 9
Introduction
Generally, the developers debug and check the code in the routines, when there is variation in the data from
what they have expected. The step by step procedure below explains how to debug Start, End & Expert
Routines in BI Transformations.
When a transformation is created, a program is generated by SAP in the back end. It generates ABAP code
for all the mappings, rule details that are created in the transformation. The code that is added in the Start,
End or Expert routines can also be seen in the generated program.
This program can be seen via the Extras -> Display Generated Program from the menu bar in the
transformation display/change screen. The path can be seen in the below screenshot.
It actually leads to the SE38 screen to show the program and code. The screenshot below shows the sample
of such generated program. It has an alphanumeric name generated by SAP and it has a warning not to
change the source/code.
The program has the below code if a Start or End or an Expert routine is created in the transformation.
Start Routine:
End Routine:
Expert Routine:
Double clicking on the ‘ ->start_routine’, ‘->end_routine’ or ‘->expert_routine’ in the above displayed code
will lead to the code added in the corresponding methods. The user can set a break-point at the above shown
code or directly at the code added in the methods.
Now a change in
the screen can be
observed. The
‘Execute’ button
changes as
‘Simulate’. And a
check box with
text ‘Expert Mode’
appears next to
the Simulate
button.
Select this check
box as in the
screenshot
Click on the
Simulate button.
A popup opens
as shown in the
screenshot. It has
two tabs – ‘Filter’
& ‘Temporary
Store and
Breakpoints’.
In the filter
section one can
give a particular
company code
etc for which it
has to be
checked during
debugging
instead of
debugging for
whole lot of data.
The screenshot
shows the Break
points tab.
Now press F8 or
click the Execute
button at the
bottom of the
popup to execute
the DTP via
debugger.
Related Content
http://forums.sdn.sap.com/thread.jspa?messageID=1768700
http://forumsa.sdn.sap.com/thread.jspa?messageID=7240212#7240212
http://forumsa.sdn.sap.com/thread.jspa?messageID=7105191#7105191
For more information, visit the Business Intelligence homepage.