題目這個加強的輸入參數很恐怖,長長的一串:3d
CALL BADI l_badi->BEFORE_UPDATE EXPORTING IT_PIINSTRUCTIONVALUE = IT_PIINSTRUCTIONVALUE IT_PIINSTRUCTION = IT_PIINSTRUCTION IT_PMPARTNER_OLD = IT_PMPARTNER_OLD IT_PMPARTNER = IT_PMPARTNER IT_PRT_ALLOCATION_OLD = IT_PRT_ALLOCATION_OLD IT_PRT_ALLOCATION = IT_PRT_ALLOCATION IT_DOCLINK_OLD = IT_DOCLINK_OLD IT_DOCLINK = IT_DOCLINK IT_OPR_RELATIONS_OLD = IT_OPR_RELATIONS_OLD IT_OPR_RELATIONS = IT_OPR_RELATIONS IT_STATUS_OLD = IT_STATUS_OLD IT_STATUS = IT_STATUS IT_PLANNED_ORDER = IT_PLANNED_ORDER IT_MILESTONE_OLD = IT_MILESTONE_OLD IT_MILESTONE = IT_MILESTONE IT_PSTEXT_OLD = IT_PSTEXT_OLD IT_PSTEXT = IT_PSTEXT IT_RELATIONSHIP_OLD = IT_RELATIONSHIP_OLD IT_RELATIONSHIP = IT_RELATIONSHIP IT_COMPONENT_OLD = IT_COMPONENT_OLD IT_COMPONENT = IT_COMPONENT IT_OPERATION_OLD_AFVU = IT_OPERATION_OLD_AFVU IT_OPERATION_OLD_AFVV = IT_OPERATION_OLD_AFVV IT_OPERATION_OLD_AFVC = IT_OPERATION_OLD_AFVC IT_OPERATION = IT_OPERATION IT_SEQUENCE_OLD = IT_SEQUENCE_OLD IT_SEQUENCE = IT_SEQUENCE IT_ITEM_OLD = IT_ITEM_OLD IT_ITEM = IT_ITEM IT_HEADER_OLD = IT_HEADER_OLD IT_HEADER = IT_HEADER.
好在絕大部份內表都是空的。咱們就一塊兒來看看非空列表裏包含的數據。code
狀態遷移。STAT是SAP系統狀態ID,component
其描述信息在表TJ02T裏能查到。好比I0001狀態的四位標識符是CRTD,意思是已建立-Createdblog
INACT欄爲X的狀態表明該Production Order當前已經從該狀態跳轉到了其餘狀態。 上圖的意思是該Production Order已經從狀態I0001已建立,進入了狀態I0002- Released已釋放。文檔
要理解Production Order component這個概念,咱們先看一個已經建立好的生產訂單。io
下圖component的意思是爲了生產REDUCER_A這個成品,咱們須要生產它的組件0010 COVER1, 0020 AXIS和0030 BASE。class
那麼REDUCER_A和其三個組件運行時的信息,就維護在內表IT_COMPONENT裏。bfc
同理,一個生產訂單能夠包含若干生產工序,好比下圖的Manual processing, Maching,Assembly和Testing,對應的系統狀態都是REL - Released。sed
這些工序信息維護在內表IT_OPERATION裏im
該生產訂單的前置文檔信息,即咱們說的文檔流 - document flow
待生產的成品明細,好比物料主數據ID,待生產數量,單位等。
很好理解,生產訂單擡頭信息:
要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":