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 © 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1

.com | BOC .............................................................com | BPX .....................................................com 2 ...........................................................................sap........bpx...... 8 Disclaimer and Liability Notice ........................................................... End or an Expert Routine in BI 7...................................................................................................... 5 1............. 5 1.........................................2 Execute the DTP in Simulate/Debug mode................................sap......................sdn............ 6 Related Content .......... 9 SAP COMMUNITY NETWORK © 2009 SAP AG SDN ................1 Setting Break-Points in the generated program ............ Step by Step Solution .............boc.............................................................0 Transformations Table of Contents Introduction ...........................sap................................................. 3 1....................................Step by Step Guide to Debug a Start............

End & Expert Routines in BI Transformations. when there is variation in the data from what they have expected. The program has the below code if a Start or End or an Expert routine is created in the transformation.com | BPX .sdn. The code that is added in the Start. The step by step procedure below explains how to debug Start. The path can be seen in the below screenshot.bpx. rule details that are created in the transformation. It generates ABAP code for all the mappings. It has an alphanumeric name generated by SAP and it has a warning not to change the source/code. a program is generated by SAP in the back end. When a transformation is created.0 Transformations Introduction Generally.sap. 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. End or an Expert Routine in BI 7.boc.com 3 . It actually leads to the SE38 screen to show the program and code. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap.Step by Step Guide to Debug a Start. The screenshot below shows the sample of such generated program.sap.com | BOC . the developers debug and check the code in the routines.

com | BOC .com 4 .bpx.sap. The user can set a break-point at the above shown code or directly at the code added in the methods. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .0 Transformations Start Routine: End Routine: Expert Routine: Double clicking on the ‘ ->start_routine’. End or an Expert Routine in BI 7.com | BPX .Step by Step Guide to Debug a Start.boc.sap. ‘->end_routine’ or ‘->expert_routine’ in the above displayed code will lead to the code added in the corresponding methods.sap.sdn.

1 Setting Break-Points in the generated program Go to RSA1.sap. Here enter into the generated program via Extras -> Display Generated Program.sap. Step by Step Solution 1.com | BPX .sdn. Break points can be set as shown according to the requirement.com | BOC . End or an Expert Routine in BI 7.Step by Step Guide to Debug a Start.sap.com 5 . Now the generated program is displayed. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Display the transformation that has the routine to be debugged.0 Transformations 1.boc.bpx.

Step by Step Guide to Debug a Start. And a check box with text ‘Expert Mode’ appears next to the Simulate button. For example.0 Transformations The break point can also be placed at the code that has been inserted in the routine. Follow the below procedure to run the DTP in Debug mode. In the Execute tab of the DTP.com 6 .bpx. Now a change in the screen can be observed. the screenshot shows the break point set at the code in Start routine.sap.sdn. Select this check box as in the screenshot SAP COMMUNITY NETWORK © 2009 SAP AG SDN .boc.2 Execute the DTP in Simulate/Debug mode After the break points have been set. now run the DTP in simulate mode. End or an Expert Routine in BI 7. select the option ‘Serially in the Dialog Process (for Debugging)’.com | BOC .com | BPX .sap.sap. The ‘Execute’ button changes as ‘Simulate’. 1.

End or an Expert Routine in BI 7. (Note: One can select the check boxes here to go into the debug mode.Step by Step Guide to Debug a Start. A popup opens as shown in the screenshot. Now press F8 or click the Execute button at the bottom of the popup to execute the DTP via debugger.com | BPX . 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.sap. It has two tabs – ‘Filter’ & ‘Temporary Store and Breakpoints’. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com 7 .bpx.sdn.com | BOC .sap. instead of setting break points in the generated program).boc.0 Transformations Click on the Simulate button. The screenshot shows the Break points tab.sap.

sap.0 Transformations Related Content http://forums.com/thread. End or an Expert Routine in BI 7.boc.sdn.Step by Step Guide to Debug a Start.com 8 .sdn.sap.sap.com | BOC .jspa?messageID=7240212#7240212 http://forumsa.jspa?messageID=7105191#7105191 For more information.sdn.sdn.com/thread.jspa?messageID=1768700 http://forumsa. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com/thread.sap. visit the Business Intelligence homepage.sap.sap.com | BPX .bpx.

including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com | BOC . or seek to hold.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. 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. SAP responsible or liable with respect to the content of this document.sap.bpx.sap.sdn. SAP will not be held liable for any damages caused by using or misusing the information. End or an Expert Routine in BI 7.com | BPX . Changes made based on this information are not supported and can be overwritten during an upgrade.sap.com 9 .boc. code or methods suggested in this document. You agree that you will not hold.Step by Step Guide to Debug a Start. and anyone using these methods does so at his/her own risk.

Sign up to vote on this title
UsefulNot useful