Regarding batch details
Hello all,
Can any tell me which table store the data like manufacture, valid up to details for a batch.
Hi,
Check for field "LIFNR" for vendor or manufacturer in table MCHA or MCH1. And for manufacturing date, you will get field "HSDAT"
There is not any specific field for manufacturer in Batch Tables.
Similar Messages
-
How can I import the Batch details after a Good Receive PO is posted?
Hi,
My situation is, I will receive the exp.date after I have posted the Good Receive PO, can I import the batch details using the DTW after the Good receive PO is posted?
Please help.
PaddyHello Paddy
The Batch completion window is not exposed by the DI and the only way to
create/modify Batch numbers via DI API is when creating new documents.
Once the document is added, it cannot be modified therefore no batch can
be added afterwards.
Thus It is not possible to add/modify batch numbers to Business One
using the DI API or DTW once the GRPO has been added already.
Regards,
Syn Qin
SAP Business One Forums Team -
Hello
plz suggest Table for batch detail for sale & purchase in SAP 8.81 pl 07hi Jayakumar
In Sap b1 8.8 the batch tables have been changed
Category Old Tables New Tables
Batch Number OIBT, IBT1, OSRD OBTN, OBTQ, OBTW, OITL, ITL1
i think this will solve
Regards
Jenny -
Experts,
Where can i find batch for an item in a particular WH? Can we create batch number without transaction?
If i run this script
if (select version from cinf) >= 880000 begin
select t0.itemcode ItemCode,
t1.itemname ItemName,
t0.whscode Warehouse,
t0.onhand OnHand,
(select coalesce(sum (quantity),0) from OBTQ where itemcode = t0.itemcode and WhsCode = T0.WhsCode) OnBatch,
(select coalesce(SUM(ABS(t2.StockQty)),0)-coalesce(SUM(ABS(t2.DefinedQty)),0) from OITL t2
where t2.DocQty > 0 and t2.StockEff <> 2 and t2.ItemCode = t0.itemcode and t2.LocCode = t0.whscode)
+ ABS((select coalesce(SUM(ABS(t2.StockQty)),0)-coalesce(SUM(ABS(t2.DefinedQty)),0) from OITL t2
where t2.DocQty > 0 and t2.StockEff <> 2 and t2.ItemCode = t0.itemcode and t2.LocCode = t0.whscode))
) / 2 ForComplete,
t0.onhand - (select coalesce(sum (quantity),0) from OBTQ where itemcode = t0.itemcode and WhsCode = T0.WhsCode) -
(((select coalesce(SUM(ABS(t2.StockQty)),0)-coalesce(SUM(ABS(t2.DefinedQty)),0) from OITL t2
where t2.DocQty > 0 and t2.StockEff <> 2 and t2.ItemCode = t0.itemcode and t2.LocCode = t0.whscode)
+ ABS((select coalesce(SUM(ABS(t2.StockQty)),0)-coalesce(SUM(ABS(t2.DefinedQty)),0) from OITL t2
where t2.DocQty > 0 and t2.StockEff <> 2 and t2.ItemCode = t0.itemcode and t2.LocCode = t0.whscode))) / 2) Difference
,case (select count (1) from AITM T5 where T5.ItemCode = T0.ItemCode and T5.ManBtchNum <> 'Y')
when 0 then 'N'
else 'Y'
end 'StatusChanged'
,T1.ManOutOnly
from oitw t0 inner join oitm t1 on T0.ItemCode = T1.ItemCode
where t1.manbtchnum = 'Y' and
t0.onhand - (select coalesce(sum (quantity),0) from OBTQ where itemcode = t0.itemcode and WhsCode = T0.WhsCode) -
(((select coalesce(SUM(ABS(t2.StockQty)),0)-coalesce(SUM(ABS(t2.DefinedQty)),0) from OITL t2
where t2.DocQty > 0 and t2.StockEff <> 2 and t2.ItemCode = t0.itemcode and t2.LocCode = t0.whscode)
+ ABS((select coalesce(SUM(ABS(t2.StockQty)),0)-coalesce(SUM(ABS(t2.DefinedQty)),0) from OITL t2
where t2.DocQty > 0 and t2.StockEff <> 2 and t2.ItemCode = t0.itemcode and t2.LocCode = t0.whscode))) / 2) <> 0
order by t0.itemcode, t0.whscode
end
else
select t0.itemcode ItemCode, t1.itemname ItemName, t0.whscode Warehouse, t0.onhand OnHand,
(select coalesce(sum (quantity),0) from oibt where itemcode = t0.itemcode and WhsCode = T0.WhsCode) OnBatch,
(select coalesce(sum(t2.docopenqty),0) from osrd t2
where t2.itemcode = t0.itemcode and t2.WhsCode = T0.WhsCode and t2.direction = 0 and docopenqty >0) ForComplete,
t0.onhand - (select coalesce(sum(quantity),0) from oibt where itemcode = t0.itemcode and WhsCode = T0.WhsCode) -
(select coalesce(sum(t2.docopenqty),0) from osrd t2
where t2.itemcode = t0.itemcode and t2.WhsCode = T0.WhsCode and t2.direction = 0 and docopenqty >0) Difference
,case (select count (1) from AITM T5 where T5.ItemCode = T0.ItemCode and T5.ManBtchNum <> 'Y')
when 0 then 'N'
else 'Y'
end 'StatusChanged'
,T1.ManOutOnly
from oitw t0 inner join oitm t1 on T0.ItemCode = T1.ItemCode
where t1.manbtchnum = 'Y'
and t0.onhand - (select coalesce(sum(quantity),0) from oibt where itemcode = t0.itemcode and WhsCode = T0.WhsCode) -
(select coalesce(sum(t2.docopenqty),0) from osrd t2
where t2.itemcode = t0.itemcode and t2.WhsCode = T0.WhsCode and t2.direction = 0 and docopenqty >0) <> 0
order by t0.itemcode, t0.whscode
I get items like
On Hand
0.000000
On Batch
0.000000
But
For Complete
690.000000
What is this For Complete stands for?/
This query is for Batch number inconsistency report during upgradationHi Rupa.......
How batches will be created without any stock transaction?
It is not at all possible to create Batches without Stock Transactions.
You get the Batch details in OIBT and IBT1 where you get the Base Documents........
Regards,
Rahul -
Batch details required in FIFO Document Extract MRF1
Hello,
The requirement of my client is to get the batch number used in the material document in the FIFO document extract.
When I analysed the table MYMP and MYMP1 and the transactions MRF1 and MRF3, I see that the batch details cannot be displayed.
i have suggested the user to develop a custom report for the same.
However I need to know if it is possible to add batch in the FIFO extract using standard SAP.
Thanks!
PMHi,
Take 4 separate fields to store the new fields .then ,
FIELD1 = AGING_DETAILS+0(30).
FIELD2 = AGING_DETAILS+31(30).
FIELD3 = AGING_DETAILS+61(30).
FIELD4 = AGING_DETAILS+90(30).
Regards
Sudheer -
Hi Experts,
How to display Batch details in PLD like {Batch Number, WH, Location in GRPO & DO}, if Item is batch managed.
Regards,
S1bHi............
SAP has given the system default PLD for batches. Its on you whether you need to add some more extra fields. For Batch PLD you have to set the print from Administration--> System Initialisation --> Print Preferences. Select the document into the Per Document atb and select the Document and Batch/serial no.
Regards,
Rahul -
Batch details window cannot save UDF value
Hi experts!
Did anybody else experience that if you want to update a user defined field of a batch in 'Batch details' window, it pretends as everything was saved successfully, but UDF values are not saved in fact. I tried it with 8.81 PL05 (and earlier versions as well)
I found a note (1431365) of a similar problem but it is about the General update button of "Batch management" window, and this note suggests to use "Batch details" instead. Quite weird that updating (normal update, not global) a UDF value in "Batch management" window seems to work fine for me, the modified value can be seen on "Batch details" window.
Regards: GergőWell, originally our customer recorded this behavior on 8.8 PL20 (8.80.238)
I tried it on almost the same database, in our developer environment, that has slightly different patch level: PL21.
Then i tried with a 8.81 PL05 database too. There are some addon installed, but none of them was running, and i could not find any formatted search on this window.
But i suppose i figured out what happened.
For updating UDF i always switch on the user defined fields window (Ctrl-shift-U), and use this window. I did so in this case as well. (and our customer did so)
But now i realized that in this case UDF-s appears on the native window as well. We have to scroll down to see them, that's why i hadn't realized them before. Those fields work fine. I guess you used those fields too. Can you confirm it?
Regards, Gergo -
Batch Details of Draft(Open) A/R Invoice
How do i get details of draft (Open) A/R Inovice???
From which table can i get the batch details of draft A/R inovice???
For Posted A/R Invoice i can get the batch details from IBT1.Hello,
It is pending from B1 version and the process. If you has a delivery note before the invoice, you may use the following blog:
/people/janos.nagy/blog/2010/06/18/displaying-serial-numbers-batch-details-on-invoice-part-ii
If you have no delivery note you cannot print the data before the document is added to database,
Regard
János -
Batch Details - Change Log is not implemented
Hi,
I realised that the Change Log in Batch Details is not being implemented.
Has this been planned for implementation?
I understand the batch functionality in SAP is not as strong as the Sales Quotation or Sales Order. However, my customer required to trace who has changed the batches.
Does anyone knows if the Change Log will be planned. ThanksHi,
You can activate the ODS manually... In future to avoid this.. please make following changes in ODS setting..
1. Set quality status to 'OK' automatically
2. Activate ODS object data automatically
3. Update data targets from ODS object automatically ( If any)
Regards,
Viren. -
Row - Invalid index [66000-31] in batch detail
Hi,
I try to block in inventory--> item management --> batch --> batch detail expiry date which if the expiry date is inputted has already expired.
My Code is like this
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
' Form Batch Setup in good receipt
Dim mat As SAPbouiCOM.Matrix
Dim currow As String
Dim currcol As String
If (pVal.FormTypeEx = "65053") And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD Then
oForm = SBO_Application.Forms.Item(FormUID)
If pVal.Before_Action = True Then
If pVal.ItemUID = "37" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
' SBO_Application.MessageBox("Test")
Dim today As String
Try
Dim expdate As SAPbouiCOM.EditText
mat = oForm.Items.Item("48").Specific
currow = pVal.Row.ToString
expdate = mat.Columns.Item("7").Cells().Item(currow).Specific
expdate = mat.Columns.Item("7").Cells.Item(mat.GetCellFocus).Specific
expdate = mat.Columns.Item("7").ValidValues
Dim tgl As String = expdate.Value
today = Format(Date.Now(), "yyyyMMdd")
If tgl < today Then
SBO_Application.MessageBox("Back Date is Not Allowed")
End If
Catch ex As Exception
Debug.Print(ex.Message)
Debug.Print(ex.ToString)
End Try
End If
Else
If pVal.ItemUID = "37" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
End If
End If
End If
End Sub
The expiry date field in batch detail sap B1 actually refer to column. When i try to look for the system information for this field the information is like this:
[Form = 65053 Item = 48 Pane = 0 Column = 7 Row = 1 Variable = 1 OBTN,Expdate]
I try to debug but the error message is "Row - Invalid index [66000-31]"
I try to debug the code above and try to watch the variable currrow. The currow position is -1.
Does anyone can help me ?
Thanks in advance
Regards
KKhi,
you may check the ff threads
Row - Invalid index
index
Find the warehouse in Cell of system matrix
regards,
Fidel -
Problems Recording Batch details in Inbound Deliveries -SLED
I am trying to record the batch details in an inbound delivery and then pass this through to the full goods receipt.
In the inbound delivery, when I press the batch creation button for the item I get a dialogue box with the batch (vendor's) number and expiry date as open for entry but the production date is grayed out! When I then go into the classification system to enter the rest of the data, the production date is 00.00.0000 and this obviously causes problems!
If I switch off the confirmation control in the PO and go straight to MIGO, the batch handling acts as I would expect and a production AND expiry date can be added and all the classification data goes in "sweet as". This implies to me that there is nothing wrong with the site or the IM postings.
I have tried changing the "Batch Installation in the Inbound Delivery" but this does not fix the production date problem. Although if I switch off SLED it does switch of the batch checking and creation in the delivery as I would expect.
I have scoured through OSS and not found anything relevant, we are on 4.7.
Any thoughts or pointers as to what else I could have overlooked?
Many thanks
HHi Howard,
You should probably post this message in the ERP forum.
Kind regards,
Yann -
Goods Receipt DTW - Possible to update existing batch details?
Hello experts,
Using the three templates OIGE, IGE1, and BTNT I've managed to perform some Inventory Adjustments BY BATCH using DTW.
The issue I am having is that some of the fields in BTNT are not updating in SAP despite a successful DTW instance depending on whether the batchnumber is pre-existing or is new.
If the batch already exists, quantities are being receiving as expected but additional data such as "Notes", "InternalSerialNumber", and even some user-defined fields we have created for Appearance, Inventory Tag Number, etc. will not update. I have checked DTW mapping and it is setup correctly.
In fact, if the batch number defined in BTNT is NEW to the system these additional details load up as expected, only when it is a quantity update on the batch number do they not. I thought that since the quantity of a pre-existing batch is being update successfully via this method the other "Batch Details" should update as well.
Can anyone provide insight as to whether it is possible (and if so how) to update these batch details during a Goods Receipt or Goods Issue DTW for pre-existing batches or will it only do it for a brand new batch #?
Thanks very much,
RichardHi Richard,
Welcome you post on the forum.
I am afraid you could only update batch details when you imported them as new. You may only update the existing batch details through UI.
Thanks,
Gordon -
Stock details of a material with batch details
Hi.
I am developing a PP report for which i require the available material (un restricted stock) details and their batch details which are being displayed in MMBE (tcode). Is there any function module or BAPI or else what is the table name for finding this. Please help me for this for which i ll be very gr8 ful.
Thanks.
AshokHi Ashok,
Check these tables MARDMSEGMKPF.
Try this FM's also,
MB_READ_MATERIAL_STOCKS
MD_STOCK_REQUIREMENTS_LIST_API
Check this link.
https://forums.sdn.sap.com/click.jspa?searchID=3418879&messageID=291518
Thanks,
reward If Helpful. -
Report to view the batch details of the products sold month wise
Report to view the batch details of the products sold month wise.
Please send it .Dear Goutam
Use <b>MB51</b> where you can select the field "Batch".
Thanks
G. Lakshmipathi -
Batch detail report Purchase against sale problem
Hello
i want batch detail as follows
Batch Num , ItemCode, Pur Qty,Pur Price, Vendor Name, Sale Qty , Sale Price, Cust Code/Name Balance QTY
When i enter the Doc no of Purchase Invoice the result should shows as follows,(Items are Batchwise ) (I want to show Purchase Invoice against sale)
I done in crystal Report for that I take OPCH,PCH1,IBT1,INV1,OINV,IBT1_SALE
The Query i copy from Crystal is as follows, My result is as i want but only sale price can't display properly
SELECT "IBT1"."BatchNum", "IBT1"."DocDate", "IBT1"."ItemName", "IBT1"."Quantity", "PCH1"."Price", "IBT1"."ItemCode", "IBT1_SALE"."Direction", "IBT1_SALE"."Quantity", "IBT1"."CardName", "IBT1"."CardCode", "IBT1_SALE"."CardCode", "IBT1_SALE"."CardName", "OPCH"."DocNum", "OPCH"."NumAtCard"
FROM (("satyam"."dbo"."OPCH" "OPCH" INNER JOIN "satyam"."dbo"."PCH1" "PCH1" ON "OPCH"."DocEntry"="PCH1"."DocEntry") INNER JOIN "satyam"."dbo"."IBT1" "IBT1" ON (("PCH1"."ItemCode"="IBT1"."ItemCode") AND ("PCH1"."DocEntry"="IBT1"."BaseEntry")) AND ("PCH1"."LineNum"="IBT1"."BaseLinNum")) INNER JOIN "satyam"."dbo"."IBT1" "IBT1_SALE" ON ("IBT1"."BatchNum"="IBT1_SALE"."BatchNum") AND ("IBT1"."ItemCode"="IBT1_SALE"."ItemCode")
WHERE "OPCH"."DocNum"=541 AND "IBT1"."DocDate">={ts '2011-04-01 00:00:01'}
ORDER BY "IBT1"."BatchNum"
Suppose i enter Doc No 540 result show without attaching INV1.Pice in Sale price
Batch Num , ItemCode, Pur Qty,Pur Price, Vendor Name, Sale Qty , Sale Price, Cust Code/Name,Balance QTY
PU540-1 I01 05 100 ABCD 3 ZXCV 02
PU540-2 I02 10 120 ABCD - - 10
PU540-3 I03 08 100 ABCD - - 08
But When I attach INV1.Price in sale Price field then result Show,
Batch Num , ItemCode, Pur Qty,Pur Price, Vendor Name, Sale Qty , Sale Price, Cust Code/Name,Balance QTY
PU540-1 I01 05 100 ABCD 3 150 ZXCV 02
I create group by IBT1.BatchNum
But i want it should be Show as,
Batch Num , ItemCode, Pur Qty,Pur Price, Vendor Name, Sale Qty , Sale Price, Cust Code/Name,Balance QTY
PU540-1 I01 05 100 ABCD 3 150 ZXCV 02
PU540-2 I02 10 120 ABCD - - 10
PU540-3 I03 08 100 ABCD - - 08
For Cust Code i create formula as
if {IBT1_SALE.Direction}=1 then
{IBT1_SALE.CardCode}
ELSE
For sale Qty i create formula as,
If {IBT1_SALE.Direction}=1 then
{IBT1_SALE.Quantity}
And for Balance Qty formula are,
{IBT1.Quantity}-{@Saleqty}SELECT "IBT1"."BatchNum", "IBT1"."DocDate", "IBT1"."ItemName", "IBT1"."Quantity", "PCH1"."Price", "IBT1"."ItemCode", "IBT1_SALE"."Direction", "IBT1_SALE"."Quantity", "IBT1"."CardName", "IBT1"."CardCode", "IBT1_SALE"."CardCode", "IBT1_SALE"."CardName", "OPCH"."DocNum", "OPCH"."NumAtCard", "INV1"."Price"
FROM ((("satyam"."dbo"."OPCH" "OPCH" INNER JOIN "satyam"."dbo"."PCH1" "PCH1" ON "OPCH"."DocEntry"="PCH1"."DocEntry") INNER JOIN "satyam"."dbo"."IBT1" "IBT1" ON (("PCH1"."ItemCode"="IBT1"."ItemCode") AND ("PCH1"."DocEntry"="IBT1"."BaseEntry")) AND ("PCH1"."LineNum"="IBT1"."BaseLinNum")) INNER JOIN "satyam"."dbo"."IBT1" "IBT1_SALE" ON ("IBT1"."BatchNum"="IBT1_SALE"."BatchNum") AND ("IBT1"."ItemCode"="IBT1_SALE"."ItemCode")) INNER JOIN "satyam"."dbo"."INV1" "INV1" ON (("IBT1_SALE"."ItemCode"="INV1"."ItemCode") AND ("IBT1_SALE"."BaseEntry"="INV1"."DocEntry")) AND ("IBT1_SALE"."BaseLinNum"="INV1"."LineNum")
WHERE "OPCH"."DocNum"=541 AND "IBT1"."DocDate">={ts '2011-04-01 00:00:01'}
ORDER BY "IBT1"."BatchNum"
But it show result as,
Batch Num , ItemCode, Pur Qty,Pur Price, Vendor Name, Sale Qty , Sale Price, Cust Code/Name,Balance QTY
PU540-1 I01 05 100 ABCD 3 150 ZXCV 02
Maybe you are looking for
-
Warning message in 'Writeback Report'
Hi, I have to enable writeback on a report and to prompt a warning message to user before submitting the changes. I am fine with enabling the writeback on the report and update the changes through writeback XML. But, I am not sure of this 'Warning Me
-
Multiple 8800GT's in one machine
Hi, I'm building a machine which will act as a server for image processing. It will use openGL offscreen rendering to answer clients requests. I was wondering if it is possible to put multiple 8800GT's in one machine to get performance boost? I know
-
TS1424 how do i talk to a human about over charging my acct!!!
How do i talk to a human about over charging my acct!!!!
-
Error in External application portlet
I receive this message when I try to configure the external application portlet: Error: Error interno (WWC-00006) Se ha encontrado un error inesperado en wwptl_fapp.show_edit_list (ORA-29273: fallo de la solicitud HTTP ORA-06512: en "SYS.UTL_HTTP", l
-
Premiere CC h264 rendering problem
Premiere CC is changing aspect ratio of my video, from 4:3 to 109:96, whan rendering in h264. This was not hapening with Premiere CS 5.5.