Object Tags 

Definition

You use object tags to create data providers and items in a Web template, and set parameters for them. The parameters that you set for items are used to control the settings you have made in the Web Publisher (width and height, for example). It is possible, right at the start of the Web report, to send a generic command (filter, change attribute) to the data provider. The parameters needed to send the command are attached to the object tag (see example).

Structure

An object tag starts with "<object>" and ends with "</object>". The SAP_BW object tags are identified by the parameter "owner", and the value "SAP_BW". Only this type of object is replaced in the Web template. All other types of object are transferred unchanged into the Web report.

It is possible to set parameters at the start of an object tag

<object WIDTH=’350’ HEIGHT=’234’ owner=’SAP_BW’ ...></object>

or within the object tag, as a parameter tag.

<object>

<param name=’owner’ value=’SAP_BW’>
...

</object>

Object tags are also displayed in non-HTML code mode in many HTML editors. Some HTML editors also give you the option of changing the size, and maintaining the parameters of the object tag. It is usually possible to use the drag and drop function to move the object tags around a page.

Structure of the Data Provider Object Tags

The parameters required to create a data provider are contained in the Web Publisher. You add other parameters, for example, to set up the value help (F4), or to send a command to the data provider before you call a page.

The ‘CMD’ parameter has to be filled with the ‘SET_DATA_PROVIDER’ to indicate that you are creating a data provider

Creating a View

<object>

<param name=’OWNER’ value=’SAP_BW’>
<param name=’CMD’ value=’SET_DATA_PROVIDER’>
<param name=’DATA_PROVIDER’ value=’View 1’>
<param name=’VIEWID’ value=’View abc’>
DATA_PROVIDER :View 1

</object>

View filtered by country (USA)

<object>

<param name=’OWNER’ value=’SAP_BW’>
<param name=’CMD’ value=’SET_DATA_PROVIDER’>
<param name=’DATA_PROVIDER’ value=’View 1’>
<param name=’VIEWID’ value=’View abc’>
<param name=’FILTER_IOBJNM’ value=’0COUNTRY’>
<param name=’FILTER_VALUE’ value=’US’>
DATA_PROVIDER :View 1

</object>

Structure of the Item Object Tag

The parameters you need to create an item are provided by the Web Publisher. You add further parameters, for example, to adjust the size at a later point, or to set a title.

The parameter ‘CMD’ has to be filled with ‘GET_ITEM’, to indicate that you are creating an item.

Creating an item

<object>

<param name=’OWNER’ value=’SAP_BW’>
<param name=’CMD’ value=’GET_ITEM’>
<param name=’ITEM’ value=’Nav Block’>
<param name=’ITEMID’ value=’Nav Block’>
<param name=’DATA_PROVIDER’ value=’View 1’>
ITEM :Nav Block

</object>

Creating an item with height 400 pixels, width 500 pixels, and the title "Business Graphic"

<object WIDTH=’400’ HEIGHT=’500’>

<param name=’OWNER’ value=’SAP_BW’>
<param name=’CMD’ value=’GET_ITEM’>
<param name=’ITEM’ value=’Chart 1’>
<param name=’ITEMID’ value=’Pie Chart’>
<param name=’DATA_PROVIDER’ value=’View 1’>
<param name=’GENERATE_CAPTION’ value=’X’>
<param name=’Caption’ value=’Business Grafik’>
ITEM :Chart 1

</object>