on 10-20-2005 11:19 AM
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 =
(SAPbobsCOM.Documents)Sbo.Instance.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
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
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,
Adele
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.