Skip to Content
author's profile photo Former Member
Former Member

Create the Delivery Notes

Hi, all

The Document in oinv and inv1 with DocEntry 18 is exist,

ItemCode have not binding with batch or series,

i want create the Delivery Notes, code C#:

SAPbobsCOM.Documents dShipment =


dShipment.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes;

dShipment.DocDate = DateTime.Now;

dShipment.DocDueDate = DateTime.Now;

dShipment.Comments = "";

dShipment.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

dShipment.DocTotal = 100000.00;

dShipment.CardCode = "ÂÅÑÊÎÐ";

dShipment.CardName = "";

dShipment.Lines.ItemCode = "FCA 3430";

dShipment.Lines.Quantity = 1.0;

dShipment.Lines.Price = 100000.00;

dShipment.Lines.BaseType = 13;

dShipment.Lines.BaseEntry = 18;

dShipment.Lines.BaseLine = 0;

int nRet = dShipment.Add();

if(nRet != 0)


// error : , 'Error (-1004) encountered.'


Delivery Notes don't created

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 11:11 AM

    Hi Gennadiy,

    I think the Delivery note is already closed. I did your test in my SBO and got the same error. Go into SBO and test if you can load that delivery note for that customer into an invoice.

    Hope it helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.