cancel
Showing results for 
Search instead for 
Did you mean: 

class removes always the implements statement

Former Member
0 Kudos

Hi All!

I want to add the "implements Cloneable" Statement to a class.

This classe ist created automatically thorugh creating a model.

This statement is removed always. How can I add this expansion.

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You are modifying generated code. This code is regenerated everytime you perform a build. Therefore it's not possible to make these kind of modifications. In Web Dynpro development you can only change code between lines with //@@begin and //@@end.

Answers (5)

Answers (5)

Former Member
0 Kudos

It is a model class

ThatSAPGuy
Advisor
Advisor
0 Kudos

Sas-

I would not recommend you altering the model classes in any way. Model objects allow you to interact with SAP RFCs through the CMI interface. Any changes to these model classes will be lost on reload, and will also yeild to unpredictable results.

Cheers-

Atul

Former Member
0 Kudos

that means I con't make a class Clonable

Regards

sas

ThatSAPGuy
Advisor
Advisor
0 Kudos

Sas-

Which class are you talking about? Is it one of the controllers? If so it will not be possible to make it clonable.

Cheers-

Atul

Former Member
0 Kudos

Hi,

execuse me but I don't understand what you mean ?

regards

sas

Former Member
0 Kudos

Hi,

In my knowledge It is not possible to implement the model class, correct me If I am wrong.

But You can Add new java file to the project and implement it.

Regards,

Kiran Yadav

Former Member
0 Kudos

Hi,

Try to extend from the class and then implement .

Regards

Ayyapparaj