Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

AMDP Error Handling

Former Member
4,535

Hello All,

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.

3 REPLIES 3
Read only

rolf_hammer
Associate
Associate
2,156

You can call get_longtext to get more but unstructured information. However, you won't get the same level of information as in an ST22 dump as you don't get it for other ABAP exceptions.

Read only

0 Likes
2,156

Tx for your input.

I did a mistake in my code. I was capturing CX_ROOT exception, instead i should have used CX_AMDP_ERROR.

When i change to AMDP error, the expected details are coming in GET_TEXT Method.

Read only

former_member235395
Contributor
0 Likes
2,156

Hi Maneesh,

Try using SM21 tcode.

Regards,