cancel
Showing results for 
Search instead for 
Did you mean: 

cannot create nodes, no mapping defined yet - Model node not mapped

Former Member
0 Kudos

hi ,

I have the following scenario:

we have a model node in the component interface.This is supposed ot be an input to a RFC in a used component.

Data for this node comes from a view. The view also has a model node.

I try to create a new controller model node in view and assign values to my view node.

when it try to set the value in the view, i get the following error:

" com.sap.tc.webdynpro.progmodel.context.ContextException: MappedNodeInfo(<>CompInterface.<>): cannot create nodes, no mapping defined yet

"

I use the following code:

wdThis.wdGet<>CompInterfaceController().wdGetContext().create<>Element(new Is_Context());

IPrivate<>View.I<>Element ifcd = wdContext.create<>Element(new IS_Context());

ifcd.setAction_Type("1");

BigDecimal bd = new BigDecimal(wdContext.currentContextElement().getReq_amt());

ifcd.setRequired_Amt(bd);

ifcd.setAction_Type("1");

ifcd.setCalculation_Base("1");

ifcd.setPeriod_Type(wdContext.currentHeaderDataElement().getPeriodtype());

Please advise and help.

Asif

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

try changing the cardinality of the node. change it to 1..n and then see.

Regards,

Gita