ABAP OO Class Methods

TH_MDG_BS_MAT_CLF_SRV SAP Class - Unittest Services and mocking for CLF Cntl







TH_MDG_BS_MAT_CLF_SRV 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 TH_MDG_BS_MAT_CLF_SRV 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 TH_MDG_BS_MAT_CLF_SRV
IF_MDG_BS_CLF_CNTL



Methods of TH_MDG_BS_MAT_CLF_SRV





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_MDG_BS_CLF_CNTL~CHECK_AND_DETERMINE - Check And Determine
IF_MDG_BS_CLF_CNTL~CHECK_CC_CLASSIFICATION - Check Cc Classification
IF_MDG_BS_CLF_CNTL~CHECK_CC_CLASSTYPE_EXISTS - Check Cc Classtype Exists
IF_MDG_BS_CLF_CNTL~CHECK_CC_MULT - Check Cc Mult
IF_MDG_BS_CLF_CNTL~CHECK_DS_CLASSIFICATION - Check Ds Classification
IF_MDG_BS_CLF_CNTL~CHECK_DS_IN_UPD_TASK - Check Ds In Upd Task
IF_MDG_BS_CLF_CNTL~CHECK_DS_ON_COMMIT - Check Ds On Commit
IF_MDG_BS_CLF_CNTL~CHECK_PP_CLASSIFICATION - Check Pp Classification
CLASS_CONSTRUCTOR - Class Constructor
CLF_ASSERT_EQUAL - Checks classification on equality
CLF_CONV_DATE_TO_ATFLV - Convert date to internal
CLF_MODIFY - Create Material in Staging, PP or Mocking (old CR API)
CLF_SETUP_AND_CHECK - Check CLF Setup
IF_MDG_BS_CLF_CNTL~CONVERT_OBJNUM_TO_EXTERN - Convert Objnum To Extern
DELETE_BSCDATTXT_ST - Delete
DELETE_INTCMNT_ST - Delete
DELETE_MARA_ST - Delete
DELETE_MARC_ST - Delete
DELETE_MARM_ST - Delete
DELETE_MBEW_ST - Delete
DELETE_MEAN_ST - Delete
DELETE_MLAN_ST - Delete
DELETE_MPGD_ST - Delete
DELETE_MRPTXT_ST - Delete
DELETE_MVKE_ST - Delete
DELETE_PURCHTXT_ST - Delete
DELETE_QINSPTXT_ST - Delete
DELETE_SALESTXT_ST - Delete
IF_MDG_BS_CLF_CNTL~DEQUEUE - Dequeue
ECO_SETUP_AND_CHECK - Check CLF Setup
IF_MDG_BS_CLF_CNTL~ENQUEUE - Enqueue
IF_MDG_BS_CLF_CNTL~GET_ACTIVE_ACCESS_CONTEXT - Get Active Access Context
IF_MDG_BS_CLF_CNTL~GET_ACTIVE_CHANGENO - Get Active Changeno
IF_MDG_BS_CLF_CNTL~GET_ACTIVE_CLASSTYPE - Get Active Classtype
IF_MDG_BS_CLF_CNTL~GET_ACTIVE_LANGUAGE - Get Active Language
IF_MDG_BS_CLF_CNTL~GET_ACTIVE_VALIDITY - Get Active Validity
IF_MDG_BS_CLF_CNTL~GET_ACTIVE_VALID_FROM - Get Active Valid From
IF_MDG_BS_CLF_CNTL~GET_ALL_CLASSTYPE - Get All Classtype
IF_MDG_BS_CLF_CNTL~GET_CLASSIFICATION - Get Classification




IF_MDG_BS_CLF_CNTL~GET_DEFAULT_CLASS - Get Default Class
IF_MDG_BS_CLF_CNTL~GET_DEFAULT_CLASSTYPE - Get Default Classtype
IF_MDG_BS_CLF_CNTL~GET_DEFAULT_LANGUAGE - Get Default Language
IF_MDG_BS_CLF_CNTL~GET_DEFAULT_UI_MODE - Get Default Ui Mode
IF_MDG_BS_CLF_CNTL~GET_DEFAULT_VALID_FROM - Get Default Valid From
GET_DISPO - Get Dispo
IF_MDG_BS_CLF_CNTL~GET_MAFID_FOR_DS - Get Mafid For Ds
IF_MDG_BS_CLF_CNTL~GET_MATERIAL_TYPE - Get Material Type
GET_MATNR - Generates an Material No
GET_MOCKING_CONTEXT - Get valid context
IF_MDG_BS_CLF_CNTL~GET_MSG_SEVERITY - Get Msg Severity
IF_MDG_BS_CLF_CNTL~GET_OBJKEY - Get Objkey
IF_MDG_BS_CLF_CNTL~GET_OBJNUM - Get Objnum
IF_MDG_BS_CLF_CNTL~GET_OBJTYPE - Get Objtype
IF_MDG_BS_CLF_CNTL~GET_PP_ACTIVE - Get Pp Active
IF_MDG_BS_CLF_CNTL~GET_USMD_MESSAGES - Get Usmd Messages
IF_MDG_BS_CLF_CNTL~GET_VALID_CLASSTYPE - Get Valid Classtype
GET_WERKS - Get Dispo
MATERIALS_MAINTAIN_API - Create Material in Staging, PP or Mocking (old CR API)
MATERIAL_ACTIVATE - Create Material in Staging, PP or Mocking (new Gov API)
MATERIAL_ASSERT_EQUAL - Checks material on equality
MATERIAL_CHECK - Create Material in Staging, PP or Mocking (old CR API)
MATERIAL_CONTAINER_EXECUTE - Execute writes and deletes from container
MATERIAL_CONTAINER_LOCK - Execute writes and deletes from container
MATERIAL_CREATE - Create Material in Staging, PP or Mocking (old CR API)
CL_USMD_CONV_SOM_GOV_API~MATERIAL_EVENT_KEY_CHANGED - Store changed keys
MATERIAL_KEY_GET - Get Matnr after key changed
MATERIAL_LOCK - Lock Material in PP or Staging
MATERIAL_MODIFY - Create Material in Staging, PP or Mocking (new Gov API)
MATERIAL_MODIFY_KEY - Create Material in Staging, PP or Mocking (new Gov API)
MATERIAL_READ - Read Material in Staging, PP or Mocking (old CR API)
MATERIAL_SAVE - Create Material in Staging, PP or Mocking (old CR API)
MODIFY_BSCDATTXT - Modify
MODIFY_INTCMNT - Modify
MODIFY_MARA - Modify
MODIFY_MARC - Modify
MODIFY_MARM - Modify
MODIFY_MBEW - Modify
MODIFY_MEAN - Modify





MODIFY_MLAN - Modify
MODIFY_MPGD - Modify
MODIFY_MRPTXT - Modify
MODIFY_MVKE - Modify
MODIFY_PURCHTXT - Modify
MODIFY_QINSPTXT - Modify
MODIFY_SALESTXT - Modify
MSG_ASSERT_EQUAL - Check expected messages
MSG_CHECK - Check messages for error
MSG_REPORT - write messages to unittest report
READ_BSCDATTXT_ST - Read
READ_INTCMNT_ST - Read
READ_MARA_ST - Read
READ_MARC_ST - Read
READ_MARM_ST - Read
READ_MBEW_ST - Read
READ_MEAN_ST - Read
READ_MLAN_ST - Read
READ_MPGD_ST - Read
READ_MRPTXT_ST - Read
READ_MVKE_ST - Read
READ_PURCHTXT_ST - Read
READ_QINSPTXT_ST - Read
READ_SALESTXT_ST - Read
IF_MDG_BS_CLF_CNTL~SAVE - Save
SET_DEFAULTS - Set Material default values
SET_MOCKING_CC_ALLOWED - ECN supported
SET_MOCKING_CC_MULT - ECN supported
SET_MOCKING_CHANGENO - ECN
SET_MOCKING_CLASSTYPES - Class Type
SET_MOCKING_CLF - Material Master, Class Assignment and Valuation
SET_MOCKING_DEFAULT - Default mocking setup from Material Master
SET_MOCKING_DEFAULT_CLASS - Default class
SET_MOCKING_DEFAULT_CLASSTYPE - Default classtype
SET_MOCKING_DIRECT_SAVE - Direct Save requested (without ON COMMIT)
SET_MOCKING_MARA - Material Master (General Data)
SET_MOCKING_PP_CHANGED - Primary Persistency changed
SET_MOCKING_VALID_FROM - Valid From
IF_MDG_BS_CLF_CNTL~SET_REF_DATA - Set Ref Data



IF_MDG_BS_CLF_CNTL~SYNC_BO - Sync Bo
IF_MDG_BS_CLF_CNTL~SYNC_STAGING - Sync Staging
IF_MDG_BS_CLF_CNTL~VALIDATE_CONTEXT - Validate Context


TH_MDG_BS_MAT_CLF_SRV Attributes

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


NameDescriptionInitial Value
GS_MOCKING_MARA Material Master
GT_KEY_MAP Key mapping after key changed
GT_MARA_ENTITY Entities
GT_MARC_ENTITY Entities
GT_MARM_ENTITY Entities
GT_MAT_CR CRs created
GT_MBEW_ENTITY Entities
GT_MEAN_ENTITY Entities
GT_MLAN_ENTITY Entities
GT_MOCKING_CLASSASGN Class Assignments (Staging)
GT_MOCKING_CLASSTYPE All and valid classtypes
GT_MOCKING_VALUATION Class Valuation (Staging)
GT_MPGD_ENTITY Entities
GT_MVKE_ENTITY Entities
GV_ACTION_NAME actual action text
GV_ACTION_PARAM actual attribute for action
GV_ACTION_SCOPE actual scope for action
GV_DEFAULT_CLASSTYPE Class Type '001'
GV_DEFAULT_MATKL Material Group
GV_DEFAULT_MBRSH Default material sector 'C'
GV_DEFAULT_MEINS Default material UOM 'L'
GV_DEFAULT_MTART Default material type 'FERT'
GV_DEFAULT_PLANT Sequence table for MRP units - scope of planning
GV_DEFAULT_VKORG Sales Organization
GV_DEFAULT_VTWEG Distribution Channel
GV_LOCK_WAIT Trys to get lock - 0 = one try
GV_MOCKING_ACTIVE_CLASSTYPE Class Type active
GV_MOCKING_CC_ALLOWED Change Number for Classification (ECO) allowed
GV_MOCKING_CC_ALLOWED_SET Change Number for Classification (ECO) allowed ABAP_FALSE
GV_MOCKING_CC_MULT Multiple Change Number in one commit
GV_MOCKING_CC_MULT_SET Multiple Change Number in one commit ABAP_FALSE
GV_MOCKING_CHANGENO ECN active
GV_MOCKING_CLASSTYPES_SET All and valid classtypes ABAP_FALSE
GV_MOCKING_CLASSTYPE_SET Primary Persistency has changed ABAP_FALSE
GV_MOCKING_DEFAULT_CLASS Class default
GV_MOCKING_DEFAULT_CLASSTYPE Class Type default
GV_MOCKING_DEF_CLASS_SET Class default ABAP_FALSE
GV_MOCKING_DIRECT_SAVE Direct Save requested
GV_MOCKING_DIRECT_SAVE_SET Direct Save requested ABAP_FALSE
GV_MOCKING_MARA_SET Material Master ABAP_FALSE
GV_MOCKING_PP_CHANGED Primary Persistency has changed
GV_MOCKING_PP_CHANGED_SET Primary Persistency has changed ABAP_FALSE
GV_MOCKING_VALIDITY_SET ECN and Valid From ABAP_FALSE
GV_MOCKING_VALID_FROM Valid From
GV_PP_ACTIVE 0 = Staging, 1 = Primary Persistency
GV_PREFIX Prefix for new Materials 'Z'
GV_UNITTEST_INDICATOR Unittest Indicator
GV_USMD_MODEL Data Model 'MM'




Events of the Class TH_MDG_BS_MAT_CLF_SRV

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