cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Type "Class name " is unknown.

0 Kudos
5,046

Hi,

I have a local class containing static methods. When I perform a syntax check, every instance where a class method is called, an error is displayed "Type /LPROFILE/ZCL_P2D_KPI is unknown".

This is the method declaration:

Implementation:

Method call:

The error messages displayed:

PS: The class name is used correctly.

Thanks in advance.

View Entire Topic
rajnag
Product and Topic Expert
Product and Topic Expert

Hi Anuj,

In case of the class is declared in another include of the same program and it is not active, you may get this error message.

Make sure you save the class definition and implementation activation first and check this code again. If they are in separate include activate the include alone and try.

0 Kudos

The class was declared in the same program. Now I created another include program and put the class in that and somehow it works. Thanks for this.