I had written couple of AMDP methods based on client requirement & to prevent the program from dumping due to an error in AMDP, i am catching those exception & using get_text method to get the error description.
In one of my case i get an exception message like "Error While Executing a database Procedure". In case of multiple method, its hard to find what were the error is.
I changed my program & made it to dump. When i checked in ST22, under error analysis part, sap is giving details explanation.
When exception is caught, dump table will not get updated, so cant get the data from it. I did a POC no luck. Is there any way to get detail explanation like st22.