Skip to Content
avatar image
Former Member

How to Update Sales order using Service layer via WCF.

Hi,

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

i am facing Internal Error (-5002).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 16 at 01:54 PM

    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

    Add comment
    10|10000 characters needed 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.