1. FS for ZGI_Variance
AS IS: GI_Variance SAPQUERY
TO BE: GI_Variance
Newreport whichisfeasible to fetchthe Balance Quantity&Balance Value asper Goodsissuedagainst
production order.
Selection screen
Only open orders – Indicator checked
Order_ AUFNR fromTable AUFK
OrderType _AUART fromTable AUFK
Material Number _MATNR fromTable AUFK
Component _MATNR fromTable RESB
Actual release _FTRMI fromTable AFKO
Output fields as shown below
Order - AUFNR fromTable AUFK .
Material - Pass AUFNR inTable AFPOto fetch MATNR_AFPO.
Order Material
Parent
Description
Order
Qty OUM
ChildItemin
Master
Bom
Qty BUn
Issued
Qty BUn
issued
stk no
Diff (issue -
Master. Qty)
Diff value (issue -
Master. Qty)
Material
Group
2. FS for ZGI_Variance
Parent Description- Pass MATNR inTable MAKT to fetch MAKTX_MAKT.
Material Group - Pass MATNR in Table MARA to fetch MATKL_ MARA.
Order Qty - Pass AUFNR inTable AFPO to fetch PSMNG_AFPO(Requiredquantity).
OUM - Pass AUFNR inTable AFPO to fetchAMEIN_AFPO.
ChildItem inMaster - Pass AUFNR inTable RESB to fetchMATNR_RESB (ChildIteminMaster- BOM
Components).
(Master.Qty) Bom Qty - Pass AUFNR in Table RESB to fetch (QuantityinUnE ) ERFMG _RESB.
Bun - Pass AUFNR in Table RESB to fetch (Unit of Entry) ERFME _RESB.
IssuedQty - Pass AUFNR in Table RESB to fetch (Withdrawal Qty) ENMNG_RESB (if MovementType =
261 only).
Bun - PassAUFNR in Table RESB tofetch MEINS_RESB (if MovementType = 261 only).
Issuedstk no - Pass AUFNR & BWART (MovementType 261) in Table AUFM to fetchMATNR_ AUFM.
Diff Qty (issue - Master. Qty) - (ENMNG_RESB (MovementType 261)) - (MENGE_STPO).
Diff value (issue - Master. Qty ) - if the (ValuationType )BWTAR = INH thenit will fetch (Standard
price ) STPRS_MBEW otherwise if the (ValuationType )BWTAR # INH thenit will fetch (MovingAvg
price) VERPR, Passthe MATNR in Table MBEW to fetchthe valuation STPRS_MBEW or VERPR_MBEW
whichwouldbe multipliedwiththe Diff (issu - Master.Qty) to provide the total value.
-----X-----