SAP MM_DOCUMENT_INDEX_CREATE_NEW Function Module for NOTRANSL: Neuaufbau des Belegindex
MM_DOCUMENT_INDEX_CREATE_NEW is a standard mm document index create new 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: Neuaufbau des Belegindex 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 new FM, simply by entering the name MM_DOCUMENT_INDEX_CREATE_NEW 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_NEW 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_NEW'"NOTRANSL: Neuaufbau des Belegindex.
EXPORTING
I_BLTYP = "Document Category
* I_EKKO = "
* I_REFRESH_BUFFERS = 'X' "
* I_REFRESH_PARTNERS = ' ' "
* I_PRICING_DATE_FROM = "Date of Pricing (Limitation New Structure)
* I_PRICING_DATE_TO = "Date of Pricing (Limitation New Structure)
TABLES
XEKPO = "
TMCKONAIB = "LIS communication struct.
TKOMV = "Price Data
* T_BELIND_ERR = "Structure for Noting Error Messages: Document Index
EXCEPTIONS
NOT_ACTIVE = 1
IMPORTING Parameters details for MM_DOCUMENT_INDEX_CREATE_NEW
I_BLTYP - Document Category
Data type: T6I1-BLTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_EKKO -
Data type: EKKOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_REFRESH_BUFFERS -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REFRESH_PARTNERS -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PRICING_DATE_FROM - Date of Pricing (Limitation New Structure)
Data type: RMEIND1-BPRDAT_NEWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRICING_DATE_TO - Date of Pricing (Limitation New Structure)
Data type: RMEIND1-BPRDAT_NEWOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MM_DOCUMENT_INDEX_CREATE_NEW
XEKPO -
Data type: BEKPOOptional: No
Call by Reference: No ( called with pass by value option)
TMCKONAIB - LIS communication struct.
Data type: MCKONAIBOptional: No
Call by Reference: No ( called with pass by value option)
TKOMV - Price Data
Data type: KOMVOptional: No
Call by Reference: No ( called with pass by value option)
T_BELIND_ERR - Structure for Noting Error Messages: Document Index
Data type: BELIND_ERROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_ACTIVE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MM_DOCUMENT_INDEX_CREATE_NEW 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_xekpo | TYPE STANDARD TABLE OF BEKPO, " | |||
| lv_i_bltyp | TYPE T6I1-BLTYP, " | |||
| lv_not_active | TYPE T6I1, " | |||
| lv_i_ekko | TYPE EKKO, " | |||
| lt_tmckonaib | TYPE STANDARD TABLE OF MCKONAIB, " | |||
| lt_tkomv | TYPE STANDARD TABLE OF KOMV, " | |||
| lv_i_refresh_buffers | TYPE C, " 'X' | |||
| lt_t_belind_err | TYPE STANDARD TABLE OF BELIND_ERR, " | |||
| lv_i_refresh_partners | TYPE C, " SPACE | |||
| lv_i_pricing_date_from | TYPE RMEIND1-BPRDAT_NEW, " | |||
| lv_i_pricing_date_to | TYPE RMEIND1-BPRDAT_NEW. " |
|   CALL FUNCTION 'MM_DOCUMENT_INDEX_CREATE_NEW' "NOTRANSL: Neuaufbau des Belegindex |
| EXPORTING | ||
| I_BLTYP | = lv_i_bltyp | |
| I_EKKO | = lv_i_ekko | |
| I_REFRESH_BUFFERS | = lv_i_refresh_buffers | |
| I_REFRESH_PARTNERS | = lv_i_refresh_partners | |
| I_PRICING_DATE_FROM | = lv_i_pricing_date_from | |
| I_PRICING_DATE_TO | = lv_i_pricing_date_to | |
| TABLES | ||
| XEKPO | = lt_xekpo | |
| TMCKONAIB | = lt_tmckonaib | |
| TKOMV | = lt_tkomv | |
| T_BELIND_ERR | = lt_t_belind_err | |
| EXCEPTIONS | ||
| NOT_ACTIVE = 1 | ||
| . " MM_DOCUMENT_INDEX_CREATE_NEW | ||
ABAP code using 7.40 inline data declarations to call FM MM_DOCUMENT_INDEX_CREATE_NEW
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 BLTYP FROM T6I1 INTO @DATA(ld_i_bltyp). | ||||
| DATA(ld_i_refresh_buffers) | = 'X'. | |||
| DATA(ld_i_refresh_partners) | = ' '. | |||
| "SELECT single BPRDAT_NEW FROM RMEIND1 INTO @DATA(ld_i_pricing_date_from). | ||||
| "SELECT single BPRDAT_NEW FROM RMEIND1 INTO @DATA(ld_i_pricing_date_to). | ||||
Search for further information about these or an SAP related objects