Step by Step Guide To Debug A Start, End or An Expert Routine in BI 7.0

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Step by Step Guide to Debug a

Start, End or an Expert Routine in


BI 7.0 Transformations

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: Nageswara Reddy M


Company: Mahindra Satyam Computer Services Ltd.
Created on: 08 December 2009

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.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 1
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 2
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

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.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 3
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

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.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 4
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

1. Step by Step Solution


1.1 Setting Break-Points in the generated program

Go to RSA1. Display the


transformation that has the
routine to be debugged. Here
enter into the generated
program via Extras -> Display
Generated Program.

Now the generated program is


displayed.

Break points can be set as


shown according to the
requirement.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 5
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

The break point can also be


placed at the code that has
been inserted in the routine.
For example, the screenshot
shows the break point set at the
code in Start routine.

1.2 Execute the DTP in Simulate/Debug mode


After the break points have been set, now run the DTP in simulate mode. Follow the below procedure to run
the DTP in Debug mode.
In the Execute
tab of the DTP,
select the option
‘Serially in the
Dialog Process
(for Debugging)’.

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

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 6
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

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.

(Note: One can


select the check
boxes here to go
into the debug
mode, instead of
setting break
points in the
generated
program).

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 7
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

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.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 8
Step by Step Guide to Debug a Start, End or an Expert Routine in BI 7.0 Transformations

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 9

You might also like