Skip to Content
avatar image
Former Member

AMDP Error Handling

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 06, 2017 at 02:08 PM

    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.

    Add comment
    10|10000 characters needed 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.

  • Jun 06, 2017 at 04:18 PM
    -1

    Hi Maneesh,

    Try using SM21 tcode.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded