Show TOC Entering content frame

Procedure documentation Creating an Anchor Hierarchy for a Business Component Locate the document in its SAP Library structure

Use

An anchor hierarchy creates a filtering mechanism between two business anchors within an interaction component. The practical result is that the data displayed in one tile set determines the data is displayed in a second tile set. The anchor hierarchy realizes this by creating a dependency between the two associated business objects. To create this dependency, you need to know what dependency you want. After that, creating the anchor hierarchy is simple. In the Anchor Designer for the business component, you drag the business anchor to be the dependent one onto the business anchor to serve as the filter.

You use this procedure to define the way in which information is displayed in a business component. At runtime, if you navigate through the included tile sets, the data displayed in a tile set depends on the data displayed in the previous tile set.

Example

The Opportunities business component has the following anchor hierarchy:

This graphic is explained in the accompanying text

You can achieve this by creating a business anchor hierarchy for the business component as displayed below.

This graphic is explained in the accompanying text Independent business anchor mapped from the Activities tile set

This graphic is explained in the accompanying text This graphic is explained in the accompanying text Dependent business anchor mapped from the Responsible tile set

At runtime, the Customers tile set lists active customers in the database and the details of the first customer in the list by default. Users can scroll through all active customers. Choosing any customer from the list allows a display of that customer’s details. When the desired customer has been selected, the user chooses the Responsible option from the business component menu. The Sales Representative tile set appears with details of the selected customer, the sales representative handling that account, and the activities scheduled for the customer in the next three months.

Prerequisites

You have:

·        Mapped the business anchors of the desired tile sets to the business component

·        Identified the dependent tile sets and which are to serve as filter

·        Identified the business anchors in the business component mapped from each tile set

·        Identified the business objects or business queries associated with each of those business anchors

This graphic is explained in the accompanying text

This information is displayed in the Properties window for each business anchor.

·        Identified the business object relationship between the two business objects

This graphic is explained in the accompanying text

This information is listed in the Solution Explorer in the Relations node of a business object.

     Identified the parent and child business anchor(s)

·        Switched to the required change list

Procedure

...

       1.      In the Solution Explorer, click the business component for which you want to model a business anchor hierarchy with the secondary mouse button and choose View Anchors.

The Anchor Designer for that business component appears.

       2.      Drag the child business anchor and drop it onto the respective parent business anchor.

       3.      To specify the dependency, click on the dependent anchor with the secondary mouse button and choose View Supply Function.

       4.      Use the following table to specify a Supply Type for the child business anchor.

If:

Then:

The data source of the:

·        Parent business anchor is a business query

·        Child business anchor is a business collection

Choose Query Result as Supply Type.

There is a business relation between the business objects of the parent and child business anchors

                            a.      Choose Relation as Supply Type.

                            b.      Choose the name of a business relation as Supply Relation.

There is no business relation between the business objects of the parent and child business anchors

...

                            a.      Choose Global or Local as Supply Type.

                            b.      Write a supply function.

Note

If there are more than two business anchors within a business component, repeat steps 2, 3 and 4.

Leaving content frame