Hello,
I found out that in order to cancel a sales document with reversal i need to:
1. Create new document with cancelling SERIES, FINDOC.ISCANCEL=0 and FINDOC.ORIGIN=6 - This works fine. I am using SetData on SALDOC object and no KEY.
2. Update the first document with FINDOC.FINDOCS = the id from previous step, and FINDOC.ISCANCEL=2. - This doesn't work. I am using SetData on SALDOC with KEY=id from first step.
FINDOCS is updated correctly, but ISCANCEL is not updated.
I need to set FINDOC.ISCANCEL to be 2. Is to possible via the webservice , or should I update it directly in the database ?