cancel
Showing results for 
Search instead for 
Did you mean: 

External component usage with interface node

former_member186783
Participant
0 Kudos

Hi everyone,

I have component A , which has an interface node with Input element checked:

Nodes

Node Name IF_HROBJID

Interface Node 1

Input Element (Ext.) 1

Dictionary structure ZHR_HROBJID_LIST

Cardinality 0..n

I have another component: Component B Where I want to bind a table to this interface node.

In component B :

1. I definied the Componenet Usage of component B in the componenet controller.

2. I drag & drop the IF_HROBJID node to the component controller's context (the node is mapped)

But when I try to bind a table, I always get the " The Mapping to Node COMPONENTCONTROLLER.1.IF_HROBJID Has Not Been Completed. " error.


nd_if_hrobjid = wd_context->path_get_node( path = 'IF_HROBJID' ).
nd_if_hrobjid->bind_table( lt_if_hrobjid ).

Can someone tell me what is the problem, and how can I solve it?

Thanks

N.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Here you are trying to use component A in component B right?

Then what you need to do is:

1. Declare the component usage of A say A_USAGE in properties tab of component B.

2. Create a node say 'DATA' in component controller of component B. The node 'DATA' would have the same structure as the node in your component A.

3. Fill the node 'DATA' in component controller's method.

4. Under your webdynpro component B, you will see Component Usages -> A_USAGE. open interface controller inside that.

Goto context tab and drag the 'DATA' node from component controller of B on to the node in interface controller.

Hope this is clear!

Best Regards,

Srilatha

Answers (2)

Answers (2)

former_member199125
Active Contributor
0 Kudos

hi..

once you check the interface node property, that node will be available in interface controller.from there you have to maintain mapping not from component controller.

So now, in interface controller you wil find IF_HROBJID node, bind to this node from your required node.

Regards

Srinivas

saravanan_narayanan
Active Contributor
0 Kudos

refer this thread

[;

BR, Saravanan