cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Coding for BBP_MESSAGES_BADI

Julian_Bradler
Explorer
0 Kudos

Hello Everyone,

I want to clear an error message in SRM 7, EhP1, which cannot be suppresse via customizing (BBP_PD / 700). Therefore I am aiming to implement BBP_MESSAGES_BADI.

Unfortunately, it is not documented. Has anyone some sample coding or documentation available?

Thanks and kind regards

Julian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Julian,

I don't think that it is possible to clear out messages in that Badi or in any other Badi.

Have a look at the parameters and you can see that the et_messages paramter is an exporting one so, the standard code expects the badi to process additional messages.

For you purpose there should be a changing paramter,...

So I would suggest you to find where the message was triggered and suppress it via Code Enhancement.

Regards

Stephan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Julian,

you can use the method FILTER_MESSAGES from this Badi and delete unwanted messages from the backend.

Just a small sample which works fine:

IF iv_object_type = 'BUS2205'.
     DELETE ct_return WHERE code = 'KI' AND log_msg_no = '339'.
ENDIF.


Best regards

Joe

laurent_burtaire
Active Contributor
0 Kudos

Hello Julian,

did you try to populate BBPV_PDMSG view in SM30 transaction with message BBP_PD 700 ?

Then, in IMG, customize this message:

SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Message Control > Influence Message Control

Regards.

Laurent.

Former Member
0 Kudos

Hi Julian,

You can write a post exit to

class: /SAPSRM/CL_PDO_BO_*_ADV

method: CHANGE_DOCUMENT

altering co_message_handler.

Regards

Monika