cancel
Showing results for 
Search instead for 
Did you mean: 

Adding AR Invoice with BOM and Batch Numbers

181

I need to upload invoices to SAP with products that have batch numbers. Everything works correctly except when uploading BOM products, the bill of materials that the parent product has contain Batch Numbers and when I try to add its Batch Numbers it shows me the following: error -4014 cannot add row without complete selection of batch / serial numbers.

Below part of my Code.

if (detalle.Lotes.Count() != 0) { foreach (var lote in detalle.Lotes) { businessObject.Lines.BatchNumbers.Add(); businessObject.Lines.BatchNumbers.BatchNumber = lote.BatchNumber; businessObject.Lines.BatchNumbers.Quantity = lote.Quantity; } } if (detalle.UseBaseUnits == "Y")

As i mentioned before when i upload a regular item with batch number it work fine.

Any idea

Accepted Solutions (0)

Answers (0)