SAP MASTER_IDOC_CREATE_686A Function Module for Conditions: Exclusion Indicator
MASTER_IDOC_CREATE_686A is a standard master idoc create 686a SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Conditions: Exclusion Indicator 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 686a FM, simply by entering the name MASTER_IDOC_CREATE_686A 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_686A 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_686A'"Conditions: Exclusion Indicator.
EXPORTING
I_MESTYPT = "
* I_LOGSYS = ' ' "
I_T686A_T = "
I_T002_T = "
CHANGING
I_PROT_T = "
EXCEPTIONS
SYSTEM_ERROR = 1 NO_DATA_FOUND = 2
IMPORTING Parameters details for MASTER_IDOC_CREATE_686A
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_T686A_T -
Data type: VKCE_T686A_TOptional: No
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_686A
I_PROT_T -
Data type: VKCE_PROTOptional: 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_686A 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_i_prot_t | TYPE VKCE_PROT, " | |||
| lv_i_mestypt | TYPE TBDME-MESTYP, " | |||
| lv_system_error | TYPE TBDME, " | |||
| lv_i_logsys | TYPE TBDLS-LOGSYS, " SPACE | |||
| lv_no_data_found | TYPE TBDLS, " | |||
| lv_i_t686a_t | TYPE VKCE_T686A_T, " | |||
| lv_i_t002_t | TYPE VKCE_T002_T. " |
|   CALL FUNCTION 'MASTER_IDOC_CREATE_686A' "Conditions: Exclusion Indicator |
| EXPORTING | ||
| I_MESTYPT | = lv_i_mestypt | |
| I_LOGSYS | = lv_i_logsys | |
| I_T686A_T | = lv_i_t686a_t | |
| I_T002_T | = lv_i_t002_t | |
| CHANGING | ||
| I_PROT_T | = lv_i_prot_t | |
| EXCEPTIONS | ||
| SYSTEM_ERROR = 1 | ||
| NO_DATA_FOUND = 2 | ||
| . " MASTER_IDOC_CREATE_686A | ||
ABAP code using 7.40 inline data declarations to call FM MASTER_IDOC_CREATE_686A
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) | = ' '. | |||
Search for further information about these or an SAP related objects