Start of Content Area

Procedure documentation Embedding Components  Locate the document in its SAP Library structure

Prerequisites

To embed a Web Dynpro component in another component, you must have created both the embedding (outer) component and the one to be embedded (inner), as described in Creating a Component.

Procedure

To embed a component, proceed as follows:

...

       1.      In the Web Dynpro Explorer, select the subnode This graphic is explained in the accompanying textUsed Web Dynpro Components of the component that is to be the outer, embedding component. In the context menu, choose This graphic is explained in the accompanying textAdd Used Component.

       2.      Make the required entries in the wizard to define a component usage. First, enter a name for the component usage. Then choose Browse to select the component that is to be inner, embedded component. A list of all available components and component interfaces is displayed from which you select the component to be embedded.

       3.      Specify whether the lifecycle of the component usage is to be instantiated manually or on demand.

       4.      Close the wizard by choosing Finish.

Result

In the Web Dynpro Explorer, your component usage is displayed as an element of the subnode This graphic is explained in the accompanying textUsed Web Dynpro Components of the Web Dynpro project. For the component usage, the system creates the subnode This graphic is explained in the accompanying textInterface Controller:

Additional Information

In the next step, you declare the inner and outer components. See also, Referencing a Component.

 

End of Content Area