cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate instances of a component usage

Former Member
0 Kudos

Hi Guys,

I have a Backend component where I have the main context with a lot of nodes.  When I want to use and initialize this component usage I have not problems. However, when I want to load an aditional component that also load this Backend component, I have two instances. So I have three components C1, C2, C3 and I want to to load (-->) them in an Application as follows:

  • C2-->C1
  • C3-->C1
  • C3-->C2

In this case I have two instances of C1 and I need only one.

So, How could I solve this problem?

Thanks,

Sergio.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Sergio,

Take a look at IF_WD_COMPONENT_USAGE methods...

  • CREATE_COMP_USAGE_OF_SAME_TYPE.
    • This method creates a component usage that refers to the same component. The result is an object of type IF_WD_COMPONENT_USAGE.
  • ENTER_REFERENCING_MODE
    • You can use this method to determine that one component usage refers to a different component usage.

Cheers,

Amy