SAP SLI_PRE_CHECK Function Module for NOTRANSL: Vorprüfungen für Selektionsbildeingaben zur Mitbewerberpreis-Erf
SLI_PRE_CHECK is a standard sli pre check 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: Vorprüfungen für Selektionsbildeingaben zur Mitbewerberpreis-Erf 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 sli pre check FM, simply by entering the name SLI_PRE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: WVKM
Program Name: SAPLWVKM
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function SLI_PRE_CHECK 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 'SLI_PRE_CHECK'"NOTRANSL: Vorprüfungen für Selektionsbildeingaben zur Mitbewerberpreis-Erf.
EXPORTING
PI_I_SLI = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
PE_I_SLI = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PE_SEL_KUNGR = "
PE_SEL_KUNNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
PE_SEL_ASORT = "
PE_SEL_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
CHANGING
* PX_S_KUNGR = "
* PX_S_KUNNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PX_S_ASORT = "
* PX_S_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
DATE_NOT_VALID = 1 NO_CUSTOMER_DATA_FOUND = 10 ACCOUNT_GROUP_NOT_VALID = 11 PRICE_LIST_NOT_FOUND = 12 ACTIVATION_DATA_NOT_COMPLETED = 13 EXIT = 14 NO_KLART_FOUND = 2 NO_ASSORTMENTS_SELECTED = 3 NO_MATERIALS_SELECTED = 4 NO_PLANTS_SELECTED = 5 PLANT_NOT_FOUND = 6 ORG_STRUCTURE_NOT_COMPLETED = 7 SALES_ORG_NOT_FOUND = 8 PLANT_NOT_DELIVERS_VIA_DISTRCH = 9
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLWVKM_001 Competitor: Extend Entry List Header WELPK
EXIT_SAPLWVKM_002 Competitor: Extend Entry List Item WELPP
IMPORTING Parameters details for SLI_PRE_CHECK
PI_I_SLI - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PISLIOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SLI_PRE_CHECK
PE_I_SLI - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: PISLIOptional: No
Call by Reference: No ( called with pass by value option)
PE_SEL_KUNGR -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
PE_SEL_KUNNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
PE_SEL_ASORT -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
PE_SEL_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SLI_PRE_CHECK
PX_S_KUNGR -
Data type: WVKM_KUNGR_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PX_S_KUNNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WVKM_KUNNR_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PX_S_ASORT -
Data type: WVKM_ASORT_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
PX_S_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WVKM_MATNR_RANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DATE_NOT_VALID - Invalid date
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CUSTOMER_DATA_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACCOUNT_GROUP_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRICE_LIST_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACTIVATION_DATA_NOT_COMPLETED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXIT - Cancel
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_KLART_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ASSORTMENTS_SELECTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MATERIALS_SELECTED - No materials could be selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PLANTS_SELECTED - No plants able to be selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PLANT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ORG_STRUCTURE_NOT_COMPLETED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SALES_ORG_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PLANT_NOT_DELIVERS_VIA_DISTRCH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SLI_PRE_CHECK 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_pe_i_sli | TYPE PISLI, " | |||
lv_pi_i_sli | TYPE PISLI, " | |||
lv_px_s_kungr | TYPE WVKM_KUNGR_RAN, " | |||
lv_date_not_valid | TYPE WVKM_KUNGR_RAN, " | |||
lv_no_customer_data_found | TYPE WVKM_KUNGR_RAN, " | |||
lv_account_group_not_valid | TYPE WVKM_KUNGR_RAN, " | |||
lv_price_list_not_found | TYPE WVKM_KUNGR_RAN, " | |||
lv_activation_data_not_completed | TYPE WVKM_KUNGR_RAN, " | |||
lv_exit | TYPE WVKM_KUNGR_RAN, " | |||
lv_px_s_kunnr | TYPE WVKM_KUNNR_RAN, " | |||
lv_pe_sel_kungr | TYPE SY-TABIX, " | |||
lv_no_klart_found | TYPE SY, " | |||
lv_px_s_asort | TYPE WVKM_ASORT_RAN, " | |||
lv_pe_sel_kunnr | TYPE SY-TABIX, " | |||
lv_no_assortments_selected | TYPE SY, " | |||
lv_px_s_matnr | TYPE WVKM_MATNR_RAN, " | |||
lv_pe_sel_asort | TYPE SY-TABIX, " | |||
lv_no_materials_selected | TYPE SY, " | |||
lv_pe_sel_matnr | TYPE SY-TABIX, " | |||
lv_no_plants_selected | TYPE SY, " | |||
lv_plant_not_found | TYPE SY, " | |||
lv_org_structure_not_completed | TYPE SY, " | |||
lv_sales_org_not_found | TYPE SY, " | |||
lv_plant_not_delivers_via_distrch | TYPE SY. " |
  CALL FUNCTION 'SLI_PRE_CHECK' "NOTRANSL: Vorprüfungen für Selektionsbildeingaben zur Mitbewerberpreis-Erf |
EXPORTING | ||
PI_I_SLI | = lv_pi_i_sli | |
IMPORTING | ||
PE_I_SLI | = lv_pe_i_sli | |
PE_SEL_KUNGR | = lv_pe_sel_kungr | |
PE_SEL_KUNNR | = lv_pe_sel_kunnr | |
PE_SEL_ASORT | = lv_pe_sel_asort | |
PE_SEL_MATNR | = lv_pe_sel_matnr | |
CHANGING | ||
PX_S_KUNGR | = lv_px_s_kungr | |
PX_S_KUNNR | = lv_px_s_kunnr | |
PX_S_ASORT | = lv_px_s_asort | |
PX_S_MATNR | = lv_px_s_matnr | |
EXCEPTIONS | ||
DATE_NOT_VALID = 1 | ||
NO_CUSTOMER_DATA_FOUND = 10 | ||
ACCOUNT_GROUP_NOT_VALID = 11 | ||
PRICE_LIST_NOT_FOUND = 12 | ||
ACTIVATION_DATA_NOT_COMPLETED = 13 | ||
EXIT = 14 | ||
NO_KLART_FOUND = 2 | ||
NO_ASSORTMENTS_SELECTED = 3 | ||
NO_MATERIALS_SELECTED = 4 | ||
NO_PLANTS_SELECTED = 5 | ||
PLANT_NOT_FOUND = 6 | ||
ORG_STRUCTURE_NOT_COMPLETED = 7 | ||
SALES_ORG_NOT_FOUND = 8 | ||
PLANT_NOT_DELIVERS_VIA_DISTRCH = 9 | ||
. " SLI_PRE_CHECK |
ABAP code using 7.40 inline data declarations to call FM SLI_PRE_CHECK
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 TABIX FROM SY INTO @DATA(ld_pe_sel_kungr). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_pe_sel_kunnr). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_pe_sel_asort). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_pe_sel_matnr). | ||||
Search for further information about these or an SAP related objects