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_DATA

Method 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 NameDescriptionVisability
CREATEPublic
CALL METHOD /sapapo/cl_au_test_products=>CREATE...more details

DELETEPublic
CALL METHOD /sapapo/cl_au_test_products=>DELETE...more details

DELETE_EXISTINGdelete existing product dataPublic
CALL METHOD /sapapo/cl_au_test_products=>DELETE_EXISTING...more details

GET_PRODUCTSGets created ProductsPublic
CALL METHOD /sapapo/cl_au_test_products=>GET_PRODUCTS...more details

SET_ALLOC_PROCSets Allocation ProcedurePublic
CALL METHOD /sapapo/cl_au_test_products=>SET_ALLOC_PROC...more details

SET_PACK_MATSets Packagin Material DataPublic
CALL METHOD /sapapo/cl_au_test_products=>SET_PACK_MAT...more details

SET_UOMSets Default UOMPublic
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.

NameLevelDescriptionInitial ValueTypeVisability
GC_CREATEInstance AttributeBapi Method Create Flag'N'LIKE
C
Private
GC_DEFAULT_SPRASInstance Attribute'E'LIKE
C
Private
GC_DEFAULT_TXTInstance AttributeConstant for the default Short Text for Product'ABAP UNIT Test Product'LIKE
STRING
Private
GC_DEFAULT_UOMInstance AttributeConstant for default Unit of Measure'ST'LIKE
STRING
Private
GC_DEFAUT_SPRASInstance AttributeConstant for the Default value of the language'D'LIKE
C
Private
GC_INSERTInstance Attribute'INS'LIKE
BAPIFN
Private
MC_NOT_CREATEDInstance AttributeError Text' has not been created'LIKE
STRING
Private
MC_PRODS_ERRInstance AttributeError Text'Products have not been created'LIKE
STRING
Private
MC_PROD_ERRInstance AttributeError Text'Product has not been created'LIKE
STRING
Private
MS_PRODInstance AttributeProduct: General DataLIKE
/SAPAPO/EXT_MATKEY
Private
MS_PRODTInstance AttributeProduct: Short TextsLIKE
/SAPAPO/EXT_MATTXT
Private
MT_TEST_PRODUCTSInstance AttributeProductsLIKE
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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!