Enterprise Resource Planning Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member207754
Participant
10,134

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.

6 Comments