• SAP S/4HANA生产订单的BAdI增强点之Initialize方法


    在S/4HANA里创建生产订单时,有一个增强点WORKORDER_UPDATE:

    这个CAUFVDB里存放的是生产订单抬头级别的数据:

    我们来观察下运行时这个结构里存放的数据。

    请大家用我github上这个简单的报表创建一个生产订单:

    https://github.com/i042416/KnowlegeRepository/blob/master/ABAP/SmallApp/209_create_S4_SalesOrder.abap

    断点触发后,结构体CAUFVDB里的字段,我们一个一个分析:

    AUFNR: 这个字段代表生产订单的ID,因此此时还没有保存,所以是临时ID。

    WERKS 工厂ID plant ID,2800。

    DISPO MRP controller for the order:001

    PVERW: 1

    在表T411里发现1代表Production:

    PLNBEZ:待生产的物料主数据ID

    PLNAW: Application of the task list

    P的含义,在表TCA09里找到代表Routings for production

    PLNTY:Task list type: N

    在表TCA01里代表routing

    PLNNR:Key for Task List Group

    50000023

    PLNAL: Group counter

    PDATV: valid from date

    AUFLD: Date of BOM Explosion/Routing Transfer

    AUFPL: Routing number of operations in the order

    RSNUM: Number of reservation/dependent requirements

    GAMNG: Total Order Quantity 要生产的产品个数

    GMEIN: 生产的产品的单位

    TERKZ: 2 - scheduling type

    2在表T482里的类型是backwards scheduling

    AUART: 生产订单类型 PP04

    AUTYP:生产订单category:10 PP Production Order

    BUKRS: company code

    KAPPL:application code KA

    条件技术表里KA代表Orders

    KALSM:PP-PC1 costing sheet

    ZAEHL和MZAEHL都是内部计数器

    KLVARP:Costing Variant for Planned Costs

    KLVARI:Costing Variant For Actual Costs

    SFCPF:Production Scheduling Profile 这个SIA是我自己配的。

    AVOUEB:布尔值,Indicator: Display operation overview

    FLG_TERM: 布尔值,Indicator: Scheduling must take data changes into account

    TYPKZ: 1 Category of object causing the load (order category)

    代表Work orders (detailed scheduling / routing...)

    AUKBED:Indicator: Calculate capacity requirements 布尔值

    要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  • 相关阅读:
    Linux常用几种shell
    opencv中snake的调用方法示例
    GIT 常用命令手册
    偏最小二乘法回归(Partial Least Squares Regression)
    镜头的参数指标
    Git详解Git分支
    tab选项卡,不带自动切换定时器
    setTimeout和setInterval
    tab选项卡,带自动播放
    动态添加,删除class样式
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/10350540.html
Copyright © 2020-2023  润新知