Skip to Content
0
Jun 29, 2012 at 08:00 AM

Local exception class in global class

1200 Views

Hi,

in SE24, tab "local types", the comment given by SAP says:

*"* use this source file for any type declarations (class
*"* definitions, interfaces or data types) you need for method
*"* implementation or private method's signature

Now I've defined a local exception class in this tab:

CLASS lcx_my_exception DEFINITION INHERITING FROM cx_static_check.

ENDCLASS.

So far no error occurs.

But when trying to use it in the signature of a private! class, it is not known and I'm asked wether I like to create it as a global exception class.

Why isn't the exception class recognized?

My mistake or a bug?

Regards,

Dirk