Example: Definition of a Tag Expression

This example shows you the settings you need to make to define tag expressions. The tag expression used here determines the business partner(s) with the partner function Employer (function category 0001 ) from the items of a current business transaction.

  1. Customizing settings

    First you define the required tags and their hierarchical relationship to one another in Customizing.

    The tags used in this example, CURRENTDOCUMENT, ITEM, PARTNER, and PARTNER_NO, are provided by SAP and thus do not need to be defined. For this example, the Customizing settings are restricted to the definition of the tag hierarchy in the relevant BRF application class. You define the hierarchical relationship for each tag by assigning the parent tag.

  2. BRF settings

    In the Business Rule Framework (BRF), you create the required tag expressions with the expression type 0CRM_TAG_EXP. In the Tag Expression screen area, you can select from all of the tag hierarchies that you defined beforehand for the respective application class in Customizing.

    In this example, only the tag hierarchy Current Transaction – Administration Item – Partner – Partner Number is available. You can make additional filter settings for the tag expression by moving the tag Partner Number to the right into the table using drag and drop. In the example, the result values of the Partner tag are restricted to business partners in the Employer function ( Function Category 0001 ) by means of the formula editor.

The figure below shows the settings that were made for the example in Customizing (here IMG activity Define Tag Hierarchy ) and in the BRF when the tag expression was created.



Figure: Definition of a Tag Expression

See also:

For more information about the Customizing settings for tags, tag hierarchies, and for an overview of the tag classes provided by SAP, see under Start of the navigation pathBusiness Rule Framework Next navigation step Define TagsandDefine Tag Hierarchiesin Customizing for CRM.End of the navigation path