We have done some enhancements in the CRM One Order Object standard process. We need to raise some custom error messages under certain error conditions from our code. For that, we are using the standard function module CRM_MESSAGE_COLLECT. The caller_name that we currently pass to it is a standard object (CONFIG) maintained in CRMC_OBJECTS table.
Now, we also want to delete "our" error messages (and not the ones coming from the standard process) when a certain state has been reached. I found function module CRM_MESSAGES_DELETE which could be used for this purpose. But, the problem is that if we pass object 'CONFIG' to it, it would delete all the messages (even the ones that were not raised by our code) belonging to that object.
I also tried passing a key (a random string) to CRM_MESSAGE_COLLECT's import parameter IV_LOGICAL_KEY and then using the same key while calling CRM_MESSAGES_DELETE but it did not work.
One possible solution I see is that we add a custom object to CRMC_OBJECTS and then use that as a handle to "our" error messages. But I don't know what is the standard way of maintaing data in this table. It doesn't have a maintenance view for it and neither could I find any links to it in IMG.
Can anyone help with a solution?
Thanks in advance.