cancel
Showing results for 
Search instead for 
Did you mean: 

How to Update Sales order using Service layer via WCF.

Former Member
0 Kudos

Hi,

Please Guide me for update sales order using Service layer via WCF.

i am facing Internal Error (-5002).

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nikunj Prajapati,

Please note that the Tag ‘SAP Business One SDK’ is not available anymore for selection. It has been replaced by the tag ‘SAP Business One Extensibility’ .

For more details, refer to the following blog post:

‘SAP Business One Extensibility’ replaces Tag ‘SAP Business One SDK’

Kind regards,

ANKIT CHAUHAN

SAP SME Support


Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nikunj Prajapati,

Kindly help to provide the HTTP request and JSON format which you are using to update the Sales Order.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

Former Member

hi,

I am using WCF Code instead of Payload.

sample code:-

SalesOrder = currentServiceContainer.Orders.Where(cursor => cursor.DocEntry == 88365).SingleOrDefault();
SalesOrder.Comments = "Change it";
currentServiceContainer.UpdateObject(SalesOrder);
currentServiceContainer.SaveChanges();


In case of creating any new orders, system allows me but if i will try to update same via above mentioned code then system restrict me with "Internal Error Occurred" error message.

(Note:- Sales order is open)

Hope for positive response!

Thanks,

Nikunj P.

0 Kudos

Dear Expert ,

Thanks Advance, Now I am trying the scenario for updating Existing sales Quotation line items using Service Layer WCF. But I am facing the below error.

InnerException = "{\n \"error\" : {\n \"code\" : -5002,\n \"message\" : {\n \"lang\" : \"en-us\",\n \"value\" : \"Internal error (-5002) occurred\"\n }\n }\n}\n"

Note: There is only one line item in sales quotation and their Quantity is 5 . Now i want to change the UOM and Quantity of the same line item. Please do the needful asap.