Entering content frame

Procedure documentationStep 1: Creating and Editing a Component Locate the document in its SAP Library structure

In this step you first create a new Structure linkcomponent. To do this, call the Object Navigator and choose Web-Dynpro-Comp./Intf in the object list. Enter a new name for the component (such as “MYCOMPONENT”) on the search screen and click on Display. Leave the Web Dynpro component type selected, confirm the following Create dialog and then save the new component as a local object. Choose a different name for your component if an object already exists for the name that you selected.

This graphic is explained in the accompanying text

The newly created component was automatically equipped with a few elements, so for example the component Structure linkcontroller was created as well as an initial Structure linkwindow. The Structure linkcontext of the component controller will be visible for all Structure linkviews of this component, although it is currently empty.

       1.      Now double-click on the ComponentControllerobject of your new component. The Context tab page of the controller is automatically displayed, and you now have the option of defining a context. Make sure that the Workbench is in change mode.

       2.      Open the context menu of the Context root node and choose Create ® Nodes.

       3.      Enter a name for the new node (such as “NODE1“) and confirm the dialog without worrying about the other criteria.

The new node automatically appears below the root node, and you can now create an attribute for this node.

       4.      To do this, open the context menu of the new Context node and choose Create ® Attribute.

       5.      Enter a name for the attribute (such as “MYNAME”) and in the same window, specify the type of the attribute with STRING.

       6.      Confirm the dialog again without worrying about the other criteria. Save your work.

At the end of the first step, you should have created the two required views.

       7.      Open the context menu of your component and choose Create ® View.

       8.      Give the first view a name (such as “STARTVIEW”) and confirm the window.

As soon as you have saved your work, the Views node is inserted in the hierarchy of the object list below the component, and the STARTVIEW you have just created is stored there.

       9.      Open the context menu of the Views node and choose Create to add a second view.

   10.      Enter a name for the second view (such as “RESULTVIEW”) and confirm the creation process again. Then choose Save again.

Result

The component you have created has a component controller, in whose context the MYNAME attribute was stored. This attribute is visible for each view of this component and can be changed by all controllers of the component. The component now also contains two views. Continue with

Step 2: Designing the First View

 

 

Leaving content frame