Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: Item Cost not present in Item master data in warehouses

$
0
0

Hi,

Please Refer SAP Note: 1295350


In SAP Business One once the items are created their stock can be updated via a Goods Receipt PO or an AP Invoice not based on Goods Receipt PO, a Goods Receipt from inventory or a stock take or stock posting. If any of these documents are posted without an item price, the stock of this item will be created without a cost price.

Cause
Consulting
Solution
An item without item cost cannot be released from the stock when the check box 'Allow Stock Release without Item Cost' (Administration ->
System Initialization -> Company Details -> Basic Initialisation tab) is checked.

In order to find the items without cost please run the following query (also attached):

/* The first query calls the item from OITM where they are not managed by warehouse as there will be one cost price for all warehouses. It also checks that there is stock for this item*/
SELECT
distinct T0.[ItemCode],
T0.[DfltWH], /*Default warehouse*/
T0.[AvgPrice], /*cost price*/
T0.[OnHand] /*Quantity in Stock*/
FROM
OITM T0
WHERE
(T0.[AvgPrice]is Null or
T0.[AvgPrice] = '0') and /*select all items without a cost price*/
T0.[OnHand]>=0 and /* Select all the items with a stock greater than 0*/
T0.ByWH ='N' and /*Select all the items which are not managed by warehouse*/
T0.EvalSystem <> 'F'

Union ALL/*join the two queries refer to MSSQL online help*/

/* When the item is managed by warehouse, each warehouse has it's own cost price. The second query will call all those items managed by warehouse and check the stock of those items*/
SELECT
distinct T0.[ItemCode],
T0.[WhsCode], /*Will specify the exact warehouse where there is no item cost*/
T0.[AvgPrice],/* cost price*/
T0.[OnHand] /*Quantity in Stock*/
FROM
OITW T0
inner Join
OITM T1 on
/*The information regarding the management of the item by warehouse is only available on OITM.The two tables need to be joined.*/
T0.ItemCode = T1.ItemCode
WHERE (
T0.[AvgPrice]is Null or T0.[AvgPrice] = '0') and /*select all items without a cost price*/
T0.[OnHand]>=0 and /* Select all the items with a stock greater or equal to 0*/
T1.ByWH = 'y' and /*Select all the items which are managed by warehouse*/
T1.EvalSystem <> 'F'

Union ALL

/* This query will help to find the item valuated by FIFO. The FIFO cost prices are not stored in OITM or OITW.*/
SELECT
distinct T0.[ItemCode],
T0.Warehouse, /*Will specify the exact warehouse where there is no item cost*/
T0.calcprice,/* cost price*/
T1.[OnHand]

/*Quantity in Stock- this is not the quantity per layer. OINM will need to be queried to find the amount of layers and the quantity per layer*/
FROM
OINM T0
inner Join
OITM T1 on

/*The information regarding the valuation method is available on OITM. The two tables need to be joined.*/
T0.ItemCode=T1.ItemCode
inner Join
OITW T2 on
T0.Warehouse = T2.WhsCode and
T0.ItemCode=T2.itemCode and
T1.itemCode= T2.Itemcode
WHERE
(T0.CalcPrice is Null or T0.CalcPrice = '0') and /*select all items without a cost price*/
T1.[OnHand]>=0 and /* Select all the items with a stock greater or equal to 0*/
T1.EvalSystem = 'F' /* will only call the items valuated by FIFO*/

/*To identify which layers and which documents are affected for the FIFO items the following query can be used. */
SELECT
T22.Transnum, /* identify the transaction*/
T22.Transtype, /* Identify the document type eg Goods Receipt PO*/
T22.createdby,/* Journal Entry reference*/
T22.Base_ref, /* Document Number*/
T22.Itemcode,
T22.Inqty,
T22.OutQty,
T22.price,
T22.Calcprice,/* Cost price*/
T22.openQty
FROM
OINM T22
WHERE
T22.itemcode in ('XX', 'XXX') and /* List of affected FIFO items*/
T22.inqty <> T22.openQty and
(T22.CalcPrice is Null or T22.CalcPrice = '0')

If the query should return results, please contact your accountant in order to decide of the cost of the item and then reavalute them.
Stock Management -> Stock transaction ->Stock Revaluation.



Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>