Hi guys,
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:
WHEN 'DP'.
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:
METHOD if_ex_acc_document~change.
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'.
ENDLOOP.
ENDIF.
ENDIF.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |