Application Development 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 : Implementation missing for method 'Constructor'

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

I tried it in the specified way, but getting error : error scanning section.

Thanks

Kukku

0 Kudos

Please paste your code here.