SAP XO_UNIT_TEST OO Class - Utility Class for Unit Test Enhanced for XO
XO_UNIT_TEST 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_UNIT_TEST including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Inheritance
This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for XO_UNIT_TEST is CL_AUNIT_ASSERTInterface Implementation
This OO class is an Interface Implementation, which means it will implement its own version of the methods from implementation class IF_XO_CONST_BOOLEInterface Implementation
This OO class is an Interface Implementation, which means it will implement its own version of the methods from implementation class IF_XO_CONST_MESSAGEMethod list of XO_UNIT_TEST SAP class
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 =>methodname EXPORTING/IMPORTING...
Method Name | Description | Visability |
MASTER_SETUP | Set Up Complete XO Test Customizing | Public |
CALL METHOD xo_unit_test=>MASTER_SETUP...more details | ||
MASTER_TEARDOWN | Remove Complete XO Test Customizing | Public |
CALL METHOD xo_unit_test=>MASTER_TEARDOWN...more details |
XO_UNIT_TEST attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
Name | Level | Description | Initial Value | Type | Visability |
ABORT_MSG | Instance Attribute | LIKE | Private | ||
BO1 | Constant | Key Parameters | 'XO1000' | LIKE XO_OBJECT_KEY | Protected |
BO2 | Constant | Key Parameters | 'XO1001' | LIKE XO_OBJECT_KEY | Protected |
BO3 | Constant | Key Parameters | 'XO1002' | LIKE XO_OBJECT_KEY | Protected |
BO_1_NEG | Constant | Name of Business Object | 'ZFUBAR' | LIKE XO_BUSINESS_OBJECT_NAME | Protected |
BO_1_POS | Constant | Name of Business Object | 'ZAIRPLANE' | LIKE XO_BUSINESS_OBJECT_NAME | Protected |
BO_2_NEG | Constant | Name of Business Object | 'ZSCHNAPPI' | LIKE XO_BUSINESS_OBJECT_NAME | Protected |
BO_2_POS | Constant | Name of Business Object | 'ZCARGO_PLANE' | LIKE XO_BUSINESS_OBJECT_NAME | Protected |
BO_3_POS | Constant | Name of Business Object | 'ZPASSENGER_PLANE' | LIKE XO_BUSINESS_OBJECT_NAME | Protected |
BO_TYPE_1_NEG | Constant | Name of Business Object Type | 'ZFUBAR' | LIKE XO_BUSINESS_OBJECT_TYPE | Protected |
BO_TYPE_1_POS | Constant | Name of Business Object Type | 'ZAIRPLANE' | LIKE XO_BUSINESS_OBJECT_TYPE | Protected |
BO_TYPE_1_POS_LOCK_OBJECT | Constant | Name of Lock Object | 'EXOSAPLANE' | LIKE ENQU_NAME | Protected |
BO_TYPE_KEY | Constant | Name of Key Field | 'PLANETYPE' | LIKE XO_KEY_NAME | Protected |
BO_TYPE_KEY_NAME | Constant | Name of Key Field | 'PLANETYPE' | LIKE XO_KEY_NAME | Protected |
BO_TYPE_KEY_TYPE | Constant | Name of Data Type | 'S_PLANETYE' | LIKE XO_DATA_TYPE_NAME | Protected |
ERROR | Instance Attribute | LIKE | Private | ||
EXIT | Instance Attribute | LIKE | Private | ||
FALSE | Instance Attribute | LIKE | Private | ||
INFO | Instance Attribute | LIKE | Private | ||
MO_1_NEG | Constant | Name of Memory Object | 'Z12345' | LIKE XO_MEMORY_OBJECT_NAME | Protected |
MO_1_POS | Constant | Name of Memory Object | 'SAPLANE' | LIKE XO_MEMORY_OBJECT_NAME | Protected |
MO_1_POS_X | Constant | Name of X Structure of Memory Object | 'STR_XO_DUMMY_X' | LIKE XO_MEMORY_OBJECT_NAME | Protected |
MO_2_NEG | Constant | Name of Memory Object | 'Z67890' | LIKE XO_MEMORY_OBJECT_NAME | Protected |
MO_2_POS | Constant | Name of Memory Object | 'SCPLANE' | LIKE XO_MEMORY_OBJECT_NAME | Protected |
MO_3_POS | Constant | Name of Memory Object | 'SPPLANE' | LIKE XO_MEMORY_OBJECT_NAME | Protected |
MSG | Instance Attribute | Error Message | LIKE CHAR80 | Protected | |
MSG_DATA_CHANGED | Constant | No Buffered Reference Received | 'Data changed' | LIKE CHAR40 | Protected |
MSG_ENTRY_FOUND | Constant | No Buffered Reference Received | 'Entry found' | LIKE CHAR40 | Protected |
MSG_ENTRY_REMOVED | Constant | No Buffered Reference Received | 'Entry was removed' | LIKE CHAR40 | Protected |
MSG_ERROR_EXPECTED | Constant | No Buffered Reference Received | 'Error was expected' | LIKE CHAR40 | Protected |
MSG_ERROR_RETURNED | Constant | No Buffered Reference Received | 'Error was returned' | LIKE CHAR40 | Protected |
MSG_FALSE_DATA | Constant | Method Supplies Incorrect Data | 'False data from method:' | LIKE CHAR40 | Protected |
MSG_FALSE_PARAM | Constant | Incorrect Parameters Have Been Accepted | 'False parameter accepted:' | LIKE CHAR40 | Protected |
MSG_FALSE_RESULT | Constant | Results of Method Are Incorrect | 'False result in method:' | LIKE CHAR40 | Protected |
MSG_NEG | Constant | Negative Case | 'NEG:' | LIKE CHAR20 | Protected |
MSG_NO_BUF_REF | Constant | No Buffered Reference Received | 'No buffered reference returned:' | LIKE CHAR40 | Protected |
MSG_NO_ENTRY_FOUND | Constant | No Buffered Reference Received | 'No entry found' | LIKE CHAR40 | Protected |
MSG_NO_PARAM | Constant | No Errors for Obligatory Parameters with No Entries | 'No error on initial mandatory parameter:' | LIKE CHAR40 | Protected |
MSG_NO_REF | Constant | No Buffered Reference Received | 'No reference returned:' | LIKE CHAR40 | Protected |
MSG_POS | Constant | Positive Case | 'POS:' | LIKE CHAR20 | Protected |
PO_1_POS | Constant | Name of Persistence Object | 'ZSPFLI' | LIKE XO_PERSISTENCE_OBJECT_NAME | Protected |
SO_1_NEG | Constant | Name of Segment Object | 'ZFIX' | LIKE XO_SEGMENT_OBJECT_NAME | Protected |
SO_1_POS | Constant | Name of Segment Object | 'ZGENERAL_DATA' | LIKE XO_SEGMENT_OBJECT_NAME | Protected |
SO_2_NEG | Constant | Name of Segment Object | 'ZFOXI' | LIKE XO_SEGMENT_OBJECT_NAME | Protected |
SO_2_POS | Constant | Name of Segment Object | 'ZCARGO_DATA' | LIKE XO_SEGMENT_OBJECT_NAME | Protected |
SO_3_POS | Constant | Name of Segment Object | 'ZPASSENGER_DATA' | LIKE XO_SEGMENT_OBJECT_NAME | Protected |
SUCCESS | Instance Attribute | LIKE | Private | ||
TRUE | Instance Attribute | LIKE | Private | ||
WARNING | Instance Attribute | LIKE | Private |
Links to Related Class(s)
XO_UNIT_...Full list of available SAP object classes
Search for further information about these or an SAP related objects