Hi Coskun,
Glad it was helpful to you.
Be aware that Rocancel = R if document is deleted in source system, so you should also adapt the field routine for that case.
Long term solution, if possible, would be reactivating the standard datasource.
Regards,
Miguel Varela