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

30次阅读

共计 1337 个字符,预计需要花费 4 分钟才能阅读完成。

在 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 的原创文章,请关注公众号 ” 汪子熙 ”:

正文完
 0