天天看點

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 布爾值

繼續閱讀