在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:001PVERW: 1在表T411里发现1代表Production:PLNBEZ:待生产的物料主数据IDPLNAW: Application of the task listP的含义,在表TCA09里找到代表Routings for productionPLNTY:Task list type: N在表TCA01里代表routingPLNNR:Key for Task List Group50000023PLNAL: Group counterPDATV: valid from dateAUFLD: Date of BOM Explosion/Routing TransferAUFPL: Routing number of operations in the orderRSNUM: Number of reservation/dependent requirementsGAMNG: Total Order Quantity 要生产的产品个数GMEIN: 生产的产品的单位TERKZ: 2 - scheduling type2在表T482里的类型是backwards schedulingAUART: 生产订单类型 PP04AUTYP:生产订单category:10 PP Production OrderBUKRS: company codeKAPPL:application code KA条件技术表里KA代表OrdersKALSM:PP-PC1 costing sheetZAEHL和MZAEHL都是内部计数器KLVARP:Costing Variant for Planned CostsKLVARI:Costing Variant For Actual CostsSFCPF:Production Scheduling Profile 这个SIA是我自己配的。AVOUEB:布尔值,Indicator: Display operation overviewFLG_TERM: 布尔值,Indicator: Scheduling must take data changes into accountTYPKZ: 1 Category of object causing the load (order category)代表Work orders (detailed scheduling / routing…)AUKBED:Indicator: Calculate capacity requirements 布尔值要获取更多Jerry的原创文章,请关注公众号"汪子熙":