Skip to Content
0
Former Member
Jul 25, 2016 at 04:14 PM

How do I create a service call using sdk

208 Views

Hi Geeks,

Am geting an error No matching records found (ODBC -2028) when I try to add a service call. Please help with a code that works, or advice what I might be doing wrong. My code is

SAPbobsCOM.ServiceCalls scdocument;

sap.Connect();

scdocument = sap.compdb.GetBusinessObject(SAPbobsCOM.BoObjectTypes .oServiceCalls);

scdocument.CustomerCode = "V70000";

scdocument.Subject = Request["subject"];

scdocument.ProblemType = Int32.Parse (Request["category"]);

scdocument.ItemCode = "A00001";

scdocument.InternalSerialNum = "2";

scdocument.CallType = 1;

reccode= scdocument.Add();

Regards,

Timothy