Skip to Content
0

How to Update Sales order using Service layer via WCF.

Apr 16 at 01:44 PM

31

avatar image
Former Member

Hi,

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

i am facing Internal Error (-5002).

10 |10000 characters needed characters left characters exceeded

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


0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

ANKIT CHAUHAN
Apr 16 at 01:54 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
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