Tips for Debugging ABAP for Functional Teams

  • by Gaurav Aggarwal, Lead Consultant, SAP S/4HANA Finance, Infosys Limited
  • June 8, 2012
/IT
Some basic tips shed light on debugging ABAP. Learn how to trigger debugging, discover what the main differences between the classic and new debuggers are, and follow some scenarios in which debugging ABAP helps improve the processing of various transactions.
Key Concept
Debugging is the way to find the root cause of certain SAP transactional behavior (e.g., finding a reason why a certain value in a field was updated or determining why users receive an error, warning, or abandon message during the processing of a transaction). Debugging is necessary if the root cause cannot be determined from functional methods such as checking customizations or searching master data.

ABAP is the backbone of an SAP package, so at one point or another, every member of a functional team must have had to deal with SAP development technicalities behind the business functionality. This need for technical details can occur during various phases, such as writing functional specifications or analyzing a production environment issue when an error, warning, or abandon message appears.

 

I explain basic terminology for ABAP and various tools and techniques for debugging. This knowledge is helpful when you are trying to find the root cause of an issue or designing a needed functionality. I show the various objects for debugging with examples, such as debugging for an error message, debugging SAP script, and debugging a function module.

Note
You need to search for the root cause of an error by checking customization, master data, or correctness of your procedure before attempting any technical debugging.

How to Trigger Debugging

I now discuss some basic ways to trigger debugging. If you are not sure about which line of code you want to debug, enter transaction /h in the command prompt while executing any transaction. Press Enter to activate the debugging. The system opens the debugger, and you can start checking code.

Gaurav Aggarwal

Gaurav Aggarwal is SAP S/4HANA lead consultant at Infosys Limited. He has more than 14 years of experience, including 11 years in SAP Finance. He has expertise in both SAP FI and Controlling (CO) with integration to other modules in manufacturing and process industries. He is a chartered accountant and SAP Certified Financial Consultant. He holds a bachelor’s degree in commerce and is a techno-functional expert with thorough knowledge of the necessary ABAP for functional experts. He is a veteran in G/L, AR, AP, banking, FA, Travel Management, and closing cockpit and has handled greenfield implementation, upgrades and conversions, rollouts, and support projects. 

See more by this author


Comments

No comments have been submitted on this article. 


Please log in to post a comment.

To learn more about subscription access to premium content, click here.