on 2018 Nov 30 12:18 PM
Hi,
I am trying to update sales order through DI API and getting error below error.
Error Code : -5002
Error Description: You cannot modify a freight charges row that is already closed [RDR3.Stock][line: 0]
below code used for update sales order.
Documents oDocuments = (Documents)oCompany.GetBusinessObject(BoObjectTypes.oOrders);
oDocuments.GetByKey(417);
oDocuments.UserFields.Fields.Item("U_Shipping").Value = "UPS";
int ret = oDocuments.Update();
Same operation I can do from SAP UI.
Please let me know, is there any way to update sales order in case order closed.
Thanks,
You can only modify Sales Order Header fields.
the Freight object (child object of the Sales Order) cannot be modified when the Sales Order has status closed
regards, Sotos Soteriou
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
9 | |
7 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.