ABAP OO Class Methods

IF_VBC_DOMAIN_OBJECT SAP Interface - Domain Object Interface







IF_VBC_DOMAIN_OBJECT is a standard SAP interface, see below for any documentation including details of methods, attributes, events etc. Interfaces are defined much the same as a class using the same transactions but act a bit like a template (in none OO terms). For example, a class would implement the interface and then inherit all of the methods etc from it. This provides a mechanism for unrelated objects to use a set of common behaviours and functionality.


You may have seen this already without knowing what it was, within SAP have you ever seen the method name prefixed by the name of an interface such as IF_VBC_DOMAIN_OBJECT~METHOD_NAME . This means that the class has implemented an interface and that this method has been inherited from it.


For further relevant information about this interface enter IF_VBC_DOMAIN_OBJECT into the relevant SAP transactions such as SE24, SE80. Also see the Resource section below to view other useful tips, screenshots, links and general information related to this SAP interface and its methods. Or even add your own for future reference



Methods of IF_VBC_DOMAIN_OBJECT





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...



IF_OS_CLONE~CLONE - Clone
CREATE_NEW_VERSION - Create a new version of the Model (need to be saved first)
DEQUEUE - Dequeue the BO if it is Locked
ENQUEUE - Enqueue the BO
GET_MERGED_OBJECT_DATA - Get table representation of object's data
GET_OBJECT_ID - Return the unique identifier of the BO
GET_STATUS - Get the Maintenance Status of the BO
GET_VERSION - Returns the Object Version
HAS_AUTHORIZATION - Checks if a User has authorization for a specific Action
IS_CLIENT_TRACE_ACTIVE - Is the client trace activated
IS_DIRTY - Is the current object in Synch with its version in Database
IS_ENQUEUED - Is the BO locked using SAP standard Locking
IS_SAP_OBJECT - Check if object is owned by SAP
SERIALIZE_TO_XAML - Return the Standard XML File (as received from Frontend)
SET_OBJECT_ID - Sets the unique identifier of the BO
SET_STATUS - Set the Maintenance Status of the BO
SET_VERSION - Set the Object Version
TO_STRING - String representation of the object (for debug output)


IF_VBC_DOMAIN_OBJECT Attributes

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


NameDescriptionInitial Value
MV_LAST_CHANGE_DATE Changed on
MV_LAST_CHANGE_USER Changed by
SC_MOD_TYPE_CUSTOMER Customer Object 'C'
SC_MOD_TYPE_DELETED Deleted Object 'D'
SC_MOD_TYPE_MODIFIED Modified Object 'M'
SC_MOD_TYPE_STANDARD Standard Object 'S'
SC_SAP_CHANGE Indicator for changed data '1'
SC_STATUS_DELETED BO exists in DB, but will be deleted in the next save 'D'
SC_STATUS_EDITED BO exists in DB, but changed and changes not saved 'E'
SC_STATUS_NEW BO is newly created, Not saved to DB 'N'
SC_STATUS_SYNC_WITH_DB BO exists in DB and the object is in Sync with DB 'S'




Events of the Class IF_VBC_DOMAIN_OBJECT

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...