2023 Mar 27 11:42 PM
I have a function group with system generated includes LZ...TOP, and LZ....F01. I created a new include called LZ---E01 to put local classes but when I do that, they are not visible inside the function - I get the "is unknown" error.
If I put the class in LZ....F01 it is also "unknown".
If I put the class in the LZ....TOP it works, but I get a warning... "There should only be definitions in the TOP include".
I do see the new include is added to the "SAPLZ..." function pool and the includes and the "SAPLZ..." are activated.
It only sees classes in the TOP however...
2023 Mar 28 10:28 AM
Here is how it should be done for includes of local classes in function groups.
You must define 2 include programs and the naming convention should be:
LZ...E01 is reserved to the event blocks.
2023 Mar 28 6:33 AM
Why didn't use global class ? (following Clean Code Abap you should use global class)
Did you try to put the definition in top and the implementation if you F01 include ?
2023 Mar 28 10:28 AM
Here is how it should be done for includes of local classes in function groups.
You must define 2 include programs and the naming convention should be:
LZ...E01 is reserved to the event blocks.