Text Elements 

Definition

Web item that the text items display for a query view in a Web application.

Use

The Web item Text elements displays the query information that the query view and the Web application are based on. It is also possible to choose text elements individually.

Structure

The text elements are similar to the text elements in the BEx Analyzer and are made up of the following parts:

As well as its general attributes, the Text Elements Web item has the following attributes:

Attributes

Description

Display common text elements (SHOW_COMMON_ELEMENTS)

‘X’ = Yes, ‘ ’ = No

If you activate this attribute, the common text elements are displayed.

Display static filter values (SHOW_FILTERS)

‘X’ = Yes, ‘ ’ = No

If you activate this attribute, the filter values that you determined in the filter area of the query definition are displayed.

Display variable values (SHOW_VARIABLES)

‘X’ = Yes, ‘ ’ = No

If you activate this attribute, the variable values for the query (on which the Web application is based) are displayed.

List of text elements (ELEMENT_NAME_N)

By listing the text element names in combination with their type ELEMENT_TYPE_N, you are able to determine which entries appear as text items and the order in which they appear. With general text elements the name corresponds to one of the values listed above (under General Text Items). With variables the name corresponds to the variable name, and with filters the name corresponds to the name of the characteristic.

If you do not specify this parameter, all the filtered characteristics and filtered structures are displayed.

List of the types of text elements (ELEMENT_TYPE_N)

Both attributes, List of Text Elements (ELEMENT_NAME_N) and List of Text Element Types (ELEMENT_TYPE_N), are addressed in the Web Application Designer in the Element List (ITEM_LIST) attribute that lies below.

See above: List of Text Elements

COMMON = Common text element

FILTER = Static filter value

VARIABLE = Variable value

VARIABLE_KEY = Key for variable value

List of items

(ITEM_LIST)

This attribute contains a list of text items with type and name. You can choose the type of text item from the list or enter the name of the item manually.

Only display values

(ONLY_VALUES)

‘X’ = Yes, ‘ ’ = No

If you activate this attribute, the values for the text elements are displayed without any labeling, and the formatting is separated by semi-colons.

The combination of ONLY_VALUES=X, ITEM_TYPE =COMMON, and ITEM_NAME=REPTXTLG, makes it possible to access a text element directly in the Web template, here for example, the query name. The name is used in a title, for example.

Display of validity of data, filter value for cost center and values for 2 variables

<object>

<param name='OWNER' value='SAP_BW'>
<param name='CMD' value='GET_ITEM'>
<param name='ITEM' value='Text'>
<param name='ITEM_CLASS' value='CL_RSR_WWW_TEXT_ELEMENTS'>
<param name='ELEMENT_TYPE_1' value='COMMON'>
<param name='ELEMENT_NAME_1' value='ROLLUPTIME'>
<param name='ELEMENT_TYPE_2' value='FILTER'>
<param name='ELEMENT_NAME_2' value='0COSTCENTER'>
<param name='ELEMENT_TYPE_3' value='VARIABLE'>
<param name='ELEMENT_NAME_3' value='myFirstVariable'>
<param name='ELEMENT_TYPE_4' value='VARIABLE'>
<param name='ELEMENT_NAME_4' value='mySecondVariable'>
<param name='DATA_PROVIDER' value='MyDataProvider'>

ITEM :Text

</object>