Start of Content Area

Procedure documentationStep 7: Embedding the Views in a Window  Locate the document in its SAP Library structure

Each view is a self-contained unit and does not contain any information about navigation to other views. To de able to define such a navigation, and to make the views accessible for users, they have to be embedded in a window.

This graphic is explained in the accompanying text

Note

By default, a MAIN view is also embedded into the main window automatically when Creating a Component

Therefore embedding views manually is only necessary if the automatic embedding did not take place, for example for older Releases, or if you want to embed views that were created afterwards into specific windows.

An empty name with the same name as the component itself is generated when a component is created. You now have to embed the two views.

Procedure

       1.      Open the Windows node in the object list hierarchy on the right-hand side of the Workbench.

       2.      Double-click on the MYCOMPONENT window there, which was created automatically.

The structure of your window is now displayed in the Editor on the right-hand side. It is still empty since you have not yet embedded any views.

       3.      In the structure of the window, open the context menu for the MYCOMPONENT node and choose Embed View. Make sure that the Workbench is in change mode.

In the following window, specify the name of the view that should be embedded. The input help for the corresponding field displays all views for the current component.

       4.      Select the STARTVIEW by double-clicking on it and confirm the window.

       5.      Repeat the process to embed the second view in the window.

       6.      In the structure of the window, open the context menu for the STARTVIEW node and choose Set as Default.

       7.      Save your changes.

       8.        

Result

The MYCOMPONENT window now contains the two views which can be bound to each other. The STARTVIEW was set as the default view, which means that it is always called first when the window is called.

Step 8: Defining the Navigation

 

 

End of Content Area