Skip to Content
0
Former Member
Oct 16, 2006 at 10:20 AM

Adding Expenses to a service call

33 Views

Hi all,

I am trying to update a service call by adding expenses.For this purpose i write the following code....

1.First i am getting existed service call into one object.

IServiceCalls objServiceCall=SBOCOMUtil.getServiceCalls(company,new Integer(19));

This service call with id "19" is coming properly.

2.Then creating new ServiceCallInventoryExpenses object by writing the following code...

IServiceCallInventoryExpenses objSE=objServiceCall.getExpenses();

objSE.setCurrentLine(new Integer(0));

objSE.setDocEntry(new Integer(64));

objSE.setDocumentNumber(new Integer(1063));

objSE.setDocumentType(new Integer(15));

objSE.setStockTransferDirection(new Integer(1));

3.Finally updating servicecall...

int flag=objServiceCall.update();

By executing this code i am getting the following error

<b>Error : No related record found. [OSCL.assignee]</b>

I can't understand what the problem is here.

Any one guide me in this issue.

Thanks&Regards

Madhu