SAP SHOP_ITEM_LISTING_RULES_CHECK Function Module for
SHOP_ITEM_LISTING_RULES_CHECK is a standard shop item listing rules check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 shop item listing rules check FM, simply by entering the name SHOP_ITEM_LISTING_RULES_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSO1
Program Name: SAPLWSO1
Main Program: SAPLWSO1
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SHOP_ITEM_LISTING_RULES_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 'SHOP_ITEM_LISTING_RULES_CHECK'".
EXPORTING
* ASS_LEVEL_SHOP = ' ' "Range grade (as in WRF6, therefore plant)
* ERR_DETAIL = ' ' "--> see long text
* SALES_UNIT = ' ' "Only for SP test (opt.), otherwise MARA sales unit
* NUMBER_OF_STORES = 0 "
* CONTINUE = ' ' "
* SITUATION = ' ' "
* ASS_LEVEL_ITEM = ' ' "Range grade (of the material)
* DATE = SY-DATUM "Check date
ITEM = "Material no.
LISTING_METHOD = "Listing procedure
* MODULE = ' ' "Module to which assignments are to be made (opt.)
SHOP = "Assortment
TYPE_F = "A:all, P:list.profile test, C:class.test,..(long text)
* MERCHANDISE_GROUP = ' ' "Material group
IMPORTING
WSCOR = "Ranges error info
STATUS = "-> no longer set (please use WLK1_CHECK)
MODULE_SELECT = "Module number: 'manual procedure' selection
TABLES
* LAYOUT_GROUPS = "Layout modules (for comparison)
* ERR_DETAILS = "See ERR_DETAIL documentation
* VARIANTEN = "
EXCEPTIONS
NO_MULTIPLE_LISTING = 1 RULES_MATCHING_NOT_OK = 2 WRONG_TYPE = 3 WRONG_LISTING_METHOD = 4
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_SAPLWSO1_001 User Exit for Controling Data Adjustment for Listing/Article Maintenance
EXIT_SAPLWSO1_002 Do Not Include Supplying Plant Control in Material Maintenance
EXIT_SAPLWSO1_003 User Exit for Controling List. Conditions in Integrated Artl. Maintenance
EXIT_SAPLWSO1_004 Control for Creating Additional MVKE Data During Listing
IMPORTING Parameters details for SHOP_ITEM_LISTING_RULES_CHECK
ASS_LEVEL_SHOP - Range grade (as in WRF6, therefore plant)
Data type: TWSS-SSTUFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ERR_DETAIL - --> see long text
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SALES_UNIT - Only for SP test (opt.), otherwise MARA sales unit
Data type: MVKE-VRKMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NUMBER_OF_STORES -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTINUE -
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SITUATION -
Data type: WTDY-TYP01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ASS_LEVEL_ITEM - Range grade (of the material)
Data type: TWSS-SSTUFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE - Check date
Data type: WSOH-DATABDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ITEM - Material no.
Data type: MARA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
LISTING_METHOD - Listing procedure
Data type: TWLV-LSTFLOptional: No
Call by Reference: No ( called with pass by value option)
MODULE - Module to which assignments are to be made (opt.)
Data type: WSOH-SKOPFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOP - Assortment
Data type: WRS1-ASORTOptional: No
Call by Reference: No ( called with pass by value option)
TYPE_F - A:all, P:list.profile test, C:class.test,..(long text)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MERCHANDISE_GROUP - Material group
Data type: MARA-MATKLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SHOP_ITEM_LISTING_RULES_CHECK
WSCOR - Ranges error info
Data type: WSCOROptional: No
Call by Reference: No ( called with pass by value option)
STATUS - -> no longer set (please use WLK1_CHECK)
Data type: WSOH-STAT3Optional: No
Call by Reference: No ( called with pass by value option)
MODULE_SELECT - Module number: 'manual procedure' selection
Data type: WSOH-SKOPFOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SHOP_ITEM_LISTING_RULES_CHECK
LAYOUT_GROUPS - Layout modules (for comparison)
Data type: WINT_LAYOptional: Yes
Call by Reference: No ( called with pass by value option)
ERR_DETAILS - See ERR_DETAIL documentation
Data type: WSCOROptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANTEN -
Data type: MARAOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MULTIPLE_LISTING - Multiple listings not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RULES_MATCHING_NOT_OK - Listing rules not fulfilled
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_TYPE - Inadmissible TYPE parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_LISTING_METHOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SHOP_ITEM_LISTING_RULES_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_wscor | TYPE WSCOR, " | |||
| lt_layout_groups | TYPE STANDARD TABLE OF WINT_LAY, " | |||
| lv_ass_level_shop | TYPE TWSS-SSTUF, " SPACE | |||
| lv_no_multiple_listing | TYPE TWSS, " | |||
| lv_err_detail | TYPE WTDY-TYP01, " SPACE | |||
| lv_sales_unit | TYPE MVKE-VRKME, " SPACE | |||
| lv_number_of_stores | TYPE SY-TABIX, " 0 | |||
| lv_continue | TYPE WTDY-TYP01, " SPACE | |||
| lv_situation | TYPE WTDY-TYP01, " SPACE | |||
| lv_status | TYPE WSOH-STAT3, " | |||
| lt_err_details | TYPE STANDARD TABLE OF WSCOR, " | |||
| lv_ass_level_item | TYPE TWSS-SSTUF, " SPACE | |||
| lv_rules_matching_not_ok | TYPE TWSS, " | |||
| lv_date | TYPE WSOH-DATAB, " SY-DATUM | |||
| lt_varianten | TYPE STANDARD TABLE OF MARA, " | |||
| lv_wrong_type | TYPE MARA, " | |||
| lv_module_select | TYPE WSOH-SKOPF, " | |||
| lv_item | TYPE MARA-MATNR, " | |||
| lv_wrong_listing_method | TYPE MARA, " | |||
| lv_listing_method | TYPE TWLV-LSTFL, " | |||
| lv_module | TYPE WSOH-SKOPF, " SPACE | |||
| lv_shop | TYPE WRS1-ASORT, " | |||
| lv_type_f | TYPE WRS1, " | |||
| lv_merchandise_group | TYPE MARA-MATKL. " SPACE |
|   CALL FUNCTION 'SHOP_ITEM_LISTING_RULES_CHECK' " |
| EXPORTING | ||
| ASS_LEVEL_SHOP | = lv_ass_level_shop | |
| ERR_DETAIL | = lv_err_detail | |
| SALES_UNIT | = lv_sales_unit | |
| NUMBER_OF_STORES | = lv_number_of_stores | |
| CONTINUE | = lv_continue | |
| SITUATION | = lv_situation | |
| ASS_LEVEL_ITEM | = lv_ass_level_item | |
| DATE | = lv_date | |
| ITEM | = lv_item | |
| LISTING_METHOD | = lv_listing_method | |
| MODULE | = lv_module | |
| SHOP | = lv_shop | |
| TYPE_F | = lv_type_f | |
| MERCHANDISE_GROUP | = lv_merchandise_group | |
| IMPORTING | ||
| WSCOR | = lv_wscor | |
| STATUS | = lv_status | |
| MODULE_SELECT | = lv_module_select | |
| TABLES | ||
| LAYOUT_GROUPS | = lt_layout_groups | |
| ERR_DETAILS | = lt_err_details | |
| VARIANTEN | = lt_varianten | |
| EXCEPTIONS | ||
| NO_MULTIPLE_LISTING = 1 | ||
| RULES_MATCHING_NOT_OK = 2 | ||
| WRONG_TYPE = 3 | ||
| WRONG_LISTING_METHOD = 4 | ||
| . " SHOP_ITEM_LISTING_RULES_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM SHOP_ITEM_LISTING_RULES_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 SSTUF FROM TWSS INTO @DATA(ld_ass_level_shop). | ||||
| DATA(ld_ass_level_shop) | = ' '. | |||
| "SELECT single TYP01 FROM WTDY INTO @DATA(ld_err_detail). | ||||
| DATA(ld_err_detail) | = ' '. | |||
| "SELECT single VRKME FROM MVKE INTO @DATA(ld_sales_unit). | ||||
| DATA(ld_sales_unit) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_number_of_stores). | ||||
| "SELECT single TYP01 FROM WTDY INTO @DATA(ld_continue). | ||||
| DATA(ld_continue) | = ' '. | |||
| "SELECT single TYP01 FROM WTDY INTO @DATA(ld_situation). | ||||
| DATA(ld_situation) | = ' '. | |||
| "SELECT single STAT3 FROM WSOH INTO @DATA(ld_status). | ||||
| "SELECT single SSTUF FROM TWSS INTO @DATA(ld_ass_level_item). | ||||
| DATA(ld_ass_level_item) | = ' '. | |||
| "SELECT single DATAB FROM WSOH INTO @DATA(ld_date). | ||||
| DATA(ld_date) | = SY-DATUM. | |||
| "SELECT single SKOPF FROM WSOH INTO @DATA(ld_module_select). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_item). | ||||
| "SELECT single LSTFL FROM TWLV INTO @DATA(ld_listing_method). | ||||
| "SELECT single SKOPF FROM WSOH INTO @DATA(ld_module). | ||||
| DATA(ld_module) | = ' '. | |||
| "SELECT single ASORT FROM WRS1 INTO @DATA(ld_shop). | ||||
| "SELECT single MATKL FROM MARA INTO @DATA(ld_merchandise_group). | ||||
| DATA(ld_merchandise_group) | = ' '. | |||
Search for further information about these or an SAP related objects