ELM_DELETE_ITEMS is a standard SAP function module that performs Ext. List Management - Delete Items functionality. This is available within standard R/3 SAP systems depending on version and release level.
Below are the pattern details for this FM showing its interface including any import, export and tables parameters. There is also a list of Exceptions and for your convenience any standard documentation available. All this information and more can also be viewed if you enter the function module name ELM_DELETE_ITEMS into the relevant SAP transaction such as SE37 or SE80.
CALL FUNCTION 'ELM_DELETE_ITEMS' "Ext. List Management - Delete Items
EXPORTING
iv_list_guid = " elmt_list_guid Ext. List Management: GUID for BP List
it_item_guid = " elmt_item_guid_tab Ext. List Management: Item GUID Table
* iv_check_only = ' ' " elmt_boolean Ext. List Management: True = X, False = SPACE
IMPORTING
ev_error = " elmt_error Ext. List Management: Error Indicator (X = Error)
et_message = " bapirettab Table with BAPI Return Information
. " ELM_DELETE_ITEMS