SAP-怎么查一个工艺路线抬头特性值用在了哪个工艺路线里

起因

在DEV里写了个报表,用生产订单关联工艺路线,关联特性值的时候发现特性值维护的和PRD里不一样,PRD里,这个特性值在“值”标签里定义了选项,而DEV里却没有,于是乎就想把它补过来。然而保存存的时候报错了,如图。

经过

猜测报错的原因是可能有的工艺路线里定义了该特性值,且已维护的特性值不在我录入的范围内。于是乎萌生检查到底是哪个工艺路线维护了该特性值的想法。

结果

写了以下的SQL,查询结果中根据OBJEK能够轻易的判断出所属的工艺路线了。

select    cabn.atinn,    cabn.atnam,    cabn.atfor,    cabn.anzst, cabn.anzdz, cabn.atkla,
        inob.objek, inob.klart, inob.obtab,    inob.objek,    
        ausp.atwrt,    cawnt.atwtb
from    cabn
        inner join    
        ausp
        on    cabn.mandt = ausp.mandt    and
            ausp.mafid = 'O'        and
            ausp.klart = '018'        and
            cabn.atinn = ausp.atinn
        inner join
        inob
        on    inob.OBTAB = 'PLKO'    AND
            inob.KLART = ausp.klart    and
            inob.mandt = ausp.mandt    and
            inob.cuobj = ausp.OBJEK
        left outer join
        cawn
        on    cawn.mandt = cabn.mandt    and
            cawn.atinn = cabn.atinn    and
            cawn.atwrt = ausp.atwrt
        left outer join
        CAWNT
        on    cawnt.mandt = cabn.mandt    and
            cawnt.atinn = cawn.atinn    and
            cawnt.spras = '1'            and
            cawnt.ATZHL = cawn.ATZHL    and
            cawnt.ADZHL = cawn.ADZHL
where    cabn.atnam = 'ZPP_RTG_LX'    and
        cabn.mandt = '600'

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

rarenmen

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值