Sap me 15.3工单计划

工单附加字段

Sap me 15.3工单计划_第1张图片

--查询工单 附加字段

select CUSTOM_FIELD_DEF.*,

COALESCE((SELECT FIELD_LABEL

FROM CUSTOM_FIELD_DEF_T TABLE_T

WHERE CUSTOM_FIELD_DEF.HANDLE =

TABLE_T.CUSTOM_FIELD_DEF_BO

AND TABLE_T.LOCALE = 'zh'),

(SELECT FIELD_LABEL

FROM CUSTOM_FIELD_DEF_T TABLE_T

WHERE CUSTOM_FIELD_DEF.HANDLE = TABLE_T.CUSTOM_FIELD_DEF_BO

AND TABLE_T.LOCALE = 'en'),

(SELECT FIELD_LABEL

FROM CUSTOM_FIELD_DEF_T TABLE_T

WHERE CUSTOM_FIELD_DEF.HANDLE = TABLE_T.CUSTOM_FIELD_DEF_BO

AND ROWNUM = 1)) AS FIELD_LABEL

from CUSTOM_FIELD_DEF

where SITE = '1130'

and TABLE_NAME = 'SHOP_ORDER'

Sap me 15.3工单计划_第2张图片

Sap me 15.3工单计划_第3张图片

--工单所有自定义字段值

SELECT x.*, x.ROWID

FROM WIPDBA.CUSTOM_FIELDS x

WHERE x.HANDLE = 'ShopOrderBO:1220,191201239520'

Sap me 15.3工单计划_第4张图片

你可能感兴趣的:(Sap me 15.3工单计划)