on 10-16-2006 11:20 AM
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
Hello Madhu,
It's weird why does it complain about it if you're opening an already created service call, but try:
objServiceCall.AssigneeCode = "manager"; 'Or some other Assignee
And see if it works.
-
-
Alfredo Pérez
SAP Developer & Consultant
alperal (at) gmail.com
+52-(81)-137-937-80
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.