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

Type "Class name " is unknown.

0 Kudos
5,026

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.

Accepted Solutions (1)

Accepted Solutions (1)

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.

Answers (1)

Answers (1)

webwolf
Discoverer
0 Kudos

I had the same problem, and I noticed that if you log off and then login the issue is automatically fixed.  I guess if you activate the class  /LPROFILE/ZCL_P2D_KPI in the same session as the consumer class, some kind class name cache is not automatically refreshed.