!--a11y-->
Creating the Business Component: Business Partners

This example describes how to create the Business Partners business component and assign three tile sets to it. The tile set types follow.
· Details tile set displays the details of a selected customer and its corresponding orders.
· Orders tile set displays the details of a selected order and its respective line items.
· Activities tile set displays the activities for a customer and the details for the selected activity.
You have:
· Modeled the Details, Orders and Activities tile sets
· Modeled a business relation between:
¡ Customer and order business objects (BOCUSTOMER and BOORDERS)
¡ Customer and activity business objects (BOCUSTOMER and BOACTIVITIES)
· Switched to the required change list context
...
1. In the Solution Explorer, click the Business Components node with the secondary mouse button and choose New.
The Add Object dialog box appears.
2. Enter a name for the business component and choose Open.

Make sure you have kept your namespace prefix.
The Business Component Designer window opens as well as the Toolbox and Properties panes.
3. In the Properties pane in the Caption field, type Business Partners.
4. From the Solution Explorer, drag the Details tile set and drop it on the Business Component Designer window.
5. From the Solution Explorer, drag the Orders tile set and drop it on the Business Component Designer window.
6. From the Solution Explorer, drag the Activities tile set and drop it on the Business Component Designer window.
7. In the Business Component Designer window, click the secondary mouse button and choose View Anchors.
The Anchor Designer window appears displaying the business component in the top portion with the assigned tile sets and their anchors in the lower portion.
8. Expand the Details tile set to view the default anchors and tiles assigned to it.
9. Map the business component anchor to the tile set.
a. Drag the Mapping icon in the Anchors toolbox and drop it on the business component anchor you just created.
b. In the Select Child Anchor field, select the appropriate anchor and choose OK.
A line appears in the Anchor Designer indicating the new anchor mapping.
10. Click the anchor in the business component that you want to be the main anchor with the secondary mouse button and choose Set As Main.
The anchor’s business object appears in boldface text.
11. If required, specify a supply function by clicking the anchor in the business component (or tile set) for which you want to write a supply function with the secondary mouse button and choose Supply Function. For more information, see Writing a Supply Function.
Anchor mapping and anchor hierarchy in the Business Partners business component

You have created the Business Partners business component and established a data flow with one of its tile sets. After you establish data flow to its other tile sets, you can include the Business Partner business component in the Mobile Sales application. For more information, see Modeling the Application: Mobile Sales.