cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Standard Error Message

abhradeepbasu
Participant
0 Kudos

Dear Experts,

I have requirement to change some of standard messages displayed in mdg supplier process.

Where can I quickly find and change these messages.

Regards,

Abhradeep

Accepted Solutions (1)

Accepted Solutions (1)

benjamin_allsopp
Active Participant
0 Kudos

Do you mean to change the content of the message permanently?

If so, it's not advised to change standard SAP but:

  • if you go to SE91 (message Maintenance).
  • Input message class for the message you want to change e.g. USMD_CR
  • Click change (you will get a warning about changing data in foreign namespaces)
  • Modify whichever message you need to

Answers (2)

Answers (2)

abhradeepbasu
Participant
0 Kudos

Thanks for your valuable input.

Please have a look at the below error message which doesn't look good from end user's perspective. Can you please help?

former_member209780
Active Participant
0 Kudos

Hi Abhradeep,

It doesn't look like a standard error. Place your cursor on the error message it will show you the message class and message number in the tooltip box. From there you can try to track it.

Thanks

Goutham

abhradeepbasu
Participant
0 Kudos

Yes, it shows : USMD_GENERIC_GENIL_001

benjamin_allsopp
Active Participant
0 Kudos

If you use SE91 to go to this message and click where used you will find that this message is used in Class CL_MDG_BS_GENIL Method IS_INCOMPLETE_KEY.

You could try enhancing this to look for the Description of the Data element instead of the technical name it is currently providing?

You would want  modify the system message to have the field description after SAP standard has done it's work.

former_member209780
Active Participant
0 Kudos

Assuming these are standard data elements which have descriptions, please check if you gave description for these attributes/relationships in you data model. If not you can give a description and try. If that doesn't work you can see if these error messages are coming from the feeder class  GET_DATA method of the UIBB and make an enhancement to replace that error message. Or alternatively you can raise a ticket with SAP

Thanks

Goutham

former_member209780
Active Participant
0 Kudos

Hi Abhradeep,

It is not recommended to modify the standard messages, because they are reuse checks which are also used in XK01/XK02 transactions and everywhere in the system.  To modify the messages you have to create your own message class with custom messages, replace the messages in CHECK_DATA method of your access class by creating a post-exit enhancement.

But altering the standard messages is not recommended unless it is really necessary.

Thanks

Goutham