Show TOC

Updating Context MappingLocate this document in the navigation structure

Use this page to define the context hierarchy for the Component controller or the View controller.

Context

If you have made changes to the Used Controller context, then you must perform update mapping to ensure mapping consistency.

The update mapping window provides the option to select the added Context Nodes or Context Attributes. The already mapped Context Nodes and Context Attributes are pre-selected. This section provides details about mapping between Context Nodes, Recursion Nodes, and Context Attributes of a View controller and a Component controller.

Note

Modifying the name of a Context Node or a Context Attribute in the Dependent Controller requires the mapping to be updated with the corresponding Context Node or Context Attribute respectively in the Context Structure tree.

Procedure
  1. In the Project Explorer view, expand an ABAP project.
  2. Expand the required package.
  3. Navigate to Web Dynpro > Web Dynpro Components.
  4. Expand the Web Dynpro Components folder.
  5. Expand the required component.
  6. Expand the Views folder.
  7. Double-click a view object.

    The Context page for the view is displayed.

  8. In the Context Structure tree, choose the required mapped context node to be updated.
  9. In the context menu of the selected context node, choose Update Mapping.

    A message is displayed that the node is already mapped and an update will cause the attributes to be deleted and re-created.

    Update Mapping

  10. Choose OK.

    The Context Mapping dialog containing the hierarchical structure of the target node to be created is displayed.

    Note

    The context hierarchy displays the latest Context structure of the dependent controller. The Context tree doesn't display the Context Nodes, Context Attributes or Recursion Nodes that were deleted or renamed.

  11. Select or deselect the Context Nodes, Recursion Nodes, or Context Attributes to update mapping.
  12. Choose Finish.

    The target node is created under the root node of the Context Structure tree. Horizontal lines indicating context mapping appear between Context Nodes and Context Attributes of the Context Structure tree and the Dependent Controller tree.

  13. Save the changes.
  14. Activate the component. For information about activation, see Activating Web Dynpro Components.
Note

You can also drag the context node from the Used Controller to the corresponding mapped node in the controller context to update mapping.