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: 

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

Sandra_Rossi
Active Contributor

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.

1 ACCEPTED SOLUTION

michael_gutfleisch
Active Participant

Hi Sandra,
this should work as you expect. I tried it with your code example and it worked for me, at least in our latest codeline (and recently there has been no development in this area).

Therefore it would be interesting which backend release you're running. (The quickfixes are calculated in the backend).

Regards,
Michael

3 REPLIES 3

michael_gutfleisch
Active Participant

Hi Sandra,
this should work as you expect. I tried it with your code example and it worked for me, at least in our latest codeline (and recently there has been no development in this area).

Therefore it would be interesting which backend release you're running. (The quickfixes are calculated in the backend).

Regards,
Michael

0 Kudos

Thank you for the explanation, Michael. I couldn't find matching SAP notes. My two backends:

  • Trial 7.52 SP 1
  • S/4HANA 7.52 SP 0

michael_gutfleisch
Active Participant
0 Kudos

Hi Sandra,

could you please raise a ticket for this issue.

Regards,
Michael