FIFO Layers
How do I get a list of the open layers for a FIFO item in the order that they will be depleted from inventory?
Thx Richard
Hi,
You can check the following query and customise according to your requirement :
SELECT T0.[TransNum], T0.[TransType], T0.[BASE_REF], T0.[ItemCode], T0.[InQty], T0.[OutQty], T0.[Price], T0.[Currency], T0.[OpenQty], T0.[Instance], T0.[LastInst], T0.[TransValue], T0.[CalcPrice] FROM OINM T0 WHERE T0.[ItemCode] =[%1]
Kind regards,
Jitin
SAP Business One Forum Team
Similar Messages
-
Hello all,
What is the proper procedure to process a return from a customer to ensure that FIFO layers are correct?
2005A SP01 PL31
Thanks in advance,
PhyllisThe FIFO layers are corrupted in our database and we are waiting to get SAP to fix them. In the meantime I have noticed the following:
If I do a return of a product at the Sales Price (1395.00 in this case) it puts that in my fifo cost layer.
If I do a return from a customer at the u201CCostu201D base (1210.00 in this case) it will not allow me to go higher on the Credit Memo.
If I do a return at the cost (1210.00) and close it, I get the cost into my FIFO layer. However, if I try to go back and do a Credit Memo in absence of the Return it adds the item to the FIFO layer and Stock Counts again. -
Possible to determine which FIFO layers used on an Invoice
Hi,
Is it possible to determine which FIFO layers were used when satisfying an invoice?
Thanks
GreigThe information regarding the FIFO cost price exists in the OINM
(Warehouse Journal) table under the fields Calculated Price and
Open Quantity.
check this if it helps :
SELECT T0.ItemCode FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode WHERE T0.CalcPrice = '0' and T1.EvalSystem ='F'
Regards, -
DTW - importing beginning FIFO layers.
Does anyone know how to import beginning FIFO layers in B1? I don't see the functionality in the Initial Quantity Screen or the Goods Receipt screen. Thanks for your help.
Hi Gordon - we need to bring the current FIFO layers from our client's legacy system into SAP to get the correct inventory valuation, and ultimately the correct COGS when the inventory is sold. The only way I can think of doing this right now is by creating a multiple Goods Receipts for each item. There would be a seperate Goods Receipt for each FIFO layer for that part - each layer would have a different quantity and cost. I was hoping there was something a little less complicated.
-
Hi everybody. Is it possibole to link batch numbers to pecific fifo layers?
ThanksDear Germán Gorosito,
By my understanding it is no possible to link batch numbers to pecific fifo layers.
Best Regards
Jane Jing
SAP Business One Forums team -
Review FIFO layers for an Item
In 2007, you can see the open fifo layers and their item costs in the stock revaluation screen.
However is it possible to review the previous fifo layers and their item costs for an item.Check the table OINM. There you can find all the inventory movements.
Regards,
Bharath S -
Anyone know which table(s) holds my FIFO layer costs? I had many items populate SAP via a wms cycle count upload and I need to make sure they all have a cost assigned.
Thanks Gordon. The OINM seems to hold costs associated with any transactions at the time the transaction was conducted. But since then I have processed numerous cost revaluations. So I need to find the table that will show me any FIFO layers for an item that have cost of only $1. $1 is the cost our wms assigned to items if no cost exists in SAP.
-
FIFO layers detail requirement
Hi Team,
I am facing problem for the development of costing of the fininshed
goods whihc we are manfucturing in warehouse through production module .
For my result purpose i need to know the detail of raw material whihc
actually consumed and from whihc layers based on the FIFO concept.
i am reffering to oinm table (warehouse journal) in whihc all the
detial of the material flow is present but information related to
layers from whihc the items are consumed actually ,
this information is missing in oinm due to whihc my link
development is not proper and i am
facing problem to track the actual consumption FIFO wise.
so kindly provide me the infromation how to get the data of layers
for eg. the layer information should be like
GRPO 20(doc No OF GRPO) and 3(line no of GRPO 20)
so that technical developer can easily identify the layer of the rawmaterial from oinm table for the consumed item.
i am at live stage and customer requiremeent is
suffering very much due to this missing information in oinm system
table.
amitHi Amit
The system uses a "Lot" to control the FIFO layers, although this is not physically represented by a separate table or structure. In the OINM table you will find a field called OpenQty which will indicate which FIFO layers (or costs) have not yet been consumed or sold either partially or in full. SAP Business One checks for OpenQty by date and consumes from the oldest "Lot" first. Writing a query or getting the "Lot" information could be tricky but I would suggest using the DocDate & DocTime with the OpenQty to determine what is still available and what production would consume.
Kind regards
Peter Juby -
Query for a list of FIFO layers with quantity and FIFO cost
Hi,
Is there a report/ query where I could get something as follows:
ItemCode1 - Open FIFO Layer1 - Quantity 1 - Open FIFO Layer1 Cost - Open FIFO Layer1 Inventory Value
ItemCode1 - Open FIFO Layer2 - Quantity 2 - Open FIFO Layer2 Cost - Open FIFO Layer2 Inventory Value
ItemCode1 - Open FIFO Layer3 - Quantity 3 - Open FIFO Layer3 Cost - Open FIFO Layer3 Inventory Value
The total quantity and the total value of this would match the total quantity and total value of the Inventory Audit Report.
I know OINM table has all detailed transactions, but I find it difficult to get what I want from OINM.
Thanks,
Ajay AudichHi Ajay.....
Please do refer Inventory Valuation Simulation Report for FIFO Method. It gives you the details as you required........
Regards,
Rahul -
FIFO - Goods Issue to Purchase relation
Hello Experts,
My client maintains the Inventory in FIFO model.
They wants to know the corresponding purchase (GR PO/Invoice) of the Item issued (delivery/transfer) from a wharehouse. From whare I can generate this info? If any one is having a query to generate this info please share
Thanks and regards
Ajith GHi,
Check below link tooo
Query for a list of FIFO layers with quantity and FIFO cost
Thanks
Deepak Tyagi -
Material revalution for Multiple FIFO Items in 8.8
Hi Experts,
Good Morning.
I have tried to create the Mateiral revaliation Document for FIFO Items in SAP business one 8.8 with the following example and it's working fine for one item row.
If i used the more than one Item details, then i am gettting "Internal Error (-5002) arrise.
I will appriciate if any one give me some solutions for this please.
Dim invitemcode, invwhscode As String
Dim m_MaterialRev As SAPbobsCOM.MaterialRevaluation
Dim m_MaterialRevLines As SAPbobsCOM.MaterialRevaluation_lines
Dim m_FIFOLayers As SAPbobsCOM.FIFOLayers
Dim m_MRVFIFOService As SAPbobsCOM.MaterialRevaluationFIFOService
Dim m_MRVFIFOParam As SAPbobsCOM.MaterialRevaluationFIFOParams
Dim m_MRVFIFO As SAPbobsCOM.MaterialRevaluationFIFO
invdocEntry = CInt(aDocEntry)
oTemprs1 = oApplication.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oTemprs1.DoQuery("select itemcode,whscode,quantity from WTR1 where docentry ='" & invdocEntry & "' ")
Try
Dim j As Integer
m_MaterialRev = oApplication.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMaterialRevaluation)
m_MaterialRev.RevalType = "M"
m_MaterialRev.DocDate = Now
Dim intcount As Integer = 0
Dim m_companyService As SAPbobsCOM.CompanyService
' Get Material Revaluation FIFO Service
m_MaterialRevLines = m_MaterialRev.Lines
For j = 0 To oTemprs1.RecordCount - 1
invitemcode = oTemprs1.Fields.Item(0).Value.ToString
invwhscode = oTemprs1.Fields.Item(1).Value.ToString
If j > 0 Then
m_MaterialRevLines.Add()
m_MaterialRevLines.SetCurrentLine(j)
End If
m_MaterialRevLines.ItemCode = invitemcode
m_MaterialRevLines.RevaluationDecrementAccount = "_SYS00000000094"
m_MaterialRevLines.RevaluationIncrementAccount = "_SYS00000000094"
m_MaterialRevLines.WarehouseCode = invwhscode
m_FIFOLayers = m_MaterialRevLines.FIFOLayers
' Get Company Service
m_companyService = oApplication.Company.GetCompanyService()
m_MRVFIFOService = oApplication.Company.GetCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.MaterialRevaluationFIFOService)
' Create Material Revaluation FIFO Service parameters
m_MRVFIFOParam = m_MRVFIFOService.GetDataInterface(SAPbobsCOM.MaterialRevaluationFIFOServiceDataInterfaces.mrfifosMaterialRevaluationFIFOParams)
m_MRVFIFOParam.ItemCode = invitemcode
m_MRVFIFOParam.LocationCode = invwhscode
m_MRVFIFOParam.LocationType = "64"
m_MRVFIFOParam.ShowIssuedLayers = SAPbobsCOM.BoYesNoEnum.tNO
' Process FIFO layers
m_MRVFIFO = m_MRVFIFOService.GetMaterialRevaluationFIFO(m_MRVFIFOParam)
Dim LayerNum As Integer = m_MRVFIFO.Layers.Count
intcount = 0
For i As Integer = 0 To LayerNum - 1
If m_MRVFIFO.Layers.Item(i).DocType = SAPbobsCOM.TransTypesEnum.ttTransferBetweenWarehouses And m_MRVFIFO.Layers.Item(i).OpenQty > 0 Then
If intcount > 0 Then
m_FIFOLayers.Add()
End If
m_FIFOLayers.SetCurrentLine(intcount)
m_FIFOLayers.LayerID = m_MRVFIFO.Layers.Item(i).LayerID
m_FIFOLayers.TransactionSequenceNum = m_MRVFIFO.Layers.Item(i).TransactionSequenceNum
m_FIFOLayers.LineTotal = 104
intcount = intcount + 1
End If
Next
oTemprs1.MoveNext()
Next
If m_MaterialRev.Add() <> 0 Then
MsgBox(oApplication.Company.GetLastErrorDescription)
Else
Dim stcode As String
oApplication.Company.GetNewObjectCode(stcode)
MsgBox(stcode)
End If
Catch ex As Exception
oApplication.Utilities.Message("itemcode" + ex.Message, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
End TryVersion: 881 PL04
I am gettting "
[MRV2.LineNum][line: 4] ,
'[Microsoft][SQL Server Native Client 10.0]
Invalid character value for cast specification'
" arrise.
Please let me know, because I'm starting to think that this is a bug in the SDK? -
FIFO price -- OINM.Calcprice is not always correct
Hi All,
I know the topic of getting FIFO cost layer has been posted here many times. And until today I've been using a query to get OINM.CalcPrice as the fifo cost for a certain item and warehouse. It is somewhat like:
SELECT calcprice FROM OINM
WHERE
itemcode = 'XX' and openqty > 0 and warehouse = 'XX'
order by transnum
However, I just found out that in our company there are quite a few OINM records where the calcprice values are incorrect. I know they are wrong because they are extremely low, say $0.0001, and also when compared with SB1's Inventory Revaluation - FIFO Layers, they are not even close.
Instead, if I use OINM.openvalue / OINM.openqty, I get all my query results match with the Inventory Revaluation screens.
Did anyone here ever experience or notice this issue ?
Please give your thoughts. Thanks!
SamThanks Neetus.
If I understand your query correctly, you're using oinm.calcprice as the "buy price" or "fifo cost" in this case.
My observations is: calcprice can have wrong values.
Thanks again.
Sam -
Hi Everyone,
I have a customer who is requesting a query that would pull the sales price and item cost from the A/R Invoice table. They would like a list of all items sold by customer that would show the quantity ordered, unit cost and unit price. However, it's a bit complicated by the fact that they use FIFO valuation method.
Does anybody know where I might be able to pull the different FIFO layers from? I haven't been able to find a lot of documentation in regards to the FIFO valuation and I haven't been able to find many standard reports in SAP to track FIFO.
If anybody can shed some light, I'd appreciate it.
Thanks,
AmandaHi Gordon,
Thank you for responding. I contacted SAP and I was actually making it more difficult than it needed to be. If you look at the Item Cost on the row level for the invoice, it will show you the cost in the FIFO layer it used at the time. I was able to pull that field into the query and it worked.
I appreciate your help and thank you again for responding!
Amanda -
Information about Item Instock FIFO layer
Dear Expert ,
We are maintaining the system in FIFO costing method.
And i want to re-valuate the Price through Template.
From where i get the information to put the data in the template of FIFO layer - MRV2
Thanks
Ashish RanjanHi Ashish,
Check below link to get the Open FIFO layers for item on Sales and purchase documents:
http://wiki.sdn.sap.com/wiki/display/B1/SAPB1D-SLSalesandPurchaseFIFOPriceforNon-BatchItems
http://wiki.sdn.sap.com/wiki/display/B1/SAPB1D-SLSalesandBuyFIFOPriceforBatchmanaged+Items
You can use this as base to create new query to get details if required.
Thanks,
Neetu -
Dear All,
hopefully someone can kindly help on this.
The item cost is missed
in Inventory, for itemA there is still InStock 4, but the item cost is missed (not showing).
And i cannot find the Base Price in the GP report, but Inventory Posting List has the purchase price.
itemA still have the item cost in few days ago, but after today i use Credit Memo for returning itemA and enter the item cost manually, then i found out this problem. there is also itemB, but itemB has no problem.
million thanks about thisHi Tac,
you may have a look at this thread :
https://forums.sdn.sap.com/click.jspa?searchID=20603446&messageID=6532368
especially at the posting of Jeyakanthan:
Customer Cannot Issue Item From Warehouse
Item Cost = 0 and Allow Stock Release without Item Cost is disabled
Symptoms
Error message on adding outgoing inventory document:
"Cannot issue item from WH which is managed by batches or serial numbers".
Customer cannot issue an item from warehouse (with some transaction decreasing on-hand quantity). When issuing item, customer cannot select an item batch or serial no. although it exists and has enough available quantity.
Resolution
Check setup options in SAP Business One:
If in Company Details > Allow Stock Release Without Item Cost is selected.
What the valuation method is in Item Master Data > Inventory Data Tab.
Check Item Cost:
For moving average price (MAP) and standard price, please check Item Cost in Item Master Data > Inventory Data Tab. If customer selected option: "Manage Item Cost per Warehouse" in Company Details, check the Item Cost for relevant warehouse in the tab row.
For FIFO item, please check the Item Cost of open FIFO layers. In version 2004 C and 2007 A, Item Cost can be seen for remaining Open Quantity of FIFO layers in Inventory Revaluation window after selecting relevant item and warehouse.
For all versions, please run following SQL query:
SELECT T0.[ItemCode], T0.[Warehouse], T0.[OpenQty], T0.[OpenValue], T0.[OpenValue]/ T0.[OpenQty] as ItemCost FROM OINM T0 WHERE T0.[ItemCode] =[%0]
If the ItemCost is zero and Allow Stock Release Without Item Cost is not selected, Customer needs to change Item Cost to a non-zero value.
regards
Maybe you are looking for
-
Splitting up multiple users from one account
For awhile now, my family members and used a single apple id for our devices. I'd now like for everyone to have their own id. How do I make that switch, and will it cause any problems for updating their apps?
-
Best practice for securing confidential legal documents in DMS?
We have a requirement to store confidential legal documents in DMS and are looking at options to secure access to those documents. We are curious to know. What is the best practice? And how are other companies doing it? TIA, Margie Perrigo Co.
-
How to set non-standard SFTP Port
I'm using Contribute 3.0, and there doesn't seem to be a way to set the port number when using SFTP. Every other program that I've used to connect to our SFTP server lets me change the port from the standard 22 to the arbitrary number our IT guys hav
-
Will Apple replace my ipad2 for the second time
My first ipad2 had a white spot on the screen and i took it to the center and the technician replaced it. It took bout two weeks for me to get the replacement ipad. Just now i found that my replacement ipad is a refurbish ipad, not a brand new as wh
-
I updated to 10.10.3 today on my Macbook Pro. Now my photos will not open. My App store will not open. And my spotlight search icon in the menu bar is missing. Is anyone else having these problems?