Purpose
This section explains how to define commodity rules, which are needed to create table detail-based commodity codes. With these rules you define the properties, structure, and layout of commodity codes.
Exercise
-
Open the S.10.01 Commodity Rules screen from the Smart Reference Data > S.10 Commodity Group and Parts menu branch.
-
Enter P_NRA_FITT in the Rule field in the first (Commodity Rules) block, or select it from the LOV using the List of Values button.
-
Click the Run Query button to display the selected rule with its details.
-
Click into the Tablename field on the Commodity Attributes tab.
-
Define the properties of a commodity code built with this rule, by selecting commodity attribute tables from the LOV using the List of Values button.
-
Click the Next Block button to open Window 2, where you can define the commodity keys.
-
Enter a number in the Digit Id field, starting with 1 for the first digit of the commodity code.
-
Click into the Tablename field and open the LOV using the List of Values button. The LOV shows the tablenames assigned to the rule on Window 1 plus the commodity groups and parts table. Select the appropriate value, starting with M_COMMODITY_GROUPS for the first digit.
The value defined in the Ins Char field will be used to create the commodity code when the related property value is not selected.
-
Click the Next Block button to open Window 3, where you can define the commodity layouts.
-
Use the LOV to select a value to fill in. The available text includes:
-
properties (commodity attributes)
-
attributes
-
particular values like commodity code, commodity group, part, and so forth.
These values are filled in the layout definition field with an ending _short or _long identifying the short description or description value of the corresponding table, and enclosed with # characters to indicate it as a variable.
Key in manually fixed text like ‘End Preparation:’
Use the CTRL+TAB keys to create tabulated text.
-
-
Close the screen by selecting File > Close All from the main menu.