I have an ABAP line like this:
assert ( cond = 'x' ).
The caller of this RFC function gets a meaningless message that some assertion failed and I would like to supply an additional explanatory text. This way I can easily find the matching line if the customer send me the error message.
How to do this the most simple way in ABAP?
Update: This question focused on assert, but this is the wrong track in ABAP, I wrote a new and better question here: Raise Exception with custom message in ABAP