cancel
Showing results for 
Search instead for 
Did you mean: 

Change email text "Notification" for PO after SC approved

Ibrahim_prog
Explorer
0 Kudos
345

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

Accepted Solutions (0)

Answers (2)

Answers (2)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

there is no filter name defined for this BAdI, so your implementation should be called for object type BUS2201 (Purchase Order).

If it is not the case, check for OSS notes or create an OSS message.

Regards.

Laurent.

Former Member
0 Kudos

Hi Ibrahim

Can you pl check the blog I had written sometime back and see if that helps?

https://blogs.sap.com/2017/03/23/emails-and-notifications-in-srm/

The above BADI that you followed should have worked as well for changing the smartform I dont think it is for customizing the email.

Please try above and see if any of the methods listed here works for you?

Regards

Vinita

Ibrahim_prog
Explorer
0 Kudos

Hi Vinita,

thank you for your replay, but that badi its working fine with SC as I searched we can change email text through smartform.

let me check this blog, then I will let you know if its working with me or not.

thank you again Vinita,

Ibrahim_prog
Explorer
0 Kudos

Hi Vinita,

unfortunately, it does not working with me, I got object type for SC not for PO as you can see in Picture>

debugging.png