cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined constructor and model nodes

Former Member
0 Kudos

Hi all !!

I have one custom controller SolicitudesViaje for which its internal counterpart InternalSolicitudesViaje.java says: "The constructor SolicitudesViaje(IPrivateSolicitudesViaje) is undefined"

The code inside the internal class where the problem is shown are the following lines:

/**

  • Creates a new instance of this controller.

*/

public InternalSolicitudesViaje(com.sap.tc.webdynpro.progmodel.gci.IGCICustomController alterEgo) {

this.wdAlterEgo = alterEgo;

wdInitContextNode();

this.delegate = new SolicitudesViaje((IPrivateSolicitudesViaje) this); //***** This is the line with the problem

}

Another related problem is that my custom controller (SolicitudesViaje again) doesn't recognize the model nodes I have in it. But the other nodes are ok.

I've tried to rebuild the project with no success. Can anyone help??

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Alejandro,

Try this.

1)Close the project in studio

2)delete gen_wdp folder for this project

3)open the project

4)do a "reload+rebuild" of the project.

That should help.

Rajit

Former Member
0 Kudos

My problem is not getting solved.

Even i have the same problem.

I am trying to intantiate the model node in component controller.

It says constructor is undefined.

What is the problem ?

Regards

Bala

Former Member
0 Kudos

Try to recreate the context from scratch!

Sometimes it happened to me again and I corrected the error like that. (Sometimes a bapi's parameter change was the problem)

Hope it helps

Answers (1)

Answers (1)

Former Member
0 Kudos

That was the solution!! thank you!!