EXIT_SAPLMEPI_001 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name EXIT_SAPLMEPI_001 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
XCIF
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'EXIT_SAPLMEPI_001' "Customer Exit for Changing Product Allocations for Purchase Requisitions
EXPORTING
sp_stock_ind = " eban-sobkz
so_number = " ebkn-vbeln
so_item = " ebkn-vbelp
wbs_element = " ebkn-ps_psp_pnr
CHANGING
ch_eban = " eban
ch_ebkn = " cif_yebkn
. " EXIT_SAPLMEPI_001
The ABAP code below is a full code listing to execute function module EXIT_SAPLMEPI_001 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_ch_eban) = 'Check type of data required'.
DATA(ld_ch_ebkn) = 'Check type of data required'.
SELECT single SOBKZ
FROM EBAN
INTO @DATA(ld_sp_stock_ind).
SELECT single VBELN
FROM EBKN
INTO @DATA(ld_so_number).
SELECT single VBELP
FROM EBKN
INTO @DATA(ld_so_item).
SELECT single PS_PSP_PNR
FROM EBKN
INTO @DATA(ld_wbs_element).
. CALL FUNCTION 'EXIT_SAPLMEPI_001' EXPORTING sp_stock_ind = ld_sp_stock_ind so_number = ld_so_number so_item = ld_so_item wbs_element = ld_wbs_element CHANGING ch_eban = ld_ch_eban ch_ebkn = ld_ch_ebkn . " EXIT_SAPLMEPI_001
IF SY-SUBRC EQ 0. "All OK ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_ch_eban | TYPE EBAN , |
| ld_sp_stock_ind | TYPE EBAN-SOBKZ , |
| ld_ch_ebkn | TYPE CIF_YEBKN , |
| ld_so_number | TYPE EBKN-VBELN , |
| ld_so_item | TYPE EBKN-VBELP , |
| ld_wbs_element | TYPE EBKN-PS_PSP_PNR . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name EXIT_SAPLMEPI_001 or its description.
EXIT_SAPLMEPI_001 - Customer Exit for Changing Product Allocations for Purchase Requisitio EXIT_SAPLMEL0_001 - User Exits for Vendor Evaluation EXIT_SAPLMEKO_002 - Extend Communication Structure KOMP for Pricing EXIT_SAPLMEKO_001 - Extend Communication Structure KOMK for Pricing EXIT_SAPLMEDRUCK_001 - Enhancement of Print Program LMEDR001 EXIT_SAPLMEAP_002 - Customer Exit for Suppression of Quota Arrangement Info for APO Transf