SAP CREATE_NEW_ML_MASTER_DATA Function Module for
CREATE_NEW_ML_MASTER_DATA is a standard create new ml master data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for create new ml master data FM, simply by entering the name CREATE_NEW_ML_MASTER_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CKML
Program Name: SAPLCKML
Main Program: SAPLCKML
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CREATE_NEW_ML_MASTER_DATA pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CREATE_NEW_ML_MASTER_DATA'".
EXPORTING
F_MT08L = "
F_MTCOM = "
* CALL_BY_INIT_PROG = ' ' "
* ONLY_CKMLPR = ' ' "
TABLES
* T_CKMLPP_INS = "
* T_CKMLCR_INS = "
* T_CKMLHD_INS = "
* T_CKMLPR_INS = "
* T_CURTP_STARTUP = "
EXCEPTIONS
ML_NICHT_PRODUKTIV = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCKMLMVQUANT_001
IMPORTING Parameters details for CREATE_NEW_ML_MASTER_DATA
F_MT08L -
Data type: MT08LOptional: No
Call by Reference: No ( called with pass by value option)
F_MTCOM -
Data type: MTCOMOptional: No
Call by Reference: No ( called with pass by value option)
CALL_BY_INIT_PROG -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_CKMLPR -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CREATE_NEW_ML_MASTER_DATA
T_CKMLPP_INS -
Data type: CKMLPPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_CKMLCR_INS -
Data type: CKMLCROptional: Yes
Call by Reference: No ( called with pass by value option)
T_CKMLHD_INS -
Data type: CKMLHDOptional: Yes
Call by Reference: No ( called with pass by value option)
T_CKMLPR_INS -
Data type: CKMLPROptional: Yes
Call by Reference: No ( called with pass by value option)
T_CURTP_STARTUP -
Data type: CKI_ML_CTYOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ML_NICHT_PRODUKTIV -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CREATE_NEW_ML_MASTER_DATA Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_f_mt08l | TYPE MT08L, " | |||
| lt_t_ckmlpp_ins | TYPE STANDARD TABLE OF CKMLPP, " | |||
| lv_ml_nicht_produktiv | TYPE CKMLPP, " | |||
| lv_f_mtcom | TYPE MTCOM, " | |||
| lt_t_ckmlcr_ins | TYPE STANDARD TABLE OF CKMLCR, " | |||
| lt_t_ckmlhd_ins | TYPE STANDARD TABLE OF CKMLHD, " | |||
| lv_call_by_init_prog | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_only_ckmlpr | TYPE BOOLE-BOOLE, " SPACE | |||
| lt_t_ckmlpr_ins | TYPE STANDARD TABLE OF CKMLPR, " | |||
| lt_t_curtp_startup | TYPE STANDARD TABLE OF CKI_ML_CTY. " |
|   CALL FUNCTION 'CREATE_NEW_ML_MASTER_DATA' " |
| EXPORTING | ||
| F_MT08L | = lv_f_mt08l | |
| F_MTCOM | = lv_f_mtcom | |
| CALL_BY_INIT_PROG | = lv_call_by_init_prog | |
| ONLY_CKMLPR | = lv_only_ckmlpr | |
| TABLES | ||
| T_CKMLPP_INS | = lt_t_ckmlpp_ins | |
| T_CKMLCR_INS | = lt_t_ckmlcr_ins | |
| T_CKMLHD_INS | = lt_t_ckmlhd_ins | |
| T_CKMLPR_INS | = lt_t_ckmlpr_ins | |
| T_CURTP_STARTUP | = lt_t_curtp_startup | |
| EXCEPTIONS | ||
| ML_NICHT_PRODUKTIV = 1 | ||
| . " CREATE_NEW_ML_MASTER_DATA | ||
ABAP code using 7.40 inline data declarations to call FM CREATE_NEW_ML_MASTER_DATA
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_call_by_init_prog). | ||||
| DATA(ld_call_by_init_prog) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_only_ckmlpr). | ||||
| DATA(ld_only_ckmlpr) | = ' '. | |||
Search for further information about these or an SAP related objects