Application Development 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: 

Exception CX_SY_NO_HANDLER triggered An exception with the type CX_AMDP_RESULT_TABLE_ERROR occured

Ganesh_Pandian
Explorer
0 Kudos

Hello experts .

i want to do a calculation in AMDP , but i Know  that AMDP does not support Function modules , so i try to implement the function module logic in AMDP , so i need to do some calculation to achieve that , so when i try to use a sum statement to add two field values and to get the result in a variable but when i try to do use the sum and execute it , it runs for a long time and throws a error message in a pop up

plese tell me a solution for this

2 REPLIES 2

christian_seitel
Participant
0 Kudos

Hi,

please add the clause 'raising CX_AMDP_EXECUTION_ERROR' to the definition of your AMDP. Then I guess in the pop-up the text of the exception 'CX_AMDP_RESULT_TABLE_ERROR' should be displayed providing more details (hopefully).

amol_samte
Contributor
0 Kudos

Hi Ganesh,

If you catch the exception it will be more helpful for you.

Declaration Part :

CLASS-METHODS : get_data

      IMPORTING VALUE(ip_begda)        TYPE char8

                VALUE(ip_endda)        TYPE char8

      EXPORTING VALUE(et_out)       TYPE gt_out

      RAISING   cx_amdp_error.

Implementation Part:

TRY.
          CALL METHOD zcl_dbp=>get_data
            EXPORTING
              ip_begda  = lw_begda
              ip_endda  = lw_endda
            IMPORTING
              et_out = gt_out.


        CATCH cx_amdp_error INTO DATA(lt_amdp_error).
          lw_text = lt_amdp_error->sql_message.
      ENDTRY.

Note : In lt_amdp_error- you can get more information

-Amol S