Video Lesson 10.2: ABAP Methods

Video Lesson 10.2: ABAP Methods

Many new functions are delivered with the SAP standard version as classes
or methods. This lesson will provide you with a short introduction into
object-oriented programming and then show you how you can find existing
classes and methods in the SAP System and how you can use them from within
your program.

Working with Global Classes and Methods

  • To be able to use the classes and methods that exist in the SAP System, we must first understand some basic terms used in object-oriented programming.

Classes and Objects

  • A class is a formal description of objects (instances).
  • At runtime, you can create several instances of a class, all of which have their own attributes and methods.
  • You can access corresponding attributes of an instance by calling an instance method.
  • Classes can be defined either locally within a program or globally in the class library.
  • SAP has shipped - with the standard version - many global classes with methods that encapsulate the required functions for reusability. Hence, these classes and methods also belong to the reuse components.
  • Hint: Global classes can be found using the standard search tools SAP Application Hierarchy and Repository Info System. ->