cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping error with ModelNode

Former Member
0 Kudos

Hi all,

I have this error when I execute my application:

com.sap.tc.webdynpro.progmodel.context.ContextException: NodeInfo(GetCostsView): cannot modify Userid because it is mapped and there is no active NodeElement to take the value

I have a Custom controller with this structure:

NodeGetCosts(ModelNode)

-NodeOutput (ModelNode)

-UserId (ModelAttribute)

I have mapped it to context of View01:

-NodeOutput(ModelNode)

-UserId(ModelAttribute)

In doInit method of custom controller I usu this code:

NodeGetCosts input = new NodeGetCosts();

wdContext.NodeGetCosts().bind(input);

try { wdContext.currentNodeGetCosts().modelObject().execute();

wdContext.nodeOutput().invalidate();

} catch (WDDynamicRFCExecuteException e) {

}

What can I do?

Thanks

Andrea

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Andrea,

Try to map the whole context structure from the CC to your view.

I think you missed out mapping of the parent node <b>NodeGetCosts(ModelNode)</b>.

If the RFC requires some input like <i>UserId</i> specify the value for that attribute as well. Also, try

to execute the same code from the CC's init.

This should solve your problem.

<i>Please reward appropriate points</i>

Bala