SAP MM_DOCUMENT_INDEX_CREATE Function Module for Generate Document Index
MM_DOCUMENT_INDEX_CREATE is a standard mm document index create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Document Index 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 mm document index create FM, simply by entering the name MM_DOCUMENT_INDEX_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WIN0
Program Name: SAPLWIN0
Main Program: SAPLWIN0
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MM_DOCUMENT_INDEX_CREATE 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 'MM_DOCUMENT_INDEX_CREATE'"Generate Document Index.
EXPORTING
I_EKKO = "Document Number
I_BLIND = "
* I_BLTYP = '01' "Document Category
* I_INDEX_DATA_READ = 'X' "
I_XEKPO = "
* I_YEKPO = "
TABLES
TKOMK = "
TKOMV = "
TKOMP = "Price Data
YKOMV = "
IMPORTING Parameters details for MM_DOCUMENT_INDEX_CREATE
I_EKKO - Document Number
Data type: EKKOOptional: No
Call by Reference: No ( called with pass by value option)
I_BLIND -
Data type: LFM1-BLINDOptional: No
Call by Reference: No ( called with pass by value option)
I_BLTYP - Document Category
Data type: T6I1-BLTYPDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INDEX_DATA_READ -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XEKPO -
Data type: UEKPO_TYPEOptional: No
Call by Reference: Yes
I_YEKPO -
Data type: UEKPO_TYPEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for MM_DOCUMENT_INDEX_CREATE
TKOMK -
Data type: KOMKOptional: No
Call by Reference: No ( called with pass by value option)
TKOMV -
Data type: KOMVOptional: No
Call by Reference: No ( called with pass by value option)
TKOMP - Price Data
Data type: KOMPOptional: No
Call by Reference: No ( called with pass by value option)
YKOMV -
Data type: KOMVOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MM_DOCUMENT_INDEX_CREATE 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_tkomk | TYPE STANDARD TABLE OF KOMK, " | |||
| lv_i_ekko | TYPE EKKO, " | |||
| lt_tkomv | TYPE STANDARD TABLE OF KOMV, " | |||
| lv_i_blind | TYPE LFM1-BLIND, " | |||
| lt_tkomp | TYPE STANDARD TABLE OF KOMP, " | |||
| lv_i_bltyp | TYPE T6I1-BLTYP, " '01' | |||
| lt_ykomv | TYPE STANDARD TABLE OF KOMV, " | |||
| lv_i_index_data_read | TYPE C, " 'X' | |||
| lv_i_xekpo | TYPE UEKPO_TYPE, " | |||
| lv_i_yekpo | TYPE UEKPO_TYPE. " |
|   CALL FUNCTION 'MM_DOCUMENT_INDEX_CREATE' "Generate Document Index |
| EXPORTING | ||
| I_EKKO | = lv_i_ekko | |
| I_BLIND | = lv_i_blind | |
| I_BLTYP | = lv_i_bltyp | |
| I_INDEX_DATA_READ | = lv_i_index_data_read | |
| I_XEKPO | = lv_i_xekpo | |
| I_YEKPO | = lv_i_yekpo | |
| TABLES | ||
| TKOMK | = lt_tkomk | |
| TKOMV | = lt_tkomv | |
| TKOMP | = lt_tkomp | |
| YKOMV | = lt_ykomv | |
| . " MM_DOCUMENT_INDEX_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM MM_DOCUMENT_INDEX_CREATE
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 BLIND FROM LFM1 INTO @DATA(ld_i_blind). | ||||
| "SELECT single BLTYP FROM T6I1 INTO @DATA(ld_i_bltyp). | ||||
| DATA(ld_i_bltyp) | = '01'. | |||
| DATA(ld_i_index_data_read) | = 'X'. | |||
Search for further information about these or an SAP related objects