Skip to Content
0
Former Member
Dec 27, 2007 at 01:40 AM

Creating Sales Return Document

89 Views

Documents doc = (Documents)company.GetBusinessObject(BoObjectTypes.oReturns);

doc.CardCode = "comp";

doc.DocDate = DateTime.Now;

doc.Lines.BaseLine = 0;

doc.Lines.ItemCode = "TVT";

doc.Lines.Quantity = 1;

doc.Lines.SerialNumbers.ManufacturerSerialNumber = "VC133";

doc.Lines.SerialNumber.SystemSerialNumber = 2;

doc.Lines.Add();

doc.Add():

This code gives me a error that itemno does not exist....I am giving the item code,i dont understand why its not working....I am new to SAP...want to develop a add-on...Have ever developed it before....Please help