Skip to Content

Issue (Batch) for Production Error

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on Sep 28, 2007 at 01:44 PM

    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

    Add comment
    10|10000 characters needed characters exceeded