SAP /SAPAPO/CL_AU_TEST_PRODUCTS OO Class - Create products for ABAP Unit Tests
/SAPAPO/CL_AU_TEST_PRODUCTS 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 /SAPAPO/CL_AU_TEST_PRODUCTS including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Interface Implementation
This OO class is an Interface Implementation, which means it will implement its own version of the methods from implementation class /SAPAPO/IF_TEST_DATAMethod list of /SAPAPO/CL_AU_TEST_PRODUCTS 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 |
| CREATE | Public | |
| CALL METHOD /sapapo/cl_au_test_products=>CREATE...more details | ||
| DELETE | Public | |
| CALL METHOD /sapapo/cl_au_test_products=>DELETE...more details | ||
| DELETE_EXISTING | delete existing product data | Public |
| CALL METHOD /sapapo/cl_au_test_products=>DELETE_EXISTING...more details | ||
| GET_PRODUCTS | Gets created Products | Public |
| CALL METHOD /sapapo/cl_au_test_products=>GET_PRODUCTS...more details | ||
| SET_ALLOC_PROC | Sets Allocation Procedure | Public |
| CALL METHOD /sapapo/cl_au_test_products=>SET_ALLOC_PROC...more details | ||
| SET_PACK_MAT | Sets Packagin Material Data | Public |
| CALL METHOD /sapapo/cl_au_test_products=>SET_PACK_MAT...more details | ||
|
| ||
| SET_UOM | Sets Default UOM | Public |
| CALL METHOD /sapapo/cl_au_test_products=>SET_UOM...more details | ||
/SAPAPO/CL_AU_TEST_PRODUCTS 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 |
| GC_CREATE | Instance Attribute | Bapi Method Create Flag | 'N' | LIKE C | Private |
| GC_DEFAULT_SPRAS | Instance Attribute | 'E' | LIKE C | Private | |
| GC_DEFAULT_TXT | Instance Attribute | Constant for the default Short Text for Product | 'ABAP UNIT Test Product' | LIKE STRING | Private |
| GC_DEFAULT_UOM | Instance Attribute | Constant for default Unit of Measure | 'ST' | LIKE STRING | Private |
| GC_DEFAUT_SPRAS | Instance Attribute | Constant for the Default value of the language | 'D' | LIKE C | Private |
| GC_INSERT | Instance Attribute | 'INS' | LIKE BAPIFN | Private | |
| MC_NOT_CREATED | Instance Attribute | Error Text | ' has not been created' | LIKE STRING | Private |
| MC_PRODS_ERR | Instance Attribute | Error Text | 'Products have not been created' | LIKE STRING | Private |
| MC_PROD_ERR | Instance Attribute | Error Text | 'Product has not been created' | LIKE STRING | Private |
| MS_PROD | Instance Attribute | Product: General Data | LIKE /SAPAPO/EXT_MATKEY | Private | |
| MS_PRODT | Instance Attribute | Product: Short Texts | LIKE /SAPAPO/EXT_MATTXT | Private | |
| MT_TEST_PRODUCTS | Instance Attribute | Products | LIKE | Private |
/SAPAPO/CL_AU_TEST_PRODUCTS types
EXT_MATKEYX_TAB -EXT_MATKEY_TAB -
EXT_MATTXTX_TAB -
EXT_MATTXT_TAB -
Links to Related Class(s)
/SAPAPO/...Full list of available SAP object classes
Search for further information about these or an SAP related objects