MATERIAL_LOCK SAP Method Lock Material in PP or Staging









Below is documentation, parameters and attributes of ABAP Method MATERIAL_LOCK within SAP class TH_MDG_BS_MAT_CLF_SRV. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name TH_MDG_BS_MAT_CLF_SRV into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method MATERIAL_LOCK can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method MATERIAL_LOCK

.

NameTypeData TypeDescriptionDefault Value
IO_MOCKING_CNTLImportingTYPE REF TO
IF_MDG_BS_CLF_CNTL
Classification Controller
IV_MATNRImportingTYPE
MATNR
Material Number
IV_SCOPEImportingTYPE
CHAR1
M = Mocking, S = Staging, P = Primary
ET_USMD_MESSAGEExportingTYPE
USMD_T_MESSAGE
Messages



Exceptions of Method MATERIAL_LOCK

CX_MDG_BS_MAT_GEN - Material Exceptions and Messages

Example ABAP coding


DATA: lv_ET_USMD_MESSAGE TYPE USMD_T_MESSAGE,
lv_IO_MOCKING_CNTL TYPE IF_MDG_BS_CLF_CNTL,
lv_IV_MATNR TYPE MATNR,
lv_IV_SCOPE TYPE CHAR1,
lv_other TYPE c.

CALL METHOD TH_MDG_BS_MAT_CLF_SRV=>MATERIAL_LOCK(
EXPORTING
IO_MOCKING_CNTL = lv_IO_MOCKING_CNTL
IV_MATNR = lv_IV_MATNR
IV_SCOPE = lv_IV_SCOPE
IMPORTING
ET_USMD_MESSAGE = lv_ET_USMD_MESSAGE ).

Links to Related Class(s)

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