Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

getting error in bapi BAPI_ACC_DOCUMENT_REV_POST

Hi Experts,

  I am getting error while applying BAPI: BAPI_ACC_DOCUMENT_REV_POST.

  kindly guide me.

Errors:--

ERW609Error in document: BKPF 00400000000110002012 MEDCLNT200
ERW632Document BKPF 00400000000110002012 MEDCLNT200 cannot be reversed
ERW628Incorrect entry in field OBJ_TYPE: BKPF

  Code i have been written for this are as follows:----

rev-obj_type = 'BKPF'.

rev-obj_key = '00400000000110002012'.

rev-obj_key_r = '00400000000110002012'.

rev-obj_sys = 'MEDCLNT200'.

rev-reason_rev = '01'.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'

   EXPORTING

     reversal = rev

     bus_act  = 'RFBU'

   IMPORTING

     obj_type = gv_obj_type

     obj_key  = gv_obj_key

     obj_sys  = gv_obj_sys

   TABLES

     return   = gt_return.

Regards,

Rishi

Former Member
Not what you were looking for? View more on this topic or Ask a question