Tagging Framework

Structure

With the tagging framework you can make it easier to manage tags by keeping them in a repository with its own namespace. You use a tag provider to manage this repository and make it available to Web Dynpro applications or CHIPs in the Page Builder.

Tag Repository

A Tag Repository is a central repository for tags. Any number of Tag Repositories can exist. Each Tag Repository is assigned to a unique namespace. A tag can exist once only in a repository. To use tags from a Tag Repository, a Tag Provider with access to the repository must be created.

Tag Provider

A Tag Provider has access to a Tag Repository, and enables tags to be output. To use a Tag Provider at Web Dynpro runtime, it is registered in database table TAG_PROVIDER.

Tag

A tag is a marker on a Web Dynpro entity that can be defined in the program code or declared. A tag is set on the original node, and not on a mapped node.

The following is valid for tags:

  • A tag is a string without special characters or blank characters; underscores can be used as separators.

  • A tag is case-sensitive.

  • A tag can only be set for a non-structured value; tables and structures are not currently supported.

  • Multiple tags can be set for one entity.

  • The activity of tags is independent of the visibility of a particular UI element.

Tags can be assigned to a namespace, which is described by a prefix. The prefix is separated from the actual tag name by a colon.

A namespace is case-sensitive, and can have a maximum of 30 characters, consisting only of letters A-Z, numbers 0-9, and an underscore _.

You can use the namespaces registered at SAP, or create your own namespaces in the customer namespace. If you create your own, they have to start with a z or Z and can only contain the characters valid for tags.