Just a tip about this posting where I was having some doubts why the post was not going through the BADI.
If the post is a Down payment request or a Noted item, you must complement the BAPI_ACC_DOCUMENT_POST using:
ls_bapiache09–obj_type = ‘BKPFF’.
ls_extension2–structure = space.
ls_extension2–valuepart1 = ‘BUS_ACT’.
ls_extension2–valuepart2 = ‘RFST’.
Implement the BADI_ACC_DOCUMENT:
The BADI_ACC_DOCUMENT has to have the following filter:
And the Method CHANGE should be like:
FIELD-SYMBOLS <accit> TYPE accit.
DATA ls_extension2 TYPE bapiparex.
IF c_extension2 IS NOT INITIAL.
READ TABLE c_extension2 INDEX 1 INTO ls_extension2.
IF ls_extension2–valuepart1 = ‘BUS_ACT’ AND ls_extension2–valuepart2 = ‘RFST’.
c_acchd–glvor = ‘RFST’.
LOOP AT c_accit ASSIGNING <accit>.
<accit>–bstat = ‘S’.