SAP ELM_MAINTAIN Function Module for Ext. List Management - Maintain Lists
ELM_MAINTAIN is a standard elm maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ext. List Management - Maintain Lists 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 elm maintain FM, simply by entering the name ELM_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: ELM_API
Program Name: SAPLELM_API
Main Program: SAPLELM_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ELM_MAINTAIN 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 'ELM_MAINTAIN'"Ext. List Management - Maintain Lists.
EXPORTING
IS_LIST = "Ext. List Management - Header API-IN
IT_STEP = "Ext. List Management - Steps API-IN
* IT_FILE = "Ext. List Management - File API-IN
* IV_IGNORE_WARNINGS = "Ext. List Management: Warning Indicator (X = Warning)
IMPORTING
ES_LIST = "Ext. List Management - Header API-Out
ET_STEP = "Ext. List Management - Steps API-OUT
ET_FILE = "Ext. List Management - File API-OUT
EV_ERROR = "Ext. List Management: Error Indicator (X = Error)
EV_WARNING = "Ext. List Management: Warning Indicator (X = Warning)
ET_MESSAGE = "Table with BAPI Return Information
IMPORTING Parameters details for ELM_MAINTAIN
IS_LIST - Ext. List Management - Header API-IN
Data type: ELMT_LIST_API_INOptional: No
Call by Reference: Yes
IT_STEP - Ext. List Management - Steps API-IN
Data type: ELMT_STEP_API_IN_TABOptional: No
Call by Reference: Yes
IT_FILE - Ext. List Management - File API-IN
Data type: ELMT_FILE_API_IN_TABOptional: Yes
Call by Reference: Yes
IV_IGNORE_WARNINGS - Ext. List Management: Warning Indicator (X = Warning)
Data type: ELMT_WARNINGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ELM_MAINTAIN
ES_LIST - Ext. List Management - Header API-Out
Data type: ELMT_LIST_API_OUTOptional: No
Call by Reference: Yes
ET_STEP - Ext. List Management - Steps API-OUT
Data type: ELMT_STEP_API_OUT_TABOptional: No
Call by Reference: Yes
ET_FILE - Ext. List Management - File API-OUT
Data type: ELMT_FILE_API_OUT_TABOptional: No
Call by Reference: Yes
EV_ERROR - Ext. List Management: Error Indicator (X = Error)
Data type: ELMT_ERROROptional: No
Call by Reference: Yes
EV_WARNING - Ext. List Management: Warning Indicator (X = Warning)
Data type: ELMT_WARNINGOptional: No
Call by Reference: Yes
ET_MESSAGE - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ELM_MAINTAIN 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_es_list | TYPE ELMT_LIST_API_OUT, " | |||
| lv_is_list | TYPE ELMT_LIST_API_IN, " | |||
| lv_et_step | TYPE ELMT_STEP_API_OUT_TAB, " | |||
| lv_it_step | TYPE ELMT_STEP_API_IN_TAB, " | |||
| lv_et_file | TYPE ELMT_FILE_API_OUT_TAB, " | |||
| lv_it_file | TYPE ELMT_FILE_API_IN_TAB, " | |||
| lv_ev_error | TYPE ELMT_ERROR, " | |||
| lv_iv_ignore_warnings | TYPE ELMT_WARNING, " | |||
| lv_ev_warning | TYPE ELMT_WARNING, " | |||
| lv_et_message | TYPE BAPIRETTAB. " |
|   CALL FUNCTION 'ELM_MAINTAIN' "Ext. List Management - Maintain Lists |
| EXPORTING | ||
| IS_LIST | = lv_is_list | |
| IT_STEP | = lv_it_step | |
| IT_FILE | = lv_it_file | |
| IV_IGNORE_WARNINGS | = lv_iv_ignore_warnings | |
| IMPORTING | ||
| ES_LIST | = lv_es_list | |
| ET_STEP | = lv_et_step | |
| ET_FILE | = lv_et_file | |
| EV_ERROR | = lv_ev_error | |
| EV_WARNING | = lv_ev_warning | |
| ET_MESSAGE | = lv_et_message | |
| . " ELM_MAINTAIN | ||
ABAP code using 7.40 inline data declarations to call FM ELM_MAINTAIN
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.Search for further information about these or an SAP related objects