Ansicht
Dokumentation

WCFCVC_CDS_MAINT - Define Attribute Tags

WCFCVC_CDS_MAINT - Define Attribute Tags

Addresses (Business Address Services)   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

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

If 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

The following applications use global attribute tags:

  • Tag clouds
  • Favorites
  • Embedding of rapid applications and UIs generated from a BOL model
  • Mash-ups

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.
  1. 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.
  1. 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.
  1. Select the Active checkbox.
This checkbox determines if the BOL attribute tag is available in client applications. It is always displayed in the Customizing.
  1. 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.
  1. 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 a DDIC type.
You can use the input help to define the DDIC type.
  1. Enter the constant value.
  2. 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.
  1. 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 to select the Active checkbox in the copied attribute tag. For more information, see Define Attribute Tags.

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.






General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 7116 Date: 20240523 Time: 200249     sap01-206 ( 94 ms )