on 2022 Feb 01 9:56 AM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 29 | |
| 14 | |
| 14 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.