cancel
Showing results for 
Search instead for 
Did you mean: 

Customised error message for incorrect entry in Preferred Vendor

Former Member
0 Kudos

Hi,

I want to throw a customised error message "Vendor XXXX does not exist" if the user enters an incorrect vendor number or vendor name in the preferred vendor under the sources of supply tab while creating a shopping cart, instead of the System message which says "Business Partner XXXX does not exist".

Need your inputs on how to go about it.

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

pedro_santos6
Contributor
0 Kudos

Hi,

How Massa told, try to use BBP_DOC_CHECK_BADI and create a new message in the transaction SE91.

Like this example:


  IF v_VARIABLE NE wa_header-FIELD.

          wa_et_messages-msgty = 'E'. "ERROR
          wa_et_messages-msgid = 'ZSRM'. "CLASS
          wa_et_messages-msgno = '014'. "MESSAGE
          wa_et_messages-item_guid = iv_doc_guid.

          APPEND wa_et_messages TO et_messages.

        ENDIF.

Rgs,

Pedro Marques

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

How about implementing the BBP_DOC_CHECK_BADI ?

Regards,

Masa