Monday, September 23, 2013

SAP Enhancement of backflush .

用途:对指定的MRP Controller的物料,在反冲时,不应用报废率,而只使用标准的数量去反冲消耗。
Class :ZCL_IM_CL_PP_CONF_GMVT
Methoed IF_EX_WORKORDER_GOODSMVT~BACKFLUSH
code:

method IF_EX_WORKORDER_GOODSMVT~BACKFLUSH.
  data:zMSEG type IMSEG,
       zausch type DECIMALS 4,
       zdispo type dispo.

  TYPES:
    BEGIN OF LTY_STPO,
      AUSCH TYPE STPO-AUSCH,
      DATUV TYPE STPO-DATUV,
    END OF LTY_STPO.
  DATA:
        LT_STPO TYPE STANDARD TABLE OF LTY_STPO,
        LS_STPO TYPE LTY_STPO.

* call :1244666 disable the scrap rate for confiramtion for plant 8900
  "I_ORDER_HEADER-stlnr.AUSCH scrap
  if I_ORDER_HEADER-WERKS '8900'.
    loop at CT_COMPONENTS into zmseg.
      SELECT SINGLE dispo into zdispo from marc where matnr zmseg-MATNR and dispo in ('713','714','715','T04','T06','T08','T11','T22').
      if zdispo is NOT INITIAL.
       SELECT SINGLE AUSCH INTO zausch FROM RESB WHERE RSNUM zmseg-RSNUM AND MATNR zmseg-MATNR.
         zausch +  zausch / 100.
        zmseg-erfmg zmseg-erfmg / zausch .
        clear:zausch.
        MODIFY CT_COMPONENTS from zmseg TRANSPORTING erfmg.
        endif.
        clear:zdispo.

      endloop.
    endif.
endmethod.

CO13取消确认时物料未被撤回

检查COGI。
可能是因为数据被某人锁定,使得过账不能进行,而后进入了COGI。

Yield Of Operation for Next Operation

Yield Of Operation for Next Operation
Original URL:http://www.erpgreat.com/production/yield-of-operation-for-next-operation.htm

How to set yield of operation as Operation qty for next Operation?

 
We are experiencing the following problem:
 
In our Production Orders we have a number of Operations and if we release an Operation, WM automatically creates a Transfer Order (WM Material Staging) to provide the shop floor with the necessary materials/components required to execute that Operation.
Now the first Operation can be for say 100 EA.
 
In the Production Order confirmation, there is always some amount of scrap in our case, so the first Operation could be confirmed as having 80 EA of Yield and 20 EA of Scrap (we do not have/work with Rework).
 
Now we want the quantity to produce AND the WM Material Staging quantity for the next/second Operation to be for the Yield quantity of the previous Operation, in this case 80 EA.
 
However, SAP does not adjust the Operation quantity of the second Operation ( CO03 -> Operation overview/F5 -> double click on second Operation -> tab Qties/Activities -> field Operation Qty – AFVGD-MGVRG ) to the Yield quantity confirmed in the first Operation ( CO03 -> Operation overview/F5 -> double click on first Operation -> tab Qties/Activities -> field Confirmed Yield – AFVGD-LMNGA) and consequently too much components (20 EA) are provided with the WM Material Staging for the second Operation.
 
How can we configure SAP to set the Yield of the previous Operation as the Operation quantity for the next Operation? I tried OPK4 but could not find a parameter with which we can control this.
 
Might it be we need a user exit for this (for instance CONFPP01/EXIT_SAPLCORF_101)?
 
Solution:
 
Do the following steps:
 
In the customizing of the Production Scheduling Profile (OPKP);
 
The indicator "Adjust Quantities in Order to Actual Values" (V_TCO43-FLG_QUAN_A) must be ticked.