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