‎2008 Jul 16 9:49 PM
Hi all,
I have a class(Class Z_CL_A) with attribute 'G_myattribute' and with
1. constructor importing 'L_myattribute'.
2. method 'my_method' exporting table 'EXP_mytable' type 'mytable_type'
There are no syntax errors in 1 & 2.But when I try to activate the class,it says 'implementation missing for method "Constructor".
Here is my class:
________________________________________
class Z_CL_A definition
public
create public .
" public components of class Z_CL_A
" do not include other source files here!!!
public section.
data G_myattribute type myattribute_type .
methods CONSTRUCTOR
importing
L_myattribute type myattribute_type .
methods MY_METHOD
exporting
!EXP_mytable type mytable_type .
________________________________________
Please let me know what is missing in the class
Thanks
Kukku
‎2008 Jul 16 9:52 PM
You have defined a class with variables and methods but what about implementation. Every class should have a definition and an implementation part.
class Z_CL_A implementation
methods CONSTRUCTOR
importing L_myattribute type myattribute_type .
*Put your code here.*
end method.
methods MY_METHOD
exporting !EXP_mytable type mytable_type .
*Put your code here.*
End method.
Edited by: Naren K Someneni on Jul 16, 2008 3:52 PM
‎2008 Jul 16 9:52 PM
You have defined a class with variables and methods but what about implementation. Every class should have a definition and an implementation part.
class Z_CL_A implementation
methods CONSTRUCTOR
importing L_myattribute type myattribute_type .
*Put your code here.*
end method.
methods MY_METHOD
exporting !EXP_mytable type mytable_type .
*Put your code here.*
End method.
Edited by: Naren K Someneni on Jul 16, 2008 3:52 PM
‎2008 Jul 16 10:10 PM
I tried it in the specified way, but getting error : error scanning section.
Thanks
Kukku
‎2008 Jul 16 10:28 PM