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.
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 | |
| 5 | |
| 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.