SAP MASTER_IDOC_CREATE_006 Function Module for NOTRANSL: IDOC für Dimension/Maßeinheiten erzeugen
MASTER_IDOC_CREATE_006 is a standard master idoc create 006 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: IDOC für Dimension/Maßeinheiten erzeugen processing and below is the pattern details for this FM, 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 master idoc create 006 FM, simply by entering the name MASTER_IDOC_CREATE_006 into the relevant SAP transaction such as SE37 or SE38.
Function Group: VKCE
Program Name: SAPLVKCE
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MASTER_IDOC_CREATE_006 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 'MASTER_IDOC_CREATE_006'"NOTRANSL: IDOC für Dimension/Maßeinheiten erzeugen.
EXPORTING
I_MESTYPT = "
* I_LOGSYS = ' ' "
* I_ALL = ' ' "
I_T002_T = "
CHANGING
I_PROT_T = "
TABLES
T006_T = "
T006D_T = "
T006T_T = "
EXCEPTIONS
SYSTEM_ERROR = 1 NO_DATA_FOUND = 2
IMPORTING Parameters details for MASTER_IDOC_CREATE_006
I_MESTYPT -
Data type: TBDME-MESTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_LOGSYS -
Data type: TBDLS-LOGSYSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ALL -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T002_T -
Data type: VKCE_T002_TOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MASTER_IDOC_CREATE_006
I_PROT_T -
Data type: VKCE_PROTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MASTER_IDOC_CREATE_006
T006_T -
Data type: T006Optional: No
Call by Reference: No ( called with pass by value option)
T006D_T -
Data type: T006DOptional: No
Call by Reference: No ( called with pass by value option)
T006T_T -
Data type: T006TOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SYSTEM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MASTER_IDOC_CREATE_006 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: | ||||
| lt_t006_t | TYPE STANDARD TABLE OF T006, " | |||
| lv_i_prot_t | TYPE VKCE_PROT, " | |||
| lv_i_mestypt | TYPE TBDME-MESTYP, " | |||
| lv_system_error | TYPE TBDME, " | |||
| lt_t006d_t | TYPE STANDARD TABLE OF T006D, " | |||
| lv_i_logsys | TYPE TBDLS-LOGSYS, " SPACE | |||
| lv_no_data_found | TYPE TBDLS, " | |||
| lv_i_all | TYPE C, " SPACE | |||
| lt_t006t_t | TYPE STANDARD TABLE OF T006T, " | |||
| lv_i_t002_t | TYPE VKCE_T002_T. " |
|   CALL FUNCTION 'MASTER_IDOC_CREATE_006' "NOTRANSL: IDOC für Dimension/Maßeinheiten erzeugen |
| EXPORTING | ||
| I_MESTYPT | = lv_i_mestypt | |
| I_LOGSYS | = lv_i_logsys | |
| I_ALL | = lv_i_all | |
| I_T002_T | = lv_i_t002_t | |
| CHANGING | ||
| I_PROT_T | = lv_i_prot_t | |
| TABLES | ||
| T006_T | = lt_t006_t | |
| T006D_T | = lt_t006d_t | |
| T006T_T | = lt_t006t_t | |
| EXCEPTIONS | ||
| SYSTEM_ERROR = 1 | ||
| NO_DATA_FOUND = 2 | ||
| . " MASTER_IDOC_CREATE_006 | ||
ABAP code using 7.40 inline data declarations to call FM MASTER_IDOC_CREATE_006
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 MESTYP FROM TBDME INTO @DATA(ld_i_mestypt). | ||||
| "SELECT single LOGSYS FROM TBDLS INTO @DATA(ld_i_logsys). | ||||
| DATA(ld_i_logsys) | = ' '. | |||
| DATA(ld_i_all) | = ' '. | |||
Search for further information about these or an SAP related objects