Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Classes may be defined within a local definition include

itslahcen
Explorer
0 Kudos
1,193

Hey Experts,

I had this error ( Classes may be defined within a local definition include, but not implemented. Th implemenetations must be executed in the local implemenetation include. include be made in the local implementation inlucde) in the local test classes in Global class(t-code se24).

Ps : I was copying a globass class from a system to another system.

how I could solve it?

Thanks in advance.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos
1,012

A class pool (global class) may contain local classes. A class (whatever it's local or global) has 2 parts, the definition and the implementation.

You are missing the definition.

itslahcen
Explorer
0 Kudos
1,012

Hey Sandra,

firstly thanks for ur answer, I did the 2 parts definition an implementation.

FredericGirod
Active Contributor
0 Kudos
1,012

But where did you set this code ? If you are in a global class, did you use the include dedicated for the test ?

itslahcen
Explorer
0 Kudos
1,012

Hey,

I set the code in Local types, there I write the definition and the implementation of local classes as in the original global class.

Because in the original global class there're two fields, 1) Local definitions/ implementation and 2) Local test classes, the problem in the second one.

I copied the both fields, or I should copy just the Local definitions/implementation and after that implement the methodes?

thanks in advance.