Hi experts,
I did a research on ShopOrderCosts and crossed the FACT_SHOP_ORDER_MATERIAL_OL Definition.
In it the field ActualComponentCosts is delivered by a SubSelect.
It states:
CAST ( NVL((SELECT SUM(NVL(quantity - qty_reversed,0) * Inventory_Transaction_Cost_API.Get_Sum_Unit_Cost(mh.transaction_id, ''TRUE'', ''TRUE'')) FROM INVENTORY_TRANSACTION_HIST_TAB ith, MATERIAL_HISTORY_TAB mh WHERE mh.transaction_id = ith.transaction_id AND material_history_action = ''ISSUE'' AND mh.order_type = ''SHOP ORDER'' AND mh.order_ref1 = ma.order_no AND mh.order_ref2 = ma.release_no AND mh.order_ref3 = ma.sequence_no AND mh.order_ref4 = ma.line_item_no GROUP BY mh.order_ref1, mh.order_ref2, mh.order_ref3, mh.order_ref4) ,0) AS NUMBER)
Now I did a research in the IFS mask Inventory Transaction Hist.
I searched for TRANSACTION_IDs where the QTY_REVERSED <> 0.
When I look into the VIEW Definition of INVENTORY_TRANSACTION_HIST2 (System Info)
the field QTY_REVERSED is defined.
But I cannot find a seperate field in the IFS mask for QTY_REVERSED.
When I look into the debug-console I see:
,IFSAPP.Inventory_Transaction_Cost_API.Get_Sum_Unit_Cost(transaction_id,'TRUE','TRUE') *QUANTITY
but not the quantity - qty_reversed from the FACT IAL.
In the mask I will see costs even when QUANTITY - QTY_REVERSED equals 0.
I’m a little bit confused about that and really appreciate any tips, help or clarification.
Thanks a lot
BR
Michael