SAP ABAP Objects: Advanced Programming Techniques
This course provides a dive into the concepts of classes, abstract/exception classes, interfaces, events and event handlers, SAP Application Log, dynamic method calls, the use of Run Time Type Services (RTTS), and the ABAP Unit testing framework.
What you'll learn
The ABAP Unit testing tool is a framework that drastically improves code quality by allowing the programmer to embed test classes directly into an object being developed. This course, SAP ABAP Objects: Advanced Programming Techniques, serves as a follow-up from the earlier “Introduction to ABAP Objects: Concepts and Class Builder” course. The first portion of this course will provide a deeper dive into the concepts from the introductory course. First, using some real-world business scenarios as examples, sample applications are built using base classes, abstract classes, interfaces, events, and event handlers. Error handling & recovery using exception classes is covered in great detail. All of the provided examples are built using a reliable framework that reinforces best practices for coding. Next, you will cover the various tools and APIs that are available within the ABAP environment to improve code quality and productivity. The SAP Application Log is explored and describes how to create Application Log objects, how to write Application Log entries, and how to subsequently retrieve the entries for program analysis and trouble- shooting. Finally, you will discover one of the most powerful tools in the ABAP environment - Run Time Type Services (RTTS). Using this framework, the course shows how to analyze the composition of simple or complex anonymous data objects at run-time, and how to build data-driven processing routines based on the object metadata. In addition, we demonstrate how to use RTTS to dynamically construct custom data objects as needed during program execution. By the end of this course, you will know, step-by-step, how to write test classes and execute unit tests.
Table of contents
- An Overview of Exceptions 2m
- Creating an Exception Class 4m
- Review of Sample Program to Modify Sales Orders 5m
- Adding Exceptions to the Exception Class 6m
- Handling Exceptions in the Application 2m
- Handling Exceptions with CLEANUP Processing 6m
- Handling Exceptions with RESUME Processing 6m
- Handling Exceptions with RETRY Processing 4m
- Inheritance Review 5m
- Implementing Inheritance in Employee Processing: Interface Modifications 1m
- Implementing Inheritance in Employee Processing: Employee Class Modifications 3m
- Implementing Inheritance in Employee Processing: Intern Class Modifications 3m
- Inheritance in Employee Processing: Demo Class Modifications 1m
- Implementing Inheritance in Employee Processing: Manager Subclass Creation 5m