FIFO method for unique batch number materials
Dear,
Is there any way to achieve the FIFO methodlogy when i 'm using unique batch umber assignment. I.e i have five batch number say 100,200,300,400 its made based on qly of the material (100- good, 200- avg...) ..so when ever i do migo i will assign the batch/ valaution type as 100 if its good qly materil.. in this case , how i can achive fifo methodology.. pls provide ur valuable suggestion.
you cannot reach your goal with 5 batch numbers, each individual receipt needs its own batch record , then you can do FIFO either based on the number (if internally assigned with GR, as then it is sequential) or based on the GR date that is stored in the batch record.
If you receive 2 goods receipts to the same batch, then you cannot know which part of the batch is the older one.
Better you use individual batches.
The meaning of your current 5 batches should become a batch characteristic. Then you can use batch determination to find only batches with a certain characteristic when you consume or sell the materials.
Similar Messages
-
SALE DELIVERY BY FIFO METHOD FOR WITHOUT BATCH ITEM
Suppose Customer u2018C01u2019 give me sale order first,of Item 'I01' after that my second customer u2018C02u2019 give me sale order of same Item 'I01' that time my employee give material to second customer ie 'C02' first,but i want block the this process he must give the material to 'C01' because he give me the sale order first ,I want sales process like FIFO
So how it can be happened
ThanksHi Jaykumar........
Do you know about Batch Allocation Method?
When you create Sales Order for any of the customer you can allocate/reserve batches so that when you do delivery SAP will Deliver the material from the reserved batches.
Please try I think this will help you.
For allocating batches at Sales Order you have to click Ctrl+Tab on Quantity Field..........
Hope this will help you........
Regards,
Rahul -
Getting list of PO's for a Batch Number
Hello All,
I have a requirement to get list of Purchase orders for a Batch Number.
Is there any standard report available where in i can enter the Batch Number and it will give us list of all PO's where this batch has been used.
Points assured.
Warm regards,
Jatinder BansalHI,
Very simple.Use report MB51.Enter batch & plant.Transaction event type-WE.
Then execute.u can get the details.In this change the laypout.Click on current display variant,then on position deselect all
options,then select only PO & shift to left side & save.U will get the required report.U can save ur layout also.
murugan
Edited by: Murugan mgl on Jul 28, 2009 10:45 AM -
MIGO: user exit for checking batch number
Hello,
When using MIGO to do goods receipt (101 mvt) I need a user exit in each time a line is added to check the batch number entry. If the batch number is empty for certain materials issue a error message to the user.
Thanks,
Peterwhere is your problem then?
If you create batches automatically with 101 ,then each line will get its batch from SAP, no need to check if there something entered manually.
Why do you customize auto creation of batches, while you want the user to enter the batches manually?
can you give a bit more background? -
Method for a random number generator???
I need a method to generate a random number between zero and X, X being a variable set by my program. The only method I can find is Math.random(), which generates a number between 0.0 and 1.0. (Of course, I can multiply to make it an int). Can you help me out?
I dont know if this will help not but you could do this:
RandomNum = (int)Math.floor(Math.random() * X);
I think that should generate your random number between 1 and variable X
Regards,
Carl -
Stored Procedure for Batch Number Format and Block Duplicate Batch Number
Hi Experts !
I am new one in forum asking question.. I want Stored procedure for Batch Number Format. I want fix one Batch number format in Stored Procedure.
Example :
My Batch number format Like BATCH00001 - It should be first five digit is text format and next five is Numeric.
IF create Goods receipt PO or Goods receipt stage I create batch number like BATCH 00001 or any other number means don't add that document and also duplicated batch number also does not allowed. please give me the solutions. I am sorry for my bad english .Dear Nagarajan K.
Thanks for your replay ..
IF @transaction_type IN ('A','U') AND (@object_type = '106' )
BEGIN
set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9), @list_of_cols_val_tab_del,1) - 1)
set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9), @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
--set @base =( select basetype from ibt1 where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
set @count = (select count(*) from oibt quantity > 0 and where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
if @count > 1
begin
set @error = 1
set @error_message = 'Please enter different Batch Code for batch ''' + @batch + ''' for item ' + @item
select @error, @error_message
END
END
I used above Stored Procedure. here we can use one batch number for different item but i want to block one batch we should use one item and one time only after than we never use that batch number for same item and another item.
After that I want format for Batch, we should follow unique Batch number for all items. -
To map batch number to serial number for inbound message type WMMBXY
Hi Gurus,
Can anybody guid me how to map batch number to serial number for goods receipt inbound EDI 861 message type WMMBXY .
And can tell me how to assign serial number in Purchase Order for serialized product for perticuler Batch number.hi dsk,
thanks for your earliar reply,
actually iam working on sapscript there i want to add batch number ,but i am not able to clear my doubt from where i get this.
how can i map batch number with corresponding to PO num ber, '
in the report i used structure vbplp with field charg"(batch num).
also i want to know from which table i can get customer part number and Po number .
how can i add batch num ,..
from which table or with which field i can compare itr to get .
sunny -
Physical Inventory & Cycle Couting for Batch Managed Materials
Hi Friends, pls help me on this scenario
Physical Inventory
For a Batch Managed Materials we have hundreds materials and thousands of batches (each batch is equally imp)
So the first step would be
Create the documents with MI31 Batch Input session
Post the count with MI34 Batch Input Session
See the difference in MI37
MIDO we get to c the physical inventory overview.
correct me if i am wrong
Cycle Count
This is a seasonal Business and ABC analysis based on requirements n Consumption doesn't work for this process. Is there any way that we can configure the system in SAP which has the ability to fulfill the following scenario.
They shud be able to select a % of materials from the storage for every month and that way they shud finish counting all of them at the end of their season. Not based on any criteria, just a part of materials ...
hope i am clear on the requirement..please suggest me something
thanksNo, it will not match, it will create its own document in background.
Why do you have one created if you dont want to do a selection ?
You cannot create a document for 1000 materials and then only count 30.
You either create a document for 30 and count 30 and enter it with MI04, or you dont create a document with SAP, count based on any other paperwork and enter the count as I said with MI09. -
Batch Number field in IDoc for Process Orders (message type LOIPRO01)
Hello PP experts,
Just wanted to ask if anyone of you have worked with message type LOIPRO01 (IDoc for process orders)
There is a segment-field in this IDoc E1RESBL-CHARG which has description of "Batch Number"
We tried to assign a Bath Number for an Order (using t-code COR2 --> "Goods Recpt" tab under "Receipt" section), generated an IDoc for this order, but upon checking the E1RESBL-CHARG field of the IDoc it is not populated with the Batch Number.
The material in the process order is FERT, so technically we're trying to assign a Batch Number in one of the process orders for a Finished Goods material type, so not on the component level.
Can anyone here verify:
1. is the E1RESBL-CHARG field of IDoc LOIPRO01 intended for the Product Batch Number? If Yes, how do we populate that for in the IDoc? --> Do I need to have a Reservation/Dependent Requirement for the Product for the Batch Number to be populated in the IDoc?
2. If E1RESBL-CHARG can not be populated for a Product that has no Reservation/Dependent Requirements, Do I have any option of populating this field with just the Batch Number assigned to the Process Order of that product?Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB. We need batch from AFPO and just created a lookup using the Process Order Number as import param
-
Need to make Batch Number (CHARG) display only on MSC1N
Hi, we have a requirement to make batch number field (DFBATCH-CHARG) display only based on user authorization. I have tried implemented BADI BATCH_MASTER and tried to change the screen field property in method SINGLE_FIELD_CONTROL but batch number (CHARG) is not part of the loop for this method.
Does anybody know BADI or Screen exit for MSC1N that can make the batch number display only?
Thanks,Hi
Although it's for older releases, see Note 562690 - BAdI BATCH_MASTER: Field selection control, perhaps it helps you
Regards
Eduardo
PD: Other thing, see that it refers to T148F and T148G. Try to add the field CHARG in customizing menu. Ask your MM consultant about implications.
Edited by: E_Hinojosa on Jul 13, 2011 9:48 AM -
How to automatically assign a batch number
Hello experts,
Our customer have the "Manage Item by" settings on "Batches" and the "Management Method" settings on "On Release Only".
He don't want to manually generates the batch numbers in Delivery Entry because he would like to have an automatic assignment of batch number like a progressive number for year.
How can I achieve it using DI API ?
I have tried to create a Delivery Document using the BatchNumbers object but I got the following error message "the batch number you selected doesn't exists".
So I created a Goods Receipt for the batch number above and finally the delivery document has been created successfully.
The issue came out is about the stock quantity for the itemcode because the Goods Receipt have increased it and as result I have the same stock quantity as before the delivery and of course it's not correct !
I noticed that SAP B1 after the manually generation of batch number it creates a record on the OIBT table using an existing Good Receipt.
How can I add a batch number in the OIBT table using DI API without the need to create a Good Receipt ?
Can someone help me ?
It would be very appreciated.
Many thanks for your time in advance.
Best regards
AndreaHi,
Try this code, May be it will help you
Dim v_StockEntry As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
Dim v_StockExit As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
Dim str_ProEntryNo As String = oDBDSHeader.GetValue("DocNum", 0)
'Dim str_DocDate As String = CDate(frmProductionEntry.Items.Item("t_DocDate").Specific.Value).ToString("yyyyMMdd")
Dim str_DocDate As String = Date.Now
Dim intStockRowCount As Integer = 0
Dim FGCost As Double = 0
Dim RMCost As Double = 0
Dim RMQty As Double = CDbl(oDBDSHeader.GetValue("U_TotRW", 0))
'--- RM Exist
v_StockExit.Comments = "Stock Exit For Production Entry(RM) Production-Entry No: " & str_ProEntryNo
v_StockExit.DocDueDate = str_DocDate
v_StockExit.Reference2 = str_ProEntryNo
intStockRowCount = 0
For i As Integer = 1 To oMatrix1.VisualRowCount - 1
intStockRowCount += 1
If intStockRowCount > 1 Then v_StockExit.Lines.Add()
v_StockExit.Lines.ItemCode = oMatrix1.GetCellSpecific("ItemCode", i).Value
v_StockExit.Lines.Quantity = oMatrix1.GetCellSpecific("Qty", i).Value
v_StockExit.Lines.WarehouseCode = oMatrix1.GetCellSpecific("WarCode", i).Value
'v_StockExit.Lines.AccountCode = AccCode
Dim qty = oMatrix1.GetCellSpecific("Qty", i).Value
qty = IIf(qty.ToString.Trim = "", 0, qty)
Dim cost = oMatrix1.GetCellSpecific("Cost", i).Value
cost = IIf(cost.ToString.Trim = "", 0, cost)
Dim PerQtycost = CDbl(cost) / CDbl(qty)
v_StockExit.Lines.Price = PerQtycost 'GetItemPrice(oMatrix1.GetCellSpecific("ItemCode", i).Value)
Dim ManBtchNum = getSingleValue("Select ManBtchNum from OITM Where ItemCode='" & oMatrix1.GetCellSpecific("ItemCode", i).Value & "'")
If ManBtchNum.Trim <> "N" Then
Dim rs As SAPbobsCOM.Recordset = GFun.DoQuery("select * from OBTQ where ItemCode ='" & _
oMatrix1.GetCellSpecific("ItemCode", i).Value & _
"' and WhsCode ='" & oMatrix1.GetCellSpecific("WarCode", i).Value & _
"' And Quantity > 0 order by SysNumber")
Dim count As Double = oMatrix1.GetCellSpecific("Qty", i).Value
For k As Integer = 0 To rs.RecordCount - 1
If CDbl(rs.Fields.Item("Quantity").Value) >= count Then
Dim ss = rs.Fields.Item("SysNumber").Value
v_StockExit.Lines.BatchNumbers.BatchNumber = _
getSingleValue("select DistNumber from OBTN where ItemCode ='" & _
oMatrix1.GetCellSpecific("ItemCode", i).Value & _
"' and SysNumber ='" & rs.Fields.Item("SysNumber").Value & "'")
v_StockExit.Lines.BatchNumbers.Quantity = count
v_StockExit.Lines.BatchNumbers.Add()
Exit For
Else
v_StockExit.Lines.BatchNumbers.BatchNumber = _
getSingleValue("select DistNumber from OBTN where ItemCode ='" & _
oMatrix1.GetCellSpecific("ItemCode", i).Value & _
"' and SysNumber ='" & rs.Fields.Item("SysNumber").Value & "'")
v_StockExit.Lines.BatchNumbers.Quantity = rs.Fields.Item("Quantity").Value
v_StockExit.Lines.BatchNumbers.Add()
count = count - CDbl(rs.Fields.Item("Quantity").Value)
End If
rs.MoveNext()
Next
End If
Next
If oMatrix1.VisualRowCount > 1 Then
If v_StockExit.Add() <> 0 Then
StatusBarWarningMsg("Unable To RM Post Stock Document....... " & oCompany.GetLastErrorDescription)
Return False
End If
End If -
Process Order Batch number generation at the time of order creation
Dear All,
I m facing some issue at the time process order creation:
Current Settings:
1. Batch Number Creation at the time of order create.
Reason for this setting: Release of order is done by releasing operations one by one, therfore batch number will be generated on the final operation release, thats why we set up batch creation at the time of order create.
2. For FG batch number generation there is a program that copy the SFG(in Order BOM) Batch number to FG. ITs a industry requirement.
Problem:
when we create FG order system generate the error message at the time of order creation tht No batch could be determine.
Please suggest the solution
Thanks,Hi
Hope you have cretaed Batch serch strategy in COB1
U need to maintain it as per your strategy type. -
MANUAL CREATION OF BATCH NUMBER(EXTERNALLY) - NOT TO BE ALLOWED
MANUAL CREATION OF BATCH NUMBER(EXTERNALLY) - NOT TO BE ALLOWED while creation of Process Orders.
Hi,
Check t code OMCZ whether internal Batch no assignment is active or not.
From F1 help
In this step:
you activate internal batch number assignment
you define whether internal batch number assignment is allowed for goods receipts that have an account assignment
Standard settings
The standard version of the SAP system contains a predefined number range.
Further notes
Batch number assignment uses two function model exits with which you can define templates for batch numbers. You make the necessary settings in work step function module exits for internal batch number assignment.
The system checks whether the assigned batch number already exists in the system. Should the number already exist, the function is terminated.
When creating a client by copying another client, please note that internal number assignment is not active in the target client. You must activate it manually.
Regards
Anupam Sharma -
How can get batch number in process order?(T-code: COR1, COR2)
Please tell me step by step process it will be better to me the solve my issue.
When End-user uses alread existed batch number,
Pop-up Message,
"Your batch number is already exist.
Are you creating new batch number?"
If the answer is "No",
System still uses that batch number.
And User-Exits, or bodies don't exist this time.
How can I get this batch number When saving in process order?
I uses User-Exits "SAPLV1ZE" in Batch Number Check,
"PPCO0007" and "PPCO0001" in saving process order.
I know "PPCO0001" has all information about process order,
but I can't get batch number to "PPCO0007" From "PPCO0001" by using Memory ID.
Cause PPCO0007 happens before PPCO0001.
(ref. PPCO0007 can stop saving in process order.)
I want to know how can I get batch number when pop-up message's answer is "No".
I have to send this batch number to PPCO0007 by using Memory ID.
Please, help me.
Edited by: Jamie White 99 on Mar 15, 2010 11:00 AMDear,
Could you please clear your requirement in brief?
You don't want to use the existing batch number or want to assign external batch number or want unique batch number?
Use SAPLV1ZE and EXIT_SAPLV01Z_003 where you can replace the proposed number range with external interval defined by yourself.Also using EXIT_SAPLV01Z_004 you can define your own checking rule.
Further information can be obtained from the documentation on the enhancements
Also refer this link,
http://help.sap.com/saphelp_40b/helpdata/ru/dc/1d4b6e5733d1118b3f0060b03ca329/content.htm
Re: External batch assignment( Manual)
Regards,
R.Brahmankar -
Vendor/supplier Name through Batch number
Hi experts,
can you please tell me, in which table i will get the vendor/supplier name for a batch number ( CHARG ).hi,
use these tables.
MCHA
MKOL
MLIB
MSCA
MSLB.
Maybe you are looking for
-
Installing 8.1.7 on RedHat Linux 7.3
Dear All, I have been trying installing Oracle 8.1.7 on Linux 7.3, the OUI proceeds till the "Net 8 Configuration" and hangs. Both netasst and dbassist from command line hang-up. Can any one suggest way out to manually create a DATABASE and TNS Regar
-
My Index and contact page has moved my top nav up
I only changed my contact styles on my Index page and now my top nav has gone to the top. On my contact page I added two images so I understand I need to add some code to do with that but not sure how to get it back correct. When I veiw my contact pa
-
Default filename for print to file in Linux
Hi, I'm using print to file in Linux, and I'd like the default filename to be the page title. I couldn't find a config option for this. It retains the last file name I used, which is very problematic for me, as I can easily overwrite my last printed
-
How to fix Online help issue with F1
Dear All, I think you already know this issue : when using a proxy, Online help is not working on Adobe Reader XI. message displayed : "Online Help content cannot be displayed. Verify you can launch your web browser and have access to the Internet."
-
Ipod nano 2nd Gen sound EQ reducing sound quality?
Hey there every one i have a slight complaint. When ever i turn the sound EQ on to rock or anything else i can hear what sounds like static or crackling in the backgroud. Now its not to notice-able but its still annoying. And when i turn off EQ it go