[PP] 判斷不同BOM修改, 將BOM核發狀態改為unrelease
BAdI: BOM_UPDATE Method: CHANGE_AT_SAVE [CODE] METHOD IF_EX_BOM_UPDATE~CHANGE_AT_SAVE. CHECK SY-TCODE EQ 'CS02'. DATA: WA_STPO TYPE STPO, L_MATNR TYPE MAST-MATNR, L_WERKS TYPE MAST-WERKS, L_STLNR TYPE MAST-STLNR, L_STLAL TYPE MAST-STLAL, TB_STPO TYPE STANDARD TABLE OF STPO, L_RELEASE(1) TYPE C, WA_STKO TYPE STKO, WA_MAST TYPE MAST, WA_STPO2 TYPE STPO. CLEAR L_RELEASE. LOOP AT DELTA_MASTB INTO WA_MAST. MOVE: WA_MAST-MATNR TO L_MATNR. MOVE: WA_MAST-WERKS TO L_WERKS. ...