cancel
Showing results for 
Search instead for 
Did you mean: 

access an interface node : the mapping has not been completed

Former Member
0 Kudos

Hello all,

by getting an element of interface-node within a component I get follow error message

"the mapping to node COMPONENTCONTROLLER.1.INIT_DATA" has not been completed"

Can anybody say me, what does it mean?

Some more information (in case for somebody need it):

1. I have a component A, where I have defined usage component of component B.

2. Component B has an interface node INIT_DATA, which is mapped with the node INIT_DATA of component A.

3. I set attributes of node INIT_DATA of component A and expect, that those values will be assigned to the node INIT_DATA of component B (becouse they are mapped)

4. by doing it within a component A:

lo_node = wd_context->get_child_node( name = if_componentcontroller->wdctx=>init_data).

lo_elem->get_element( ).

lo_elem->set_attribute(....).

I get this error message:

"the mapping to node COMPONENTCONTROLLER.1.INIT_DATA" has not been completed"

Please let me know, what I do wrong?

thanks in advance

Anna

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anna,

You should not be having the node INIT_DATA defined separately in both components. It should be defined only in component B and marked as Interface node. Now when you define a usage of component B in component A, you will be able to see this node. You need to map this in component A by drag and drop.

Also, in the properties tab of the component controller of component A, declare the usage of component B using the F4 help. I think that should solve your problem.

Regards

Nithya

Former Member
0 Kudos

thank you for your answer,.

we've already solved this problem:

you have to define a mapping in component usage and not in componentcontroller, how I did it.