How To Set Breakpoint SDN Format

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

How to Set a Session Breakpoint in a Transformation Program

How to Set a Session Breakpoint in a Transformation


Program

Applies to:
SAP NetWeaver BW 7.0

Summary
Topic: How to set a session breakpoint in an SAP BW 7.0 generated transformation program.
Use: Very useful for debugging individual ABAP transformation rules.
Created on: 16 October 2007

Author Bio
Author: Brad Dixon
Company: MassMutual Financial Group
Title: BW Systems Consultant
SAP Experience:
2000 – 2003 SAP HR & Payroll Configuration
2004 – 2005 SAP HR Lead Designer & Architect
2006 SAP BW Developer
2007 SAP BW Lead Designer

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 1
How to Set a Session Breakpoint in a Transformation Program

Table of Contents
Scenario ........................................................................................................................................................ 3
Step by step procedure ................................................................................................................................. 4
Disclaimer and Liability Notice ...................................................................................................................... 9

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 2
How to Set a Session Breakpoint in a Transformation Program

Scenario
You have coded individual transformation rules, and would like to confirm that the code is working as
expected. One possible solution is to code a hard breakpoint. This however becomes a nuisance when
you are processing many records, and you want to have the ability to continue beyond the breakpoint
after you confirm the first few records.
This document outlines an alternative approach; whereby, you set a session breakpoint in the generated
transformation program, which can optionally be deleted during the debug session. Also, this eliminates
the need to go back and update the code, to remove the hard breakpoint.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 3
How to Set a Session Breakpoint in a Transformation Program

Step by step procedure


1) In RSA1, get the Transformation ID

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 4
How to Set a Session Breakpoint in a Transformation Program

2) Go to SE16, browse table RSTRAN, paste in the Transformation ID, and fill in ‘A’ for object
version

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 5
How to Set a Session Breakpoint in a Transformation Program

3) Capture the Program ID (PROG ID) from the selected table row

4) Go to SE38, type in ‘GP’, and then paste the Program ID in after the ‘GP’

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 6
How to Set a Session Breakpoint in a Transformation Program

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 7
How to Set a Session Breakpoint in a Transformation Program

5) Display the program, search for the line you want to set the breakpoint on, put the cursor on the
line, and click the Stop Sign (w/ monitor) icon

NOTE:
Refresh RSA1 after setting the session breakpoint, as this will refresh the cache, and will ensure that the
breakpoint will be active when running the DTP in debug mode.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 8
How to Set a Session Breakpoint in a Transformation Program

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 DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com


© 2007 SAP AG 9

You might also like