Skip to Content
1

AMDP Error Handling

May 26, 2017 at 09:35 AM

198

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Rolf Hammer
Jun 06, 2017 at 02:08 PM
1

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0
David Antonio Arroyo León Jun 06, 2017 at 04:18 PM
-1

Hi Maneesh,

Try using SM21 tcode.

Regards,

Share
10 |10000 characters needed characters left characters exceeded