on 09-28-2007 1:37 PM
Hi All,
I'm on SBO 2005 PL01 SP22.
When I try to issue to production order (batch item), I get the followinf error:
<i>Referenced work order type should be "disassembly" [OIGE.DocStatus][line: 1]</i>
Here is my Code:
IssueToProd = oAppObj.oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
IssueToProd.DocDate = Now
IssueToProd.DocDueDate = Now
IssueToProd.Comments = "Hello " & edDisp.Text
IssueToProd.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
IssueToProd.Lines.BaseType = "0"
IssueToProd.Lines.BaseEntry = edDisp.Text
IssueToProd.Lines.Quantity = 1
IssueToProd.Lines.WarehouseCode = "01"
IssueToProd.Lines.BatchNumbers.BatchNumber = "a5"
IssueToProd.Lines.BatchNumbers.Quantity = 1
IssueToProd.Lines.BaseType = ""
'IssueToProd.Lines.BatchNumbers.Add()
LRes = IssueToProd.Add()
If Not LRes = 0 Then
oAppObj.oDICompany.GetLastError(LRes, sErrMsg)
oAppObj.SBO_App.MessageBox("Error : " & sErrMsg)
Else
'
End If
When Issue For Production run, You use in number of Production Orders.
You have to set Status menu in Production Order form on "Released".
hope this help
ks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the Production Order is set as released.
Everything is fine when I do it using the GUI of SBO, I'm having this problem when replicating it in the DI.
What boggles me is that when I do the release from Production, it works fine (even with the batch numbers). So I'm trying the issue for Production, but having this problem...
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.