Skip to Content
Author's profile photo Sankara Bhatta

When where used list for messages does not work in SRM

The most common thing we developers do when encountered an error message on SRM webui is to go to T100 table and search for message class and message number for the particular message. Once we have the details, we go to SE91 and do a where used list and figure out the places where this message is used, then start debugging. But what’s the fun if life is so easy 😉

In SRM 7.0, sometimes we end up in a situation where we know the message id and message number, but when we do a where used list of the message from SE91, we don’t get any hits. In those situations we usually start debugging from the point where we are 100% sure that the control comes to ( like doc_change_badi or doc_check_badi etc.,) and then move further step-by-step till we find this elusive message id and message number.

I have couple of tricks that I learned during my struggle with SRM issues that I would like to share them here

– FM BBP_PD_MSG_ADD

SAP uses this FM often to add messages to a global messages table during document creation/ update. So put a external / session break point inside this FM and execute the relevant scenario form SRM webui

– Class /SAPSRM/CL_PDO_MSG and methods /SAPSRM/IF_PDO_MSG_PROVIDER~ADD_MESSAGES or /SAPSRM/IF_PDO_MSG_PROVIDER~ADD_MESSAGE_STATIC

This class is heavily used SRM 7 to handle messages. Put a external / session break point inside above mentioned methods and execute the relevant scenario

Recently both of my above tricks did not work unfortunately  for message 658 of class BBP_PD. The consequence of that unfortunate event was a 2 hour long laborious debugging session and finally I found that I have another trick up my sleeve

– Class /SAPPSSRM/CL_MESSAGE method CREATE

Same thing goes for this as well. Put a break point inside CREATE method and start executing the relevant scenario.

Here is one more class where messages can be added:

/SAPSRM/CL_CH_WD_MSG_BUFFER (Method ADD_MESSAGES)

Hope this helps other developers

Keep blogging and  Have a nice day 🙂

Assigned Tags

      11 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Too good cheat methods man... Quite helpful in tackling different type of messages. We also use either FM or class but still we made a standard in our project that you will be using if 1 EQ 2. message details. endif.

      This help a lot in tackling message in the custom code.

      Author's profile photo Sankara Bhatta
      Sankara Bhatta
      Blog Post Author

      Hi Siddarth,

      Thanks for the comment.

      Author's profile photo Former Member
      Former Member

      Very luck to see this article when I am working on a SRM project , Really helpful.

      Author's profile photo Sankara Bhatta
      Sankara Bhatta
      Blog Post Author

      I am glad that you found this blog 🙂 have a nice day

      Author's profile photo Siva Rama Krishna Kukkala
      Siva Rama Krishna Kukkala

      Very nice. Thank you.

      Author's profile photo Siva Rama Krishna Kukkala
      Siva Rama Krishna Kukkala

      Very nice. Thank you.

      Author's profile photo Former Member
      Former Member

      Hello Sankara,

      I'm having trouble tracking BBP_PD 658 and I see you mentioned it in your blog.
      Could you, please, help explain the source of this error.

      Thanks in advance.
       

      Author's profile photo Sankara Bhatta
      Sankara Bhatta
      Blog Post Author

      Hi,

      keep break point here Class /SAPPSSRM/CL_MESSAGE method CREATE

      Author's profile photo Former Member
      Former Member

      Hi Sankara,

      Thank you very much for your help,
      I found the source code where the error is built.

      Author's profile photo Alexey Demin
      Alexey Demin

      Hello colleagues,

       

      here is one more class where messages can be added:

      /SAPSRM/CL_CH_WD_MSG_BUFFER (Method ADD_MESSAGES).

       

      I found it while struggling with error message /SAPSRM/PDO_CONF 094.

      Author's profile photo Sankara Bhatta
      Sankara Bhatta
      Blog Post Author

      Hi Demin,

       

      Thanks for the update. I have added the details to the blog