Skip to Content

Looking for static check for CALL FUNCTION with missing classic exceptions

Hello experts,

Do you know if there's a static check (SLIN/SCI) for detecting missing classic exceptions in CALL FUNCTION? Or is there a reason it shouldn't be detected? Or is there an option to detect these? I'd also like that the non-presence of system_failure and communication_failure is detected for RFC calls, and so on)

Thanks a lot

Example code, for which I get none static check message about ID or OTHERS missing:

 DATA id TYPE ttxid-tdid.
 DATA object TYPE ttxid-tdobject.

 CALL FUNCTION 'CHECK_TEXT_ID'
   EXPORTING
     id = id
     object = object
*   EXCEPTIONS
*     ID = 1
*     OTHERS = 2
 .
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 27, 2017 at 07:31 AM

    I was deeply convinced that we have this basic check in SLIN.

    Now I'm deeply shocked, because we havn't.

    Brought it to the attention of the SLIN guys.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 24, 2017 at 09:55 PM

    You could write a custom application to show which have missing exceptions

    Using tables: TFDIR ( to get all the function module names) and FUPARAREF to see if PARAMTYPE is missing an X entry

    Add comment
    10|10000 characters needed characters exceeded

    • Yes, I am surprised by that also since it is easy to check statically against the function interface. Especially knowing that such a practice would result in a short dump anytime the system raises a classic exception at runtime!