Production item batch creation al the work order creation
Many clients have asked for creation de production item batch at the moment in which the work order of these items is created.
We would like it was possible.
Thank you very much in advanced.
-
Hi,
a simple solution is possible with customizing
Idea:
At work order creation we create the BatchNumber and save this in this field
In function "getNextBatchNumber" we insert the function to read the BatchNumber from this field.
Only if not defined, we create a new one. It's really a simple script.
For this we use usereventsBeas AddOn Administration - workordermanagement

Insert follow script
function GetBatchNumber
// BatchNumber defined?
select "CHARGE_ID" into :e_DistNumber from "BEAS_FTPOS" where "BELNR_ID"=<e_DocEntry> and "BELPOS_ID"=<e_LineNumber>
if <e_DistNumber> <> "" then
return true
end if
// Create new Batch number
// insert here the script for the creation. More examples here
setvar=e_DistNumber=<e_DocEntry><e_LineNumber><today,yyyymmdd><now,hhmm>
return true
end function
// Work order creation: Get BatchNumber and save it in work order position
function CreateWorkOrderPositionEnd
// beas 2011/09 and earlier : we must create own batch number creation second time
// beas 2011/11 better solution available
setvar=e_DistNumber=<e_WoDocEntry><e_WoLineNumber><today,yyyymmdd><now,hhmm>
sql.update "BEAS_FTPOS" set "CHARGE_ID"=<e_DistNumber,dbstring> where "BELNR_ID"=<e_WoDocEntry> and "BELPOS_ID"=<e_WoLineNumber>end function
Note: without guarantee or free support -
Hello Martin.
It's a great idea to book the batch number but I need the batch creation to do it the quality order.
-
Hi Luis,
I don't understand..
the quality order is created after creation of receipt document. And then the bach number is always available
if you create QC order based on routing position, you can read the batch number from work orderWhat exact is the work flow?
regards Martin
-
Hi,
Per our client process, we are maintaining the Qc order creation when creating work order. Actually, we are following During the Production Qc inspection. It's possible to show the Batch Number in Qc order screen.
Thanks in Advance.
Please sign in to leave a comment.
Comments
4 comments