1. SAP Glossary
  2. ABAP Runtime Environment
  3. global class


What is global class in SAP BC-ABA - ABAP Runtime Environment?


SAP Term: global class

  • Component: BC-ABA

  • Component Name: ABAP Runtime Environment

  • Description: Class that is visible throughout the entire AS ABAP. Global classes can only be created using the tool in Class Builder. They are created in cla ss pools and are designated as global classes using the PUBLIC addition of the CLASS statement. A class pool can contain just one global class. All global classes of an AS ABAP are stored together with the global interfaces and data types of ABAP Dictionary in one namespace.


Smart SAP Assistant

  • Key Concepts: 
    Global classes are a type of ABAP class that can be used in any program within the same SAP system. They are defined in the ABAP Dictionary and can be used to create objects that can be shared across multiple programs. Global classes are also known as global objects, as they can be used in multiple programs. 
    
    How to use it: 
    Global classes are created in the ABAP Dictionary and can be used in any program within the same SAP system. To use a global class, you must first create an instance of the class in your program. This is done by using the CREATE OBJECT statement. Once an instance of the class is created, you can then use the methods and attributes of the class to access and manipulate data. 
    
    Tips & Tricks: 
    When creating global classes, it is important to ensure that they are properly documented so that other developers can easily understand how to use them. Additionally, it is important to ensure that global classes are properly tested before they are used in production systems. 
    
    Related Information: 
    For more information on global classes, please refer to the SAP Help Portal (https://help.sap.com/viewer/product/SAP_ABAP_RUNTIME_ENVIRONMENT/7.50/en-US). Additionally, you can find more information on ABAP classes in general on the SAP Community Network (https://archive.sap.com/discussions/thread/3700862).
    • Do you have any question about this SAP term?


      Upgrade now to chat with this SAP term.

Related SAP Glossary Terms

Click the links below to see the following related SAP glossary terms:
Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant