ABAP OO Class Methods

XO_API_ADAPTER SAP Class - Integration Business Application Programming Interface(BAPI)







XO_API_ADAPTER is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84.

Below is the documentation available for class XO_API_ADAPTER including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events

Also check out the Resources section below to view useful tips, screenshots, links and general information related to this SAP class and its methods, or even add your own for future reference.


Interface class implementations

This OO class has an interface implementation which means it has access to all methods within the interface class. Here are the interface classes for XO_API_ADAPTER
IF_XO_CONST_CHANGE_INDICATORS


IF_XO_CONST_COMPARE



Inheritance

This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for XO_API_ADAPTER is XO_OBJECT



Methods of XO_API_ADAPTER





A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.

Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...



APPROVE_AUTHORITY - Checks Authorization to Process Object
BO_CHANGE - Changes Data for a Business Object
BO_CREATE - Creates a New Business Object
BO_GET - Supplies Data of a Business Object
BO_INIT_AND_GET - Initializes and Reads from Business Object
BO_SET - Sets Data of a Business Object
BO_SET_AND_SAVE - Sets and Saves Data on Business Object Level
CONSTRUCTOR - CONSTRUCTOR
FILL_KEY - Populates Object Key for Table Data
FILL_KEY_FOR_CHANGE_DATA - Populates Object Key for Data to Be Changed
FILL_KEY_FOR_TABLE_DATA - Populates Object Key for List of Table Data
GET_BUFFERED_INSTANCES - Returns Instantiated Object References
GET_CHANNEL_API_DATA - Returns Channel-Dependent Customizing
GET_INSTANCE - Gets Adapter Instance
IS_TESTRUN_ACTIVE - Indicates That Data Is Being Processed in Test Mode
LOCK_OBJECT - Locks Object
MO_ADD - Inserts Data for Memory Object
MO_CHANGE - Changes Data for Memory Object
MO_GET - Supplies Data for Memory Object
MO_GET_LINE - Supplies Data from a Memory Object with One Row
MO_INIT_AND_GET - Initializes and Reads from Memory Object
MO_REMOVE - Deletes Data of Memory Object
MO_SET - Sets New Data for Memory Object
MO_SET_AND_SAVE - Sets and Saves Data at Memory Object Level
MO_SET_LINE - Sets New Data for a Memory Object with One Row
XO_CONTROLLER~ON_CLEANUP - Processes CLEAN_UP Event
SET_TESTRUN - Determines Whether Test Run Is Active
SO_ADD - Creates Data for Segment Object
SO_CHANGE - Changes Data for Segment Object
SO_GET - Supplies Data for Segment Object
SO_INIT_AND_GET - Initializes and Reads from Segment Object
SO_REMOVE - Deletes Data of a Segment Object
SO_SET - Sets New Data for Segment Object
SO_SET_AND_SAVE - Sets and Saves Data on Segment Object Level


XO_API_ADAPTER Attributes

List of attributes within class XO_API_ADAPTER. These can be referenced using the following syntax XO_API_ADAPTER=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.


NameDescriptionInitial Value
CLEANUP_HANDLER_SET CLEANUP Processor Is Registered
DELETE Delete
DIFFERENT_LINES Different Lines
EXACT_LINES Exact Lines
INSERT Insert



MODIFY Modify
MO_CHANGE_DATA_TYPE Structure Name for Data to Be Changed in MO 'STR_XO_MO_CHANGE_DATA'
MY_BO_NAME Name of Business Object
REF_LIST API Adapter for Each Business Object
SAME_KEY Same Key
TESTRUN Test Run Active/Inactive
TESTRUN_SET Settings Have Been Made for Test Run
UPDATE Update




Events of the Class XO_API_ADAPTER

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING...