Skip to Content
0
Former Member
Sep 13, 2010 at 07:26 AM

add a sales person

32 Views

hi experts,

I want to add a sales person by following code:

SAPbobsCOM.SalesPersons vSLP = (SalesPersons)rma.GetBusinessObject(BoObjectTypes.oSalesPersons);

vSLP.SalesEmployeeName = name;

vSLP.Remarks = comment;

if (vSLP.Add() != 0)

{

sap.GetLastError(out eCode, out err);

}

a error happened: Code: -8016, Object unsupported.

How can a add a sales person without error? thanks...