MATERIAL_SAVE SAP Method Create Material in Staging, PP or Mocking (old CR API)
Below is documentation, parameters and attributes of ABAP Method MATERIAL_SAVE 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 directlyThe following technical details of method MATERIAL_SAVE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method MATERIAL_SAVE
.Name | Type | Data Type | Description | Default Value |
IO_MOCKING_CNTL | Importing | TYPE REF TO IF_MDG_BS_CLF_CNTL | Classification Controller Interface for Lead Object | |
IV_MATNR | Importing | TYPE MATNR | Material Number | |
ES_MAT_CR | Exporting | TYPE TY_S_MAT_CR | Material Number and CR | |
ET_USMD_MESSAGE | Exporting | TYPE USMD_T_MESSAGE | Messages |
Exceptions of Method MATERIAL_SAVE
CX_MDG_BS_MAT_GEN - Material Exceptions and MessagesExample ABAP coding
DATA: lv_ES_MAT_CR TYPE TY_S_MAT_CR,
lv_ET_USMD_MESSAGE TYPE USMD_T_MESSAGE,
lv_IO_MOCKING_CNTL TYPE IF_MDG_BS_CLF_CNTL,
lv_IV_MATNR TYPE MATNR,
lv_other TYPE c.
CALL METHOD TH_MDG_BS_MAT_CLF_SRV=>MATERIAL_SAVE(
EXPORTING
IO_MOCKING_CNTL = lv_IO_MOCKING_CNTL
IV_MATNR = lv_IV_MATNR
IMPORTING
ES_MAT_CR = lv_ES_MAT_CR
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