In the SAP CRM GUI,it is easy to get the Message Class and Message Number for any error. However, for the errors encountered in SAP CRM WebUI interface, you can not directly get the message class and message numbers. Here is a quick tip of how to do that.
1) Put a breakpoint in CL_CRM_GENIL_GLOBAL_MESS_CONT, method IF_GENIL_MESSAGE_CONTAINER~GET_MESSAGES. This break point is encountered every time a message is raised.
2) Perform the action of the UI that throws the error for which you need to find out the message class and message id.
3) When debugger stops at the above set break point, check the contents of ET_MESSAGES
4) Here field ID gives the Message Class and Number field gives the message number.
1) Put a breakpoint in CL_CRM_GENIL_GLOBAL_MESS_CONT, method IF_GENIL_MESSAGE_CONTAINER~GET_MESSAGES. This break point is encountered every time a message is raised.
2) Perform the action of the UI that throws the error for which you need to find out the message class and message id.
3) When debugger stops at the above set break point, check the contents of ET_MESSAGES
4) Here field ID gives the Message Class and Number field gives the message number.