Hi,
If I use the code below I get a blank for my batchnumber.
I know for 100% sure that the batch is filled and If I look at my goodsreceipt the batchnumber is showing
Is this a bug in the DI or am I doing anything wrong
We run SBO004A pl32
Dim delivery As SAPbobsCOM.IDocuments = oCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
If delivery.GetByKey(GetDocEntryForDocument(DocNum, SAPbobsCOM.BoObjectTypes.oDeliveryNotes)) Then
With delivery.Lines
For i As Integer = 0 To .Count - 1
.SetCurrentLine(i)
With .BatchNumbers
For j As Integer = 0 To .Count - 1
.SetCurrentLine(j)
Console.WriteLine(".BatchNumber: " + .BatchNumber)
(ors.Fields.Item(0).Value, itemcode)
Next
End With
Next
End With
End If