Fonction SAP ASSORTMENT_VERSION_P - Check for adherence to listing rules - prof. procedure (astmt grade/MatGp)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ASS_LEVEL_ITEM WSOP-SSTUF C 2 SPACE X Assortment grade, material
ASS_LEVEL_SHOP WSOP-SSTUF C 2 SPACE X Assortment grade, assortment (optional)
DATE SYST-DATUM D 8 SPACE X Access date (time)
ITEM MARA-MATNR C 18 SPACE X
LISTING_METHOD TWLV-LSTFL C 2 SPACE X Listing procedure
MERCHANDISE_GROUP MARA-MATKL C 9 SPACE X Material group
SHOP KNA1-KUNNR C 10 SPACE X Assortment

Paramètre Reférence Type Long. Description
WSCOR WSCOR u 124 Error information, assortments

Exception Description
ASS_LEVEL_NOT_MATCHING Assortment grade is unsuitable
M_GROUP_NOT_EXISTS_IN_SHOP According to assortment master, material group does not exist

Functionality
The assortment grade (given for each VTWEG and therefore defined foreach store) is checked for each (possible) store in table WRF6 (storematerial group master) to see whether it is permitted. Table TWLWR ("C= A + B + C") is used for this.
Caution:
In future, table WRF6 will be cycle-controlled. Then, the forecast forseveral situations will not be necessary.
This becomes complicated: taking account of horizons that may be splitfrequently for interpretation of the listing window.
Example:
Store0001 Mat.gr 0815 1.1.-30.4. : Asst. gradeB
1.5.-... : Asst. grade C
Material 1.2.-31.11. : Asst. grade C
--> several listing conditions are then possible!