Skip to Content
2
May 06, 2019 at 09:19 AM

No ADT quick assistant suggestion "add raising declaration" for RAISE EXCEPTION with method call

238 Views

Hello,

In the following code, the quick assistant does a few suggestions to add "TRY" or "RAISING":

CLASS lcl_app DEFINITION.
  PUBLIC SECTION.
    METHODS test.
    METHODS get_operation RETURNING VALUE(text) TYPE string.
ENDCLASS.
CLASS lcl_app IMPLEMENTATION.
  METHOD test.
    RAISE EXCEPTION TYPE cx_sy_zerodivide
      EXPORTING
        operation = 'get_operation( )'. " ADT quick assistant suggestions OK
  ENDMETHOD.
  METHOD get_operation.
  ENDMETHOD.
ENDCLASS.

But if I change the code to that:

    RAISE EXCEPTION TYPE cx_sy_zerodivide
      EXPORTING
        operation = get_operation( ). " ADT quick assistant suggestions KO

Then I get "No suggestions available":

My ADT version is 3.0.5 and Eclipse 2018-12.

Any idea?

Thanks a lot.