cancel
Showing results for 
Search instead for 
Did you mean: 

External Mapping and Component-Interface

Former Member
0 Kudos

Hello,

I wanted to refere to all subcomponents via component interface in order to change the implementation dynamicaly. But i can not define an external mapping in context of component interface, it is not aktiv. Does it make sense?

Thanks

Ragards

Paul

Accepted Solutions (1)

Accepted Solutions (1)

shwetars
Advisor
Advisor
0 Kudos

Hi Paul,

Have u declared interface nodes?

Regards,

Shweta

Former Member
0 Kudos

>Hi Paul,

>Have u declared interface nodes?

>Regards,

>Shweta

Yes. Node has only obligatory property "interface node". But not "Input Element (Ext.)"

Regards

Paul

shwetars
Advisor
Advisor
0 Kudos

Hi Paul,

If i understand you rightly, you have a component A and u r trying to use a no of other components may be B, C, D etc and the contexts of these components are not available for external mapping.

just make sure you have defined the component usages properly and secondly the controller usages( both within comp A ) and thirdly the nodes in the sub components are marked as interface nodes.

Regards,

Shweta

Former Member
0 Kudos

Hi Shweta ,

i have a component A and component interface A_IF. Component usage is definied for A_IF. A_IF is implemented by B, C, D. During runtime i want assign B, C or D to instance of A_IF in main component A.

Problem is, that context of A_IF can not be set for external mapping.

Regards,

Paul

shwetars
Advisor
Advisor
0 Kudos

Hi Paul,

I dont understand how can you can define a comp usage for the interface, you can define it only for the component.

its not the context of A tht needs to be available for mapping, its contexts of B, C, D that needs to be available for mapping.

We are using B C D within A. I think this is where u r mistaken.

Regards,

Shweta

Former Member
0 Kudos

Hi,

Does it mean, it is not possible in WD ABAP to define mapping to B and during runtime to replace B with C or D?

Regards

Paul

Former Member
0 Kudos

Hi Paul.

Sure it works. You can define a usage of an interface component and during runtime create any component for that usage that implements the interface component.

But I am not sure with external mapping.

I will check this here.

Cheers,

Sascha

Former Member
0 Kudos

Hi Paul.

I tried it here and it seems to work:

1. Define the interface component with context node (Input Element Externl)

2. Create a component which defines a usage to the interface component

3. Go to the component usages folder and open it.

4. Right click on the usage you just created and choose Create controller

usage.

5. Double click the interfacecontroller_usage you just created.

6. Here you can add a controller usage using the button at the top.

7. Now you should be able to define the external mapping by dragging the node of

the component controller to the interfacecontroller_usage node.

Hope this helps.

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey

Former Member
0 Kudos

Hi Paul,

Do you fix the problem? I am face the same situation.

Thanks,

Best Regards,

Guo Guo Qing

Answers (0)