cancel
Showing results for 
Search instead for 
Did you mean: 

raising cx_amdp_error

Former Member
0 Kudos

Hi

I am defining a method like this

METHODS retv_proj_rep

    IMPORTING

        value(iv_com)   TYPE bsik-bukrs

        value(iv_lifnr)  TYPE mseg-lifnr

      EXPORTING

        VALUE(et_proj_rep) TYPE tt_prj_rep

     RAISING cx_amdp_error.

It is throwing an error

Any help on this would be useful.

Thanks and regards

Arun Kumar Menon

Accepted Solutions (1)

Accepted Solutions (1)

jasmin_gruschke
Product and Topic Expert
Product and Topic Expert

Hi Arun,
which SAP_BASIS release are you working on?
That exception is available as of 740 support package 8 (and higher).
Cheers,
  Jasmin

Former Member
0 Kudos

hi jasmin

Thank you for the reply

SAP_BASIS is 740 support pack7..

Any work around for this.

Thanks and regards

Arun

jasmin_gruschke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Arun,
the only "work around" is an upgrade :-). Sorry, no, the functionality was introduced with 740 SP8 (including dependencies to the ABAP kernel), so unfortunately no workaround available.
Cheers,
  Jasmin

Answers (2)

Answers (2)

sreehari_vpillai
Active Contributor
0 Kudos

May be you can think of procedure proxies.

sree

amol_samte
Contributor
0 Kudos

Hi Arun,

Basically we can catch exception in below way,

Try.

METHODS retv_proj_rep

    IMPORTING

        value(iv_com)   TYPE bsik-bukrs

        value(iv_lifnr)  TYPE mseg-lifnr

      EXPORTING

        VALUE(et_proj_rep) TYPE tt_prj_rep

Catch cx_amdp_error into data(lw_amdp_error).

endtry.

-Amol