SAP ABAP IMG Activity WCF_WCFCVC_CDS_MAINT (Define Attribute Tags)
Hierarchy
WEBCUIF (Software Component) SAP Web UI Framework
   CA-WUI (Application Component) WebClient UI
     WCF_IMG_STRUCTURE (Package) Structure and Activities for WEBCUIF IMG
IMG Activity
ID WCF_WCFCVC_CDS_MAINT Define Attribute Tags  
Transaction Code S_A0F_96000100   (empty) 
Created on 20090511    
Customizing Attributes WCF_WCFCVC_CDS_MAINT   Define Attribute Tags 
Customizing Activity WCF_WCFCVC_CDS_MAINT   Define Attribute Tags 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WCF_WCFCVC_CDS_MAINT    

Use

In this Customizing activity, you can adapt copied SAP attribute tags to your requirements, after you have copied them from SAP attribute tags in the Customizing activity Copy SAP Attribute Tags. You can also create your own attribute tags and define their settings in this Customizing activity.

In this Customizing activity, you can see copied SAP attribute tags, and change the settings of these copies. You can also create your own attribute tags and define their settings.

You can tag different application and system attributes by assigning a unique identifier to them. This ID is necessary to reference and retrieve values and labels of these attributes from other applications.

Example

You tag the BOL attribute city from the business partner BOL object by assigning the name BP_CITY to it. Now you can use this tagged attribute in a mash-up.

You can tag the following types by using global attribute tags:

  • Business object layer (BOL) attributes
  • Constant attributes
  • User variable attributes

Requirements

Standard settings

The following applications use global attribute tags:

  • Tag clouds
  • Favorites
  • Embedding of rapid applications and UIs generated from a BOL model
  • Mash-ups
  • Calculated fields (created using the Application Enhancement Tool)

Activities

Tag BOL Attribute

You can tag any BOL attribute. To tag a BOL attribute, proceed as follows:

  1. Choose a UI object type to determine the semantic context (application) where this tag is used.
  2. Choose Define BOL Attribute Tags.
  3. Click New Entries.
  4. Enter a unique attribute name.
  5. Enter the BOL path of the BOL attribute that you want to tag.

    You can use the input help to define the path.

  6. Enter a design object and a design attribute.

    This information is optional and is used in some scenarios to retrieve metadata, such as a field label of a description for a tagged BOL attribute.

  7. Enter a test value for your BOL attribute.

    This information can be used during the execution of static tests and the validation based on tags, for example, when the BOL entity instance is not available or not loaded.

  8. Select the Active checkbox.

    This checkbox determines if the BOL attribute tag is available in client applications. It is always displayed in the Customizing.

  9. Save your entries.

Create Reference Field for BOL Attribute Tag

You can create reference fields for BOL attribute tags.

Example

A reference field is used to determine the currency field for the field of the BOL attribute PRICE (amount).

  1. Choose a UI object type to determine the semantic context (application) where this tag is used.
  2. Select the BOL attribute tag for which you want to create a reference field.
  3. Choose Define Reference Fields.
  4. Enter the reference field path.

    You can use the input help to determine the reference field path.

  5. Save your entries.

You can open the detail view of the BOL attribute tag by choosing Define BOL Attribute Tags and double-clicking the attribute tag. There you can see the status of BOL attribute tags and, in parenthesis, the path of the reference field:

  • No traffic light: There is no reference field defined and the field of the BOL attribute does not require a reference field.
  • Green traffic light: A reference field is defined.
  • Yellow traffic light: Since the field of the BOL attribute is a currency or quantity field, it requires a reference field. There is no reference field defined in this Customizing activity, but a reference field is found in the same BOL structure in the ABAP Dictionary.
  • Red traffic light: Since the field of the BOL attribute is a currency or quantity field, it requires a reference field. However, there is no reference field defined in this Customizing activity and no reference field is found in the ABAP Dictionary.

Tag Constant Attribute

To tag a constant attribute, proceed as follows:

  1. Choose Define Constant Attribute Tags.
  2. Click New Entries.
  3. Enter a unique attribute name.
  4. Enter an ABAP type.

    You can use the input help to define the ABAP type.

  5. Enter the constant value.
  6. Select the Active checkbox.

    This checkbox determines if the constant attribute is available during creation or maintenance of global attribute tags. If the checkbox is not selected, the constant attribute tag is not displayed in the list of constant attribute tags.

  7. Save your entries.

Tag User Variable Attribute

User variable attributes are predefined attributes that are used to directly access user data, such as in transaction User Maintenance (SU01). These attributes are related to a back end.

Note

Tagged user variable attributes are delivered inactive, which means that the Active checkbox is not selected. To use these attributes, you need to copy them to your own software layer and select the Active checkbox in the copied attribute tag. For more information, see Copy SAP Attribute Tags.

Example

In the following example, you tag a BOL attribute (corresponding to account ID) for an account:

UI object type: BP_ACCOUNT

Unique attribute name: ID

BOL path: @BP_NUMBER at BuilHeader BOL node

Design object: Optional

Design attribute: Optional

Active checkbox: Selected

When you create a mash-up in the WebClient UI, you see BOL:BP_ACCOUNT:ID at the available attributes.

Business Attributes
ASAP Roadmap ID 201   Make global settings 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG WCF_WCFCVC_CDS_MAINT 0 PNF0000011 WebClient UI 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
WCFCVC_CDS_MAINT C - View cluster SM34  
History
Last changed by/on SAP  20090511 
SAP Release Created in 701