Skip to Content
0
Former Member
Feb 08, 2011 at 02:46 PM

SAP B1 8.8 Production Receipt DI-API

553 Views

Can anyone show me how to report a production receipt for B1 8.8 via the DI-API? I have the following code but it doesn't report the production (it doesn't error out either):

SAPbobsCOM.Documents prodReceipt = (SAPbobsCOM.Documents)sapCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry);

SAPbobsCOM.Document_Lines prodReceiptLines = prodReceipt.Lines;

prodReceiptLines.BaseEntry = docEntry;

prodReceiptLines.Quantity = Convert.ToDouble(mainListView.Items<i>.SubItems[5].Text);

prodReceiptLines.Add();

Any help would be greatly appreciated.