SAP VC 变式 OD 语法 Variant Configuration
Operators
| Operators | Use in Dependencies |
| AND | Two statements that are both either true or not true are linked with AND. Length = 300 and Width = 200 |
| OR | Two statements of which at least one is either true or not true are linked with OR. Color = ‘red’ or Basic_material = ‘wood’ |
| NOT | You can negate one or more expressions by using NOT. NOT (Color = ‘blue’) NOT (Color = ‘red’ and Basic_material = ‘wood’) |
| IF | Conditions in actions and procedures start with IF. Color = 'red' if Model = ‘A’ |
Special Features
| Lists | In lists, the individual elements are always separated by commas. COLOR = 'RED' IF MODEL = 'A', COLOR = 'BLUE' IF MODEL = 'B', COLOR = 'GREEN' IF MODEL = 'C', |
| Case sensitivity | In characteristic names, object variables, and operators, there is no distinction between upper case and lower case letters. |
Concatenation
| LC | All letters are converted to lower case. Leather_saddle = LC('Alpha') = 'a' |
| UC | All letters are converted to upper case. Leather_saddle = U C('Alpha') = 'A' This function is important if the assigned characteristic does not allow lower case, but the assigned expression may contain lower-case letters. |
| || | The string is cut off at the maximum number of 30 characters. Leather_saddle = Alpha || Beta = 'AB' |
List of Built-In Conditions
| Expression | Implied Condition |
| SPECIFIED | Characteristic has a value: SPECIFIED COLOR |
| IN | One of these values must be set: COLOR IN (‘red’, ‘green’, ‘blue’) |
| TYPE_OF | Only for certain objects: TYPE_OF ($ROOT, (Material) (300) (NR = 'U91’)) |
| PART_OF | The object is a component of a BOM (only in constraints). |
| SUBPART_OF | The object is a component of an assembly that is part of the BOM of a configurable material (only in constraints). |
本文深入探讨了SAPVC变式OD语法中VariantConfiguration的使用,包括操作符如AND、OR、NOT,内置条件如SPECIFIED、IN、TYPE_OF等的详细解释。此外,还介绍了列表、大小写转换、字符串拼接等特性。
1572

被折叠的 条评论
为什么被折叠?



