SAP CRM has already taken considerable steps to come closer to the users with its web user interface. On the other hand, it has also become consultant friendly by providing certain functionalities through customizing and avoiding the necessity to code. One such feature is Message Replacement Functionality.
This functionality enables the functional analyst to replace the standard message text for an error, warning or information message with a custom message as desired by the business users. This process is pretty simple and straight forward and is explained in the below steps:
Step 1: Find out the message id and message class for the standard message that has to be replaced
To find out the message class and ID of the standard message in webUI:
Add the parameter BSPWD_USER_LEVEL with parameter value as 9 in Tcode SU3.
or
Put conditional breakpoint at UI Framework --> Create Text Message. This will break whenever a message is raised. Make a note of the Message Class and Message ID.
Follow this blog, point 2 if you are new to using Conditional Break points.
http://sapcrmweblog.blogspot.com/2011/01/debugging-crm-webclient.html
Step2: Create a Z Message Class and Message ID
In Tcode SE91, create a custom message class and message ID with the required long text
Step3: Define a Message Replacement Profile
Follow the IMG path Customer Relationship Management --> UI Framework --> UI Framework Definition Execute the node "Define messages to be replaced"
Here define a new Message Replacement Profile. Select the newly defined entry and double click on Message Replacement folder in the left side pane. Create a new entry here and enter the values of the standard message class and id and the replacing class and ID (custom message class and ID defined in step 2.
Step 4: Assign Function Profile MSG_REPLACE in the business role
Access the business role using the TCode CRMC_UI_PROFILE.
Choose the business role for which message replacement has to happen.
Double click on "Assign Function Profiles" in the left side pane.
Assign the function profile MSG_REPLACE with the name of the profile defined in step 3.
Step 5:Output
Based on the setting made in the previous step standard message AM 219 will be replaced with the custom message. This can be observed in the below screenshot
This functionality enables the functional analyst to replace the standard message text for an error, warning or information message with a custom message as desired by the business users. This process is pretty simple and straight forward and is explained in the below steps:
Step 1: Find out the message id and message class for the standard message that has to be replaced
To find out the message class and ID of the standard message in webUI:
Add the parameter BSPWD_USER_LEVEL with parameter value as 9 in Tcode SU3.
or
Put conditional breakpoint at UI Framework --> Create Text Message. This will break whenever a message is raised. Make a note of the Message Class and Message ID.
Follow this blog, point 2 if you are new to using Conditional Break points.
http://sapcrmweblog.blogspot.com/2011/01/debugging-crm-webclient.html
Step2: Create a Z Message Class and Message ID
In Tcode SE91, create a custom message class and message ID with the required long text
Step3: Define a Message Replacement Profile
Follow the IMG path Customer Relationship Management --> UI Framework --> UI Framework Definition Execute the node "Define messages to be replaced"
Here define a new Message Replacement Profile. Select the newly defined entry and double click on Message Replacement folder in the left side pane. Create a new entry here and enter the values of the standard message class and id and the replacing class and ID (custom message class and ID defined in step 2.
| Figure1: Message Replacement Profile |
Access the business role using the TCode CRMC_UI_PROFILE.
Choose the business role for which message replacement has to happen.
Double click on "Assign Function Profiles" in the left side pane.
Assign the function profile MSG_REPLACE with the name of the profile defined in step 3.
| Figure 2: Assigning Function Profile to Business Role |
Based on the setting made in the previous step standard message AM 219 will be replaced with the custom message. This can be observed in the below screenshot
| Figure 3: Standard message is replaced with custom message |