SAP Dependency Syntax 相关性语法

本文深入探讨了SAPVC变式OD语法中VariantConfiguration的使用,包括操作符如AND、OR、NOT,内置条件如SPECIFIED、IN、TYPE_OF等的详细解释。此外,还介绍了列表、大小写转换、字符串拼接等特性。

SAP VC 变式  OD  语法  Variant Configuration

SAP Help Portal

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

See Built-In Condition SPECIFIED

IN

One of these values must be set:

COLOR IN (‘red’, ‘green’, ‘blue’)

See Built-In Condition IN

TYPE_OF

Only for certain objects:

TYPE_OF ($ROOT, (Material) (300) (NR = 'U91’))

See Built-In Condition TYPE_OF

PART_OF

The object is a component of a BOM

(only in constraints).

See Constraints: Entering Conditions

SUBPART_OF

The object is a component of an assembly that is part of the BOM of a configurable material

(only in constraints).

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

刘欣的博客

你将成为第一个打赏博主的人!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值