Error while trying to raise a Goods Receipt PO in SAP B1 v 9.0

10-11  Source: Network gathering  Views:0 

Advertisement
Hi Experts,
while trying to raise a Goods Receipt PO in SAP B1 v 9.0 the following error is been generated:
You should use existing Serial/batch number for this document type [21-59 ]
Note:We are able  to generate Goods Receipt PO for an item which is not serialized.
Thanks
Regards,
Satish.
Hi Edy,
Dim oPDN As SAPbobsCOM.Documents
oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                oPDN.CardCode = "C232323"
                oPDN.Lines.ItemCode = "A00004"
                'oGR.Lines.LineNum = 0
                oPDN.Lines.BaseLine = 1
                oPDN.Lines.BaseEntry = 202
                'oGR.Lines.BaseRef = 203
                oPDN.Lines.BaseType = 20
                oPDN.Lines.Quantity = 1
                oPDN.Lines.UnitPrice = 2
                oPDN.Lines.WarehouseCode = '01'
                    oPDN.Lines.SerialNumbers.InternalSerialNumber = 3
                    oPDN.Lines.SerialNumbers.SystemSerialNumber = "Sh01"
                    oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = "Mf01"
                    oPDN.Lines.SerialNumbers.SetCurrentLine(iRowNo)
                    oPDN.Lines.SerialNumbers.Add()
                End If
            Next
            oPDN.Lines.Add()
            lRetCode = oPDN.Add
Thanks,
Satish.
Related articles