Skip to Content
0
May 14, 2020 at 10:50 PM

Change email text "Notification" for PO after SC approved

157 Views

Hi Abapers,

I spent too much time to find solution for change email text for PO once shopping cart approved, when I looked for solution I found some hints for that but does not working with me, proposed solution using this badi (BBP_OUTPUT_CHANGE_SF). from this body I have changed notification of shopping cart based on object type as you can see code in down, but for PO I can't get object type for PO.

CASE iv_object_type.

*
      WHEN 'BUS2121'. " Shooping cart

*
        IF ev_decision EQ 'APPROVED'.
          IF cv_smartform_mail = 'BBP_OUT_EXCEPTION'.

            cv_smartform_mail = 'ZBBP_OUT_EXCEPTION'.
          ENDIF.
        ENDIF.
        IF ev_decision EQ 'REJECTED'.

          IF cv_smartform_mail = 'BBP_OUT_EXCEPTION'.

            cv_smartform_mail = 'ZBBP_OUT_EXCEPTION_REJ_SC'.

          ENDIF.

        ENDIF.

      WHEN 'BUS2201'.
         IF cv_smartform_mail = 'BBP_OUTPUT_COVER'.

          cv_smartform_mail = 'BBP_OUTPUT_COVER_TST'.
        ENDIF.
    ENDCASE.

So, please how we can use this badi to change PO notification or is there any other solution?

Thanks