Embed
Email

WebAPI ola rri

Document Sample

Web API Reference









HELP.BW_INTERNAL









Release BW 3.5

SAP Online Help 25.02.2005







Copyright

© Copyright 2004 SAP AG. All rights reserved.



No part of this publication may be reproduced or transmitted in any form or for any purpose

without the express permission of SAP AG. The information contained herein may be changed

without prior notice.



Some software products marketed by SAP AG and its distributors contain proprietary software

components of other software vendors.



Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft

Corporation.



IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400,

OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere,

Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the

United States and/or other countries.



Oracle is a registered trademark of Oracle Corporation.



UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.



Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are

trademarks or registered trademarks of Citrix Systems, Inc.



HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide

Web Consortium, Massachusetts Institute of Technology.



Java is a registered trademark of Sun Microsystems, Inc.



JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for

technology invented and implemented by Netscape.



MaxDB is a trademark of MySQL AB, Sweden.



SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and

services mentioned herein as well as their respective logos are trademarks or registered

trademarks of SAP AG in Germany and in several other countries all over the world. All other

product and service names mentioned are the trademarks of their respective companies. Data

contained in this document serves informational purposes only. National product specifications

may vary.



These materials are subject to change without notice. These materials are provided by SAP AG

and its affiliated companies ("SAP Group") for informational purposes only, without representation

or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to

the materials. The only warranties for SAP Group products and services are those that are set

forth in the express warranty statements accompanying such products and services, if any.

Nothing herein should be construed as constituting an additional warranty.









Web API Reference BW 3.5 2

SAP Online Help 25.02.2005







Icons in Body Text



Icon Meaning

Caution



Example



Note



Recommendation



Syntax







Additional icons are used in SAP Library documentation to help you identify different types of

information at a glance. For more information, see Help on Help → General Information Classes

and Information Classes for Business Information Warehouse on the first page of any version of

SAP Library.







Typographic Conventions



Type Style Description

Example text Words or characters quoted from the screen. These include field

names, screen titles, pushbuttons labels, menu names, menu paths,

and menu options.

Cross-references to other documentation.

Example text Emphasized words or phrases in body text, graphic titles, and table

titles.

EXAMPLE TEXT Technical names of system objects. These include report names,

program names, transaction codes, table names, and key concepts of a

programming language when they are surrounded by body text, for

example, SELECT and INCLUDE.

Example text Output on the screen. This includes file and directory names and their

paths, messages, names of variables and parameters, source text, and

names of installation, upgrade and database tools.

Example text Exact user entry. These are words or characters that you enter in the

system exactly as they appear in the documentation.

Variable user entry. Angle brackets indicate that you replace these

words and characters with appropriate entries to make entries in the

system.

EXAMPLE TEXT Keys on the keyboard, for example, F2 or ENTER.









Web API Reference BW 3.5 3

SAP Online Help 25.02.2005









Web API Reference......................................................................................................................... 9

Web items .................................................................................................................................. 10

General Attributes .................................................................................................................. 12

Table....................................................................................................................................... 16

Chart....................................................................................................................................... 21

Dropdown Box ........................................................................................................................ 24

Radio Button Groups.............................................................................................................. 27

Checkboxes............................................................................................................................ 30

Generic Navigation Block ....................................................................................................... 32

Hierarchical Filter Selection.................................................................................................... 36

Filters...................................................................................................................................... 38

Label....................................................................................................................................... 41

Text Elements......................................................................................................................... 43

List of Exceptions ................................................................................................................... 46

List of Conditions.................................................................................................................... 47

Alert Monitor ........................................................................................................................... 48

Role Menu .............................................................................................................................. 52

Ticker...................................................................................................................................... 56

Maps....................................................................................................................................... 57

Map Attributes..................................................................................................................... 59

Attributes for Map Layers ................................................................................................ 63

Special Attributes for Color Shading ........................................................................... 65

Special Attributes for Bar Charts ................................................................................. 67

Special Attributes for Pie Charts ................................................................................. 69

Special Attributes for Pie Charts (split)........................................................................ 71

Special Attributes for Dot Density................................................................................ 72

Special Attributes for Symbols .................................................................................... 74

Special Attributes for Symbol (Size-dependent) ......................................................... 76

Special Attributes for Symbol (Color-dependent)........................................................ 78

Special Attribute: Line.................................................................................................. 80

Special Attribute: Line (Size-dependent)..................................................................... 82

Special Attributes for Lines (Color-dependent) ........................................................... 84

Array Attributes ............................................................................................................... 86

Map Renderer ................................................................................................................. 88

Single Document .................................................................................................................... 91

List of Documents................................................................................................................... 95





Web API Reference BW 3.5 4

SAP Online Help 25.02.2005





Object Catalog of the Web Application .................................................................................. 98

Data Provider – Information ................................................................................................... 99

Web Template ...................................................................................................................... 100

Broadcaster .......................................................................................................................... 103

Query View – Selection ........................................................................................................ 104

Key Figure Overview ............................................................................................................ 107

Ad-hoc Query Designer........................................................................................................ 109

ABC Classification................................................................................................................ 114

What If Prediction ................................................................................................................. 115

Web Template Properties..................................................................................................... 117

Web Templates ........................................................................................................................ 119

Overriding Attributes ................................................................................................................ 121

Object Tags.............................................................................................................................. 124

Object Tag for the Properties of Web Templates................................................................. 125

Adjusting and Enhancing the Context Menu .................................................................... 131

Adjusting the Context Menu .......................................................................................... 132

Enhancing the Context Menu........................................................................................ 139

Object Tag for Data Provider................................................................................................ 142

Object Tag for Web Items .................................................................................................... 144

Command URLs....................................................................................................................... 145

Changing Web Item Attributes ............................................................................................. 147

Resetting and Reinitializing Web Items................................................................................ 148

Commands for Web Templates............................................................................................ 150

Calling up Web Templates................................................................................................ 151

Calling Parameterized Web Templates ........................................................................ 153

Default Variables for Web Applications......................................................................... 154

Switching Web Templates ................................................................................................ 158

Personalizing Web Templates .......................................................................................... 159

Creating Bookmarks ......................................................................................................... 160

Changing Symbol Directory .............................................................................................. 161

Releasing Web Templates................................................................................................ 162

Ending the Session........................................................................................................... 163

Variables ........................................................................................................................... 164

Calling up the Variables Screen.................................................................................... 165

Changing the Values of Variables................................................................................. 166

Calling the Broadcaster .................................................................................................... 167

Calling the Open Dialog.................................................................................................... 170





Web API Reference BW 3.5 5

SAP Online Help 25.02.2005





Data Provider - Commands.................................................................................................. 172

General Data Provider Commands .................................................................................. 174

Properties of Data Providers ......................................................................................... 175

Resetting and Reinitializing Data Providers.................................................................. 177

Back and Back to Start.................................................................................................. 179

Jumping Using Report-Report Interface ....................................................................... 180

Exporting Data .............................................................................................................. 181

Saving the Query View.................................................................................................. 182

Displaying a Copy of the Data Provider on a New Page .............................................. 183

Calling the Ad-hoc Query Designer .............................................................................. 184

Filter .................................................................................................................................. 185

Removing Filters ........................................................................................................... 188

Drilldown ........................................................................................................................... 189

Remove Drilldown ......................................................................................................... 190

Switching Characteristics/Structures ................................................................................ 191

Swap Axes ........................................................................................................................ 192

Setting the Navigational Status ........................................................................................ 193

Sorting............................................................................................................................... 195

Setting Properties of Display Attributes ............................................................................ 197

Results Row Position........................................................................................................ 198

Suppressing Result Rows................................................................................................. 199

Setting the Display............................................................................................................ 200

Displaying Documents ...................................................................................................... 201

Dialogs .............................................................................................................................. 202

Calling Dialog Query Properties.................................................................................... 203

Calling Up Dialog Box for Formula Definition................................................................ 204

Calling up Input Help..................................................................................................... 205

Calling the Characteristic Properties Dialog ................................................................. 206

Calling a Dialog for Currency Translation ..................................................................... 207

Calling a Dialog for Defining Exceptions....................................................................... 208

Calling a Dialog for Defining Conditions ....................................................................... 209

Calling a Dialog for Cell Properties ............................................................................... 210

Save Query View Dialog Box ........................................................................................ 211

Creating Your Own Dialogs........................................................................................... 213

Exceptions and Conditions ............................................................................................... 216

Commands for Exceptions ............................................................................................ 217

Setting the Status of an Exception................................................................................ 220





Web API Reference BW 3.5 6

SAP Online Help 25.02.2005





Commands for Conditions............................................................................................. 221

Setting the Status of a Condition .................................................................................. 223

Commands for Currency Translation................................................................................ 224

Commands for Values Cells ............................................................................................. 225

List Calculations................................................................................................................ 226

Operations for Display Hierarchies................................................................................... 228

Command Sequences.......................................................................................................... 232

Using Forms............................................................................................................................. 234

Use of JavaScript Functions .................................................................................................... 237

Send Commands.................................................................................................................. 238

Execute URL in the Same Window .................................................................................. 239

Execute URL in a New Window........................................................................................ 240

URL from a New Window in the Opening Window ........................................................... 241

Closing Windows .............................................................................................................. 242

Executing a Form in a New Window................................................................................. 243

Executing a Form in the Opening Window ....................................................................... 244

Enhancing the Context Menu with JavaScript...................................................................... 245

Adding a Menu Entry using JavaScript............................................................................. 246

Command Processing ...................................................................................................... 248

Properties of Page Objects .................................................................................................. 251

Web Item Attributes .......................................................................................................... 252

Characteristics for Data Providers.................................................................................... 253

Specifying Properties for Web Templates ........................................................................ 255

Calendar for Date Filter ........................................................................................................ 257

Logon Language .................................................................................................................. 258

Language-Dependent Texts .................................................................................................... 259

Creating ABAP Programs for Maintaining Language-Dependent Texts .............................. 260

More Complex Examples of Applications ................................................................................ 262

Dynamically Changing Attributes ......................................................................................... 263

Using Several Tab Pages..................................................................................................... 266

Example Scenario for the Parameter NO_OUTPUT............................................................ 270

XML Web Item: Data Provider Information .......................................................................... 274

Web Design API for Tables...................................................................................................... 277

Creating and Using ABAP Classes ...................................................................................... 278

Table Interface ..................................................................................................................... 281

Attributes........................................................................................................................... 282

Datasets ........................................................................................................................ 284





Web API Reference BW 3.5 7

SAP Online Help 25.02.2005





AXIS_INFO................................................................................................................ 285

AXIS_DATA............................................................................................................... 287

CELL_DATA .............................................................................................................. 289

TXT_SYMBOLS ........................................................................................................ 291

Events ............................................................................................................................... 292

Manipulating Cell Contents............................................................................................... 293

Headers......................................................................................................................... 295

Scaling Factors ............................................................................................................. 296

Characteristic Values .................................................................................................... 297

Attribute Values............................................................................................................. 299

Structural Components ................................................................................................. 300

Data Cells...................................................................................................................... 301

Error Cells ..................................................................................................................... 302

Labeling Area of the Navigation Block .......................................................................... 303

Filter Area of the Navigation Block................................................................................ 305

Service Methods ............................................................................................................... 307

Creating Navigation URLs............................................................................................. 308

Information on the Navigation Status............................................................................ 309

Information on a Specific Cell ....................................................................................... 311

Symbols......................................................................................................................... 313

Sending Messages........................................................................................................ 314

JavaScript Functions..................................................................................................... 315

Determining Specific Attributes for the Table Interface ................................................ 316









Web API Reference BW 3.5 8

SAP Online Help 25.02.2005









Web API Reference

Purpose

The Business Explorer Web Application Design enables you to apply generic OLAP navigation to

BW data in Web applications and Business Intelligence cockpits in simple to highly specialized

scenarios. You can use standard markup languages and Web Design APIs to implement highly

individual scenarios with user-defined interface elements. Web application design comprises a

broad spectrum of interactive Web-based business intelligence scenarios that you can adjust to

meet your requirements using standard Web technologies.



This document is intended for Web designers who want to create highly-specialized applications

(BI cockpits, and so on) on the basis of Web application design.

You can access BW data in Web applications using a Web browser. This is usually installed with

the operating system. No additional software installation is required. Demands on the Web

browser are minimal as the solution offered is based entirely on HTML.









Within SAP BW 3.0A, the preferred method of accessing BEx Web Applications is

via a conversion to the SAP Web Application Server. For this reason, all example-

URLs are configures to the SAP Web Application server.









Web API Reference BW 3.5 9

SAP Online Help 25.02.2005









Web items

Definition

Web items are objects that obtain data from data providers [Seite 172] and make the data

available as HTML. Web items have attributes such as header, width, height, and create

navigation links. You use parameters or specific commands to change these attributes.

If the data, the navigational status, or the attributes change, the HTML for the Web item is

regenerated. A Web item must always be assigned to a data provider.



Structure

The following Web items are used in Web applications:

• Table [Seite 16]

• Chart [Seite 21]

• Dropdown Box [Seite 24]

• Radio Button Group [Seite 27]

• Checkboxes [Seite 30]

• Generic Navigation Block [Seite 32]

• Hierarchical Filter Selection [Seite 36]

• Filter [Seite 38]

• Label [Seite 41]

• Text Element [Seite 43]

• List of Exceptions [Seite 46]

• List of Conditions [Seite 47]

• Alert Monitor [Seite 48]

• Role Menu [Seite 52]

• Ticker [Seite 56]

• Map [Seite 57]

• Single Document [Seite 91]

• List of Documents [Seite 95]

• Data Provider - Information [Seite 99]

• Object Catalog of the Web Application [Seite 98]

• Web Template [Seite 100]

• Broadcaster [Seite 103]

• Key Figure Overview [Seite 107]

• Query View - Selection [Seite 104]







Web API Reference BW 3.5 10

SAP Online Help 25.02.2005





• Ad-hoc Query Designer [Seite 109]

• ABC Classification [Seite 114]

• What If Prediction [Seite 115]



Integration

In the BEx Web Application Designer or the BEx Web Application wizard, on the Standard tab,

you can use the Web items listed above as master Web items [Extern] You choose a master Web

item from the list, assign a data provider to the Web item and edit the attributes. You have now

created your own Web item that your can add to your Web template or save in the library to be

used again.









Web API Reference BW 3.5 11

SAP Online Help 25.02.2005









General Attributes

Use

General attributes are attributes that are valid for all Web items in Web applications.



Features

The following general attributes are available:

Attributes Description

Logical name of a Web item (ITEM or NAME) As well as the Web item key (ITEMID) that is

assigned when the Web item is created in the

Web Application Designer you also have to

assign a logical name when using the Web

item in the Web application. This enables you

to use the same Web item several times in a

Web application. If commands are sent to this

Web item you always have to specify the name

of the Web item as the parameter ITEM.

SAP recommends that you keep to the

conventions supported by the Web Application

Designer when specifying names: The name

should be a maximum of 30 characters long

and consist of characters “A-Z”, “0-9” and “_”. It

cannot start or end with “_”. Adhering to these

conventions facilitates the upgrade to future

SAP releases.







You cannot use a command-URL

to change this attribute.

Web item key (ITEM_ID) (option 1) You create a Web item for a Web application

based on a Web item setting that you have

made in the Web Application Designer.







You cannot use a command-URL

to change this attribute.

Class name for the Web item class Name of the ABAP object class that generates

(ITEM_CLASS) (option 2) the output. This corresponds to the use of non-

reusable Web items (standard Web items) in

the Web Application Designer. Web items are

created with the default values for the attribute.



The class name for the table is, for example,

CL_RSR_WWW_ITEM_GRID









Web API Reference BW 3.5 12

SAP Online Help 25.02.2005





Logical name of the Data Provider for the You have to assign every Web item to (exactly)

Web item (DATA_PROVIDER) one data source. The Web item gets the data

and metadata from this Data source that is

needed to generate the output as well as

commands.

SAP recommends that you keep to the

conventions supported by the Web Application

Designer when specifying names: The name

should be a maximum of 30 characters long

and consist of characters “A-Z”, “0-9” and “_”. It

cannot start or end with “_”. Adhering to these

conventions facilitates the upgrade to future

SAP releases.

Height (HEIGHT) You can only specify the height in pixels.







This attribute is not used in

tables.







The parameters ITEMID and WBID (ITEM_WBID) used in BW 2.x are still

supported. However, we recommend that you no longer use these.

In the BEx Web Application Designer, in the Properties area, you can set the following attributes

in the Web Item tab page, under General:

Attributes Description

Caption (CAPTION) You can enter a caption. If you do not enter a

caption, then an appropriate value is

suggested.

Generate caption (GENERATE_CAPTION) By activating this attribute ('X' = Yes), an

additional row containing the Web item is

'X' = Yes, ' ' = No, 'BORDER' = Borders only

generated in the table. The text you have

entered under Caption is displayed in this

table.

If you choose Borders Only, a border is

generated without any additional lines for the

caption. In this way you are able to realize all

border types that are available under the

Border Type attribute, without generating a

caption line.







The SAPBEXTableCaption style

is used for the caption.









Web API Reference BW 3.5 13

SAP Online Help 25.02.2005





Width in pixels (WIDTH) You can only specify the width in pixels. You

can use the suggested width or determine a

new width using Change Attribute...







Note that the Web browser

automatically increases the

widths of tables if the one you

have chosen is too small.

Border type Here, you can choose the following display

types for the Web item:

(BORDER_STYLE)

• With border

'BORDER' = With border

Set as default value for table, generic

‘NO_BORDER’ = Without border

navigation block, Alert Monitor, filter, text

‘FORM’ = Form elements, menu, list of conditions, and

list of exceptions.







The border is only displayed if

GENERATE_CAPTION=X.

• Without border

Set as default value for maps, charts,

and individual documents.

• For form

The content of the Web item is normally

displayed with a blue background. Set as

default value for document list,

hierarchical context menu, label,

dropdown box, radio button group, and

checkboxes.







The standard value settings

represent the recommended

display type for the Web item.

Closed (CLOSED) You can close the Web item (CLOSED=X): The

Web item is not displayed. Only the caption still

‘X’ = Yes, ‘ ’ = No

appears (if there is one) and the open/close

symbol for this Web item. By clicking on the

open/close symbol, you can make the Web

item visible or invisible.







To be able to see the caption, you

have to activate the attributes

Generate Caption and Objects

with Navigation Links.









Web API Reference BW 3.5 14

SAP Online Help 25.02.2005





Hide object (HIDDEN) You can hide the Web item (HIDDEN=X):

Although the Web item embedded in the Web

‘X’ = Yes, ‘ ’ = No

template, it is not visible. The Web item and the

caption with the open/close symbol are not

shown.

Objects with navigation links If you do not want the user of the Web

(GENERATE_LINKS) application to be able to navigate within it or if

you want the user to be able to print the

‘X’ = Yes, ‘ ’ = No

display, and therefore the context menu is no

longer to be displayed, then deactivate this

function.







This attribute creates the

open/close symbol, with which

you can open or close the Web

item. Behind this symbol is a link

that calls up the Web application

with the corresponding

parameters.

Web item controls different data providers If a Web item is to control several data

(TARGET_DATA_PROVIDER_I) (optional) providers, for example, a navigation block, it

For many Web items, this attribute appears can be expressed by this parameter. If it is not

under the respective special attributes. These specified, the Web item always controls its own

Web items obtain their data from a view. data provider. The values specified under this

parameter are the logical names of the data

providers, for example, references using wild

cards. You do not have to specify the data

provider belonging to the Web item. If it is

missing, the Web item does not control its own

data provider.

The Web item output generation is always

based on the item’s own data provider and

does not include the others. The commands

are forwarded to the target data provider.









Web API Reference BW 3.5 15

SAP Online Help 25.02.2005









Table

Definition

A Web item that obtains data from a query view to create a table for a Web application.

Navigation links are incorporated with the table.



Use

The Web item Table displays the value of a query view in the Web application in the form of a

table. The same list geometry that is used in the BEx Analyzer is supported. Characteristics and

structures can be displayed in both the rows and the columns.



Structure

As well as its general attributes [Seite 12], the Web item Table has the following attributes:

Attributes Description

Alternating styles for table rows In the rows, the formats SAPBEXstdData and

(ALT_STYLES) SAPBEXstdDataOdd are used alternately to

display numerical values. You can adjust them

'X' = Yes, ' ' = No

in the CSS file assigned to the template.







Totals cells are removed from this

display.

Only hierarchy navigation Only allow hierarchy navigation

The context menu is hidden in this mode, and

(ONLY_HIERARCHY_NAVIGATION)

you can only expand and collapse from the list.

'X' = Yes, ' ' = No

Suppress repetition texts Suppressing repetition texts



(SUPPRESS_REPETITION_TEXTS) If you set this attribute to ‘ ‘, the cells in the

table are not merged and the texts and keys

'X' = Yes, ' ' = No are repeated.

If you do not specify a value for this attribute,

the texts are suppressed.

Number of data rows displayed at one time Specifying this attribute allows you to

(BLOCK_SIZE) determine the number of data rows that are

displayed after which an area for scrolling is

inserted.







If the value is set to 0, the

complete table is displayed,

regardless of the number of data

rows.

The attribute is set to 100 by

default.









Web API Reference BW 3.5 16

SAP Online Help 25.02.2005





Rows scrolled per step This attribute allows you more flexibility in

structuring the scrolling logic:

(BLOCK_STEP_SIZE)

You are able to determine the number of data

Default setting: “0”

rows scrolled per step. The default setting “0”

corresponds to 2/3 of the display rows.

The value entered corresponds to the number

of rows scrolled through.







If you enter the value “2”, two

rows will be scrolled through.

If you want to scroll through all the displayed

data rows, enter the same value as you

entered for the attribute Number of data rows

displayed at one time (BLOCK_SIZE).

Number of data columns displayed at one Specifying this attribute allows you to

time (BLOCK_SIZE_COLUMNS) determined the number of data columns that

are displayed after which an area for scrolling

is inserted.







If the value is set to 0, the

complete table is displayed,

regardless of the number of data

columns.

The attribute is set to 0 by default.

Columns scrolled per step This attribute allows you more flexibility in

structuring the scrolling logic:

(BLOCK_STEP_SIZE_COLUMNS)

You are able to determine the number of data

Default setting: “0” columns scrolled per step. The default setting

“0” corresponds to 2/3 of the display columns.

The value entered corresponds to the number

of columns scrolled through.







If you enter the value “2”, two

columns will be scrolled through.

If you want to scroll through all the displayed

data rows, enter the same value as you

entered for the attribute Number of data

columns displayed at one time

(BLOCK_SIZE_COLUMNS).

Table: Scrolling area top Display the scrolling area at the start of the

(SHOW_PAGING_AREA_TOP) table

'X' = Yes, ' ' = No The attribute is specified with default ' '.









Web API Reference BW 3.5 17

SAP Online Help 25.02.2005





Table: Scrolling area bottom Display the scrolling area at the end of the

table

(SHOW_PAGING_AREA_BOTTOM)

The attribute is set to ‘X’ by default.

'X' = Yes, ' ' = No

Display column headers Display the labels above the data

(SHOW_COLUMN_HEADER) The attribute is set to ‘X’ by default.

'X' = Yes, ' ' = No

Display column headers Display the labels to the left of the data

SHOW_ROW_HEADER) The attribute is set to ‘X’ by default.

'X' = Yes, ' ' = No

Display data cells (SHOW_DATA_CELLS) The data cells are shown by default. That is,

the attribute is set to ‘X’ by default.

'X' = Yes, ' ' = No

Affected data provider List of data providers to which all table

commands are sent.

(TARGET_DATA_PROVIDER)

Display data from value row Data row after which data is displayed

(DATA_ROW_FROM) The attribute is set to 1 by default.

Display data to value row (0=to the end) Data row to which data is displayed

The attribute is set to 0 by default. If the value

(DATA_ROW_TO)

is 0, the system tries to display all of the rows.

If there are too many, a scrolling area is

inserted. If the value is not 0, data is displayed

up to the specified row and there is no scrolling

area.

Display data from value column Data column after which the data is

(DATA_COLUMN_FROM) displayed

The attribute is set to 1 by default.

Display data to value column (0=to the end) Data column to which data is displayed

The attribute is set to 0 by default. If the value

(DATA_COLUMN_TO)

is 0, the system tries to display all of the

columns. If there are too many, a scrolling area

is inserted. If the value is not 0, data is

displayed up to the specified column and there

is no scrolling area.

Attributes that cannot be set in the Web Application Designer:

MODIFY_CLASS ABAP class that changes the table contents

By using the Web design API for tables, you

can adjust the contents of the table cells

individually.

Also see:

Web Design API for Tables [Seite 277]







Display the table with a maximum of 5 visible data columns and 10 visible

data rows. Start at row 30 and show a scrolling area above and below the

values







Web API Reference BW 3.5 18

SAP Online Help 25.02.2005















Web API Reference BW 3.5 19

SAP Online Help 25.02.2005























ITEM :Table



Display only the 3 data rows without headers



















ITEM :Table







You can find more information on using the Table Web item and its functionality under Context

Menu Functions [Extern] and Table [Extern].









Web API Reference BW 3.5 20

SAP Online Help 25.02.2005









Chart

Definition

A Web item that obtains data from a query view to create a graphic for a Web application.



Use

The Chart Web item enables you to display data graphically in your Web application.



Structure

As well as its general attributes [Seite 12], the Chart Web item has the following specific

attributes:

Attributes Description

Edit Chart: Chart Designer The button with the three dots brings you to the

Chart Designer. You can choose the chart type

(CUSTOMIZE)

and make a number of settings for the chart.

See Editing Charts [Extern].

Suppress Totals The totals rows/columns of the source data

provider are not displayed in the chart. This

(SUPPRESS_SUMS)

means that you can suppress totals that may

'X' = Yes, ' ' = No affect the chart display adversely, without

having to change the data provider.

Swap Display Axes You can swap the chart axes in the display

without changing the navigational state of the

(SWITCHMATRIX)

query view itself.

'X' = Yes, ' ' = No



This has the same effect as

swapping the two free

characteristics with one another in

the initial query view.

Hide Expanded Hierarchy Nodes You can remove open nodes when you create

charts in active presentation hierarchies. This

(SUPPRESS_OPENHIERARCHIENODES) ensures that the total of the values displayed is

'X' = Yes, ' ' = No the overall result.



Affected Data Provider List of data providers to which all chart

commands are sent.

(TARGET_DATA_PROVIDER)

Automatic Display of Units and Currencies If the units and currencies or other settings in

the query are the same, and you select the

(AUTOMATIC_LABELS) attribute, these are the units, currencies, and

'X' = Yes, ' ' = No settings which are displayed automatically on

the chart.

Alternatively, you can set the display of units

and currencies manually. See Formatting Axes

and Gridlines [Extern] in the section „Inserting

or Removing Axes Titles and Units “.







Web API Reference BW 3.5 21

SAP Online Help 25.02.2005





Chart Title (Language-Dependent) Language-dependent text for the title of the

chart.

(TITLE)

Chart Subtitle (Language-Dependent) Language-dependent text for the subtitle of the

chart.

(SUBTITLE)

Category Axis (X): Title (Language- Language-dependent text for the title of the

Dependent) category axis (X).



(TITLE_CATEGORIES)

Category Axis (X): Unit (Language- Language-dependent text for the unit of the

Dependent) category axis (X).



(UNIT_CATEGORIES)

Primary Value Axis (Y): Title (Language- Language-dependent text for the title of the

Dependent) primary value axis (Y).



(TITLE_VALUES)

Primary Value Axis (Y): Unit (Language- Language-dependent text for the unit of the

Dependent) primary value axis (Y).



(UNIT_VALUES)

Secondary Value Axis (Y): Title (Language- Language-dependent text for the title of the

Dependent) secondary value axis (Y).



(TITLE_SEC_VALUES)

Secondary Value Axis (Y): Unit (Language- Language-dependent text for the unit of the

Dependent) secondary value axis (Y).



(UNIT_SEC_VALUES)

Another Axis: Title Language-dependent text for the title of

another axis. This attribute is only needed for

(TITLE_SEC_CATEGORIES) specific chart types such as a histogram or a

scatter chart.

Another Axis: Unit Language-dependent text for the unit of

another axis. This attribute is only needed for

(UNIT_SEC_CATEGORIES) specific chart types such as a histogram or a

scatter chart.

Ignore Exception in Chart Display If you activate this attribute no exceptions are

displayed in the chart, although the data

(IGNORE_EXCEPTIONS) provider on which it is based has exceptions.

See Display of Exceptions for Maps and Charts

[Extern].

Automatic Axis Labeling for Simple Charts This attribute enables the system to create

labels automatically for the chart axes for very

(AUTOMATIC_DESCRIPTION) simple charts such as column-, bar, or line

diagrams. For example, the name of a key

figure appears on the Y axis in a bar chart.

For more information, see Automatic Axis

Labels for Simple Charts [Extern].

The texts, such as chart title, chart subtitle, as well as title and units of the axes, are all language

dependent. You can find additional information under Language-Dependent Texts [Seite 259].









Web API Reference BW 3.5 22

SAP Online Help 25.02.2005





You can enter the texts both in the Web Application Designer for the respective attributes and in

the Chart Designer.

Note the following for the Heading attribute under General (general attributes):

Heading You can enter a heading for the chart. This

heading is not a part of the chart.







Within Chart Designer, you also

have the option of specifying a

heading. This is not a part of the

chart, however.

The heading is displayed only if

the attribute Generate Heading is

active at the same time.

In addition, you can use the following attribute (parameter), which is not available to you in the

Web Application Designer, which, however, can be inserted using the HTML view of the Web

template.

Attribute Description

Show Data Table If you use this attribute the system shows the

data in a table below the chart.

(SHOW_DATATABLE)





You can find more information on using the Chart Web item and its functions under Context Menu

Functions [Extern].









Web API Reference BW 3.5 23

SAP Online Help 25.02.2005







Dropdown Box

Definition

The Web item Dropdown Box allows you to filter characteristic values from a Web application

in a dropdown box.



Use

When you select a value, the assigned query view is filtered according to this value. If a different

method is used to select a filter value for the characteristic in the dropdown box, the current filter

value appears in the dropdown box.



Structure

As well as its general attributes [Seite 12], the Dropdown Box Web item also has the following

attributes:

Attributes Description

Index in the filter command (INDEX) Must have a clear value for all dropdown boxes

and radio button groups [Seite 27] within the

form tag.







This attribute must be changed

only if the ONLY_VALUES

attribute is active.

Characteristics / structure (IOBJNM) Name of characteristic / structure according

to which you want to filter

Specify the technical name of the characteristic

(for example, 0COUNTRY) or the structure (25

characters)







The technical name of the

characteristic is stored in the

query definition. In the BEx

toolbar, choose Change Query

View → Change Query (Local

View) or (Global View) → . The

technical names of the

InfoObjects are displayed.







Note that the characteristic you

have chosen must be included in

the query that the Web

application is based on.









Web API Reference BW 3.5 24

SAP Online Help 25.02.2005





Read mode (BOOKED_VALUES) Specifies which values in the master data table

are copied to the Checkboxes Web item as

filter values:

• M: All values from the master data table.

In some circumstances values that do

not appear in the data provider under the

current filter conditions and that produce

the result No suitable data found when

filtered, might also be displayed.

However, this process is fastest under

certain conditions.

• D: Values that are basically posted,

whereby the current drilldown status is

not fully taken into consideration.

• Q: Only values that are also posted in

the Data Provider under the currently

valid filter conditions are displayed. It can

take a long time under certain

circumstances.

Maximum number of values in the Contains the maximum number of values that

dropdown box (MAXVALUES) are displayed in the dropdown box.

(optional)



If this attribute has the value 0, all

the available values are written in

the dropdown box.

Label (SHOW_LABEL) Use BW description as label

'X' = Yes, ' ' = No If this attribute is activated, the long text of the

characteristic is written as a label in front of the

dropdown box. In addition, you can use the

context menu related to the description of the

characteristic in this label.

Display values only (ONLY_VALUES) Create dropdown box only

'X' = Yes, ' ' = No If you activate this attribute, only the HTML

form Web item for the value list is created. In

(optional)

this case you have to create the form in which

the dropdown box is contained manually.







This attribute is suitable for

creating forms [Seite 234] that

contain several dropdown boxes.

Do not display entry All values If this field is not blank, the entry All values is

not set as a selection option in the radio button

(NO_REMOVE_FILTER) group.

'X' = Do not offer “All values”,

' ' = Display entry “All values”









Web API Reference BW 3.5 25

SAP Online Help 25.02.2005





Data provider affected Contains a list of all data providers to which the

filter commands are sent.

(TARGET_DATA_PROVIDER)





If you filter according to a

characteristic and then activate

this attribute, the different data

providers for the Web item are

notified. For further information

about this attribute, see General

Attributes [Seite 12].

You will find more information on using the Dropdown Web item and its functionality under

Dropdown Box, Radio Button Group, Checkboxes, Hierarchical Filter Selection. [Extern]









Web API Reference BW 3.5 26

SAP Online Help 25.02.2005









Radio Button Groups

Definition

The Radio Button Group Web Item allows you to filter characteristic values in a group of radio

buttons.



Use

When you select a value, the assigned query view is filtered according to this value. If you select

a filter value in another way for the characteristic of the radio button group, the current filter value

is selected.



Structure

As well as its general attributes [Seite 12], the Radio Button Group Web item has the following

attributes:

Attributes Description

Characteristics / structure (IOBJNM) Name of the characteristic / structure by

which the system is to filter

Specify the technical name of the characteristic

(for example, 0COUNTRY) or the structure (25

characters)







The technical name of the

characteristic is stored in the

query definition. In the BEx

toolbar, choose Change Query

View → Change Query (Local

View) or (Global View) → . The

technical names of the

InfoObjects are displayed.







Note that the characteristic you

have chosen must be included in

the query that the Web

application is based on.









Web API Reference BW 3.5 27

SAP Online Help 25.02.2005





Read mode (BOOKED_VALUES) Specifies which values in the master data table

are copied to the Checkboxes Web item as

filter values:

• M: All values from the master data table.

In some circumstances values that do

not appear in the data provider under the

current filter conditions and that produce

the result No suitable data found when

filtered, might also be displayed.

However, this process is fastest under

certain conditions.

• D: Values that are basically posted,

whereby the current drilldown status is

not fully taken into consideration.

• Q: Only values that are also posted in

the data provider under the currently

valid filter conditions are displayed. It can

take a long time under certain

circumstances.

Maximum number of displayed values Contains the maximum number of values that

(MAXVALUES) are displayed in the radio button group.

(optional)



If you set the value to 0, all the available values

in the radio button group are displayed.

Label (SHOW_LABEL) Use BW description as label

'X' = Yes, ' ' = No If this attribute is activated, the long text of the

characteristic is written as a label in front of the

radio button group. In addition, you can use the

context menu related to the description of the

characteristic in this label.

Entries next to one another If this attribute is activated, the different

(HORIZONTAL_ALIGNMENT) characteristic values are grouped vertically. If

this attribute is deactivated, the characteristic

'X' = Yes, ' ' = No

values are grouped horizontally.

Number of entries next to one Contains the number of entries listed next to

another/below one another one another or below one another, depending

(HORIZONTAL_NUMBER) on the attribute settings for

HORIZONTAL_ALIGNMENT.









Web API Reference BW 3.5 28

SAP Online Help 25.02.2005





Display values only (ONLY_VALUES) Create radio button group only

‘X’ = Yes, ‘ ’ = No If you activate this attribute, only the HTML

form Web item for the radio button group is

created. Here you have to create the form, in

which the radio button group is contained,

manually.







This attribute is suitable for

creating forms [Seite 234] that

contain several radio button

groups.

Do not display entry All values If this field is not blank, the entry All values is

not set as a selection option in the radio button

(NO_REMOVE_FILTER)

group.

'X' = Do not offer “All values”,

' ' = Display entry “All values”

Affected data provider List of data providers to which all selection

button commands are sent.

(TARGET_DATA_PROVIDER)

Index in the filter command (INDEX) Must have a unique value for all dropdown

boxes and radio button groups [Seite 27] within

(optional)

the form tag.







This attribute must be changed

only if the ONLY_VALUES

attribute is active.

You will find more information on using the Radio button-group Web item and its functionality

under Dropdown Box, Radio Button Group, Checkboxes, Hierarchical Filter Selection [Extern].









Web API Reference BW 3.5 29

SAP Online Help 25.02.2005









Checkboxes

Definition

Checkboxes is a Web item that places characteristic values to be filtered in a group of

checkboxes.



Use

The Checkboxes Web item can be used to easily filter a connected query view according to a

particular characteristic.

You can set or remove filter values in the Web application by setting the indicators.



Structure

As well as its general attributes [Seite 12], the Checkboxes Web item has the following attributes:

Attribute Values Description

Characteristic/structure Selection list Select the technical name of

the characteristic.

(IOBJNM)

Characteristics and structures

are read from data providers.

The characteristic values are

provided in a dropdown box in

the Web application as filter

values.

Read mode • Master data table (M) Specifies which values in the

master data table are copied

(BOOKED_VALUES) • Dimension table (D) to the Checkboxes Web item

• Posted values (Q) as filter values:

Standard setting “Dimension • M: All values from the

table” master data table.

In some circumstances

values that do not

appear in the data

provider under the

current filter conditions

and that produce the

result No suitable data

found when filtered,

might also be displayed.

However, this process is

fastest under certain

conditions.

• D: Values that are

basically posted,

whereby the current

drilldown status is not

fully taken into

consideration.







Web API Reference BW 3.5 30

SAP Online Help 25.02.2005





• Q: Only values that are

also posted in the data

provider under the

currently valid filter

conditions are

displayed. This can take

a long time in some

instances.

Maximum number Default value: “0” Maximum number of displayed

filter values If "0", all values

(MAXVALUES)

are displayed.

Maximum length Maximum number of

characters in the label.

(MAXLENGTH)

Label ‘X’ = Yes, ‘ ’ = No If this attribute is activated, the

long text of the characteristic

(SHOW_LABEL) Default setting: ‘X’ = Yes

is written as a label in front of

the control box.

Affected data provider Selection list List of data providers to which

all checkbox commands are

(TARGET_DATA_PROVIDER)

sent.

Entries next to one another ‘X’ = Yes, ‘ ’ = No Order entries next to one

(HORIZONTAL_ALIGNMENT) another

Default setting: ‘ ‘ = No

If this attribute is activated, the

different characteristic values

are grouped vertically. If this

attribute is deactivated, the

characteristic values are

grouped horizontally.

Number of entries next Default value: 1 Contains the number of entries

to/under one another listed next to one another or

(HORIZONTAL_NUMBER) below one another, depending

on the attribute settings for

HORIZONTAL_ALIGNMENT.

You will find more information on using the Checkboxes Web item and its functionality under

Dropdown Box, Radio Button Group, Checkboxes, Hierarchical Filter Selection. [Extern]









Web API Reference BW 3.5 31

SAP Online Help 25.02.2005









Generic Navigation Block

Definition

A Web item that obtains data from a query view to create a generic navigation block for a Web

application. This block contains keys that you can use to transfer characteristics, for example, into

rows or columns.



Use

The Web item (Generic Navigation Block) displays the navigational state of a query view in

the Web application in the form of a table. All characteristics and structures in the query view are

listed in the table and their filter values are displayed. You can change the navigational status of

the query view. You can transfer characteristics and structures to an axis (rows or columns) or

from an axis. You can filter according to single values and remove the filter again.



Structure

As well as its General Attributes [Seite 12], the Generic Navigation Block Web item has the

following attributes:

Attributes Description

Read mode This attribute specifies which values in the

master data table are copied to the

(BOOKED_VALUES)

Checkboxes Web item as filter values:

(BOOKED_VALUES_N)

• M: All values from the master data table.

“Master data table”

In some circumstances values that do

“Dimension table” not appear in the data provider under the

current filter conditions and that produce

“Posted values”

the result No suitable data found when

filtered, might also be displayed.

However, this process is fastest under

certain conditions.

• D: Values that are basically posted,

whereby the current drilldown status is

not fully taken into consideration.

• Q: Only values that are also posted in

the data provider under the currently

valid filter conditions are displayed. It can

take a long time under certain

circumstances.

Read mode for filter items

The “master data” read mode may lead to

many unposted values being displayed; the

“posted values” read mode may be slow.

Grouping axes If you set the indicator for this attribute, free

characteristics, characteristics in the rows and

(SHOW_AXES_GROUPING)

the characteristics in the columns will be

‘X’ = Yes, ‘ ’ = No displayed in groups.









Web API Reference BW 3.5 32

SAP Online Help 25.02.2005





Characteristics of the rows collapsed If you set the indicator for this attribute, the

characteristics for the rows are displayed

(ROWS_CLOSED)

collapsed in the grouped display.

‘X’ = Yes, ‘ ’ = No

Characteristics of the columns collapsed If you set the indicator for this attribute, the

characteristics for the columns are displayed

(COLUMNS_CLOSED)

collapsed in the grouped display.

‘X’ = Yes, ‘ ’ = No

Free characteristics collapsed If you set the indicator for this attribute, the free

characteristics will be displayed collapsed in

(FREE_CHARACTERISTICS_CLOSED)

the grouped display.

‘X’ = Yes, ‘ ’ = No

Display empty filter If you set the indicator for this attribute, the

empty filters will be displayed in the grouped

(SHOW_EMPTY_SLICER)

display.

'X' = Yes, ' ' = No

Delimitation between the characteristics If you set the indicator for this attribute, the

characteristics in the non-grouped display are

(SHOW_MARGIN)

separated from one another.

‘X’ = Yes, ‘ ’ = No

Order entries next to one another As well as arranging the characteristics below

(HORIZONTAL_ALIGNMENT) one another, you can also display them next to

one another. In many cases, this makes better

‘X’ = Yes, ‘ ’ = No

use of the display area and there is a stronger

visual link between, for example, the table and

the navigation block.

Entries next to one another Describes the maximum number of

(HORIZONTAL_NUMBER) characteristics that can be displayed next to

one another. If the navigation block contains

Default value: 3

more than the specified number of

characteristics, then it is automatically

displayed in more than one row, where the

number of characteristics per row is optimized

regarding the equal distribution of rows and the

required number of characteristics.







This attribute is only included

when

HORITONTAL_ALIGNMENT

(Define entries next to one

another) is activated.

Maximum filter value length You specify the number of characters,

(FILTER_VALUE_LENGTH) according to which filter value is indicated, by

.

Default value: 80





If you set the value to 0, then the complete filter

value is displayed.









Web API Reference BW 3.5 33

SAP Online Help 25.02.2005





Display characteristics of the rows If you set the indicator for this attribute, the

characteristics of the rows are displayed.

(SHOW_ROWS)

‘X’ = Yes, ‘ ’ = No

Display characteristics of the columns If you set the indicator for this attribute, the

characteristics of the columns are displayed.

(SHOW_COLUMNS)

‘X’ = Yes, ‘ ’ = No

Display free characteristics If you set the indicator for this attribute, the free

characteristics are displayed.

(SHOW_FREE_CHARACTERISTICS)

‘X’ = Yes, ‘ ’ = No

Displaying navigation icons If you set the indicator for this attribute, the

icons for navigation are displayed.

(SHOW_NAVIGATION_ICONS)

Display filter icons If you set the indicator for this attribute, the

icons for filtering are displayed.

(SHOW_FILTER_ICONS)

‘X’ = Yes, ‘ ’ = No

Frame name for input help You can display input help in a different frame

(TARGET_HELP_FRAME) from the data. If you activate this attribute,

input help is displayed in the same window.

(optional)





This parameter is not offered in

the Web Application Designer and

can only be used for

parameterization in the Web

template.

List of characteristics with read mode This attribute contains a list of characteristics

with read mode. You can select a characteristic

(IOBJNM_LIST)

of a structure and activate the read mode for it.

Affected data provider This attribute contains a list of all data

providers to which the navigation block is sent.

(TARGET_DATA_PROVIDER)





If you filter according to a characteristic and

then activate this attribute, the different data

providers for the Web item are notified. For

further information about this attribute, see

General Attributes [Seite 12].

Table interface class Table interface class

(MODIFY_CLASS) By using the Web design API for tables, you

can adjust the cell content individually in the

navigation block.

See also:

Web Design API for Tables [Seite 277]









Web API Reference BW 3.5 34

SAP Online Help 25.02.2005





List of navigation block entries Listing the names of characteristics and

(ITEM_NAV_BLOCK_IOBJNM_N) structures enables you to determine which

entries appear in the navigation block, and in

(optional)

which order.





In the WAD, this attribute is

If you do not specify this

displayed using the List of

parameter, all characteristics and

Characteristics with Read Mode

structures in the navigation block

attribute (IOBJNM_LIST).

are displayed.

You can find more information on using the Generic navigation block Web item and its functions

under Generic Navigation Block [Extern].









Web API Reference BW 3.5 35

SAP Online Help 25.02.2005









Hierarchical Filter Selection

Definition

Web item that creates a hierarchical filter selection from the hierarchy of a characteristic or

structure. The hierarchy nodes appear as menu entries and can be set as a filter.



Use

Using the hierarchical filter selection you can filter a query view by hierarchy nodes.



Structure

As well as its general attributes [Seite 12], the Web item Hierarchical Filter Selection has the

following attributes:

Attribute Values Description

Reload level dynamically ‘X’ = Yes, ‘ ’ = No Reload from levels underneath

(DYNAMIC) Default setting: ‘X’ = Yes the start level.

If this attribute is set, the

levels below the start level

are reloaded dynamically, if

required. Otherwise, they

are not offered.

Characteristic/structure Selection list Select the technical name of

the characteristic/structure.

(IOBJNM)

The hierarchy and structure

nodes are read from the data

provider and can be used as

filter values in the selection.

Hierarchy name Selection list Technical name of the

hierarchy which should be

(HIERARCHY_NAME)

used for filtering nodes. If the

field is blank, the system uses

the hierarchy that is currently

set.

Version Selection list Version of the hierarchy that

should be used for filtering

(HIERARCHY_VERSION)

nodes. If the field is blank, the

current version of the

presentation hierarchy is used.

Key Date Key date for which the

hierarchy is evaluated.

(DATE)

The hierarchy is used as it

existed on the given date. If

this field is blank, the key date

of the query is used.









Web API Reference BW 3.5 36

SAP Online Help 25.02.2005





You can remove

the key date

using the Delete

Date pushbutton.

Label ‘X’ = Yes, ‘ ’ = No Display the description for the

Default setting: ‘X’ = Yes characteristic.

(SHOW_LABEL)

This attribute allows you to

either show or hide the display

of the characteristic

description.

Drill level Default value: “3” Maximum drill level of the filter

selection (blank= drill level

(DRILL_LEVEL)

corresponding to query

definition)

Affected data provider List of data providers to which

all hierarchy commands are

(TARGET_DATA_PROVIDER

sent.

)









Web API Reference BW 3.5 37

SAP Online Help 25.02.2005









Filters

Definition

A filter is a Web item that displays the filter values resulting from navigation for a query view in

the Web application.



Use

The Web item Filter displays the filter values that have been generated by navigating in a

query view in a Web application. You also use filters to select individual values.



Structure

As well as its general attributes [Seite 12], the Filter Web item has the following attributes:

Attributes Description

Display Filter Values The filter value is displayed in accordance with

the setting. If no display is specified for an

PRESENTATION (optional)

index, the index 0 display (no index) is used.

PRESENTATION_N (optional)

'KEY' = key

If this parameter is not specified,

'TEXT' = Descriprtion

the display, which is valid for the

'KEY_TEXT' = Key and description characteristic, is used.

'TEXT_KEY' = Description and key

List of characteristics List of characteristics with display

(ITEM_LIST)

Maximum filter value length You specify the number of characters,

(FILTER_VALUE_LENGTH) according to which a filter value is indicated, by

“...”.

Default value: 0





If you keep the value as 0

(default), the complete filter value

is displayed.

Only display values When you activate this attribute, the filter

values are displayed without any labeling, and

(ONLY_VALUES)

the formatting is separated using semi-colons.

"X" = Yes, " " = No









Web API Reference BW 3.5 38

SAP Online Help 25.02.2005





List characteristics and structures Listing the names of characteristics and

(ITEM_FILTER_IOBJNM_N) structures enables you to determine which

entries appear in the filter and in which order.

(optional)

Only those entries for which a filter value exists

are displayed. The remaining entries are

skipped over.

This attribute is displayed in the

Web Application Designer in the

attribute list of the characteristic

If you do not specify this

(ITEM_LIST).

parameter, all the characteristics

and structures that are filtered are

displayed.

If you combine ONLY_VALUES=X and ITEM_FILTER_IOBJNM=MyInfoObject, it is possible to

identify a single filter value in the Web template. This is also useful in headers, for example.







Displaying filter values for the characteristic Calendar year without formatting

















ITEM :Filter



Input field for filtering according to Calendar year with preassigned dynamic

filters (only works with single value filters)

" method="post">

Calendar year:

















ITEM :Filter

















Web API Reference BW 3.5 39

SAP Online Help 25.02.2005









Web API Reference BW 3.5 40

SAP Online Help 25.02.2005









Label

Definition

The Web item Label allows you to display the descriptions of characteristics, attributes, or

structural components. You can also create a link to the context menu of these characteristics,

attributes, or structural components.



Use

This Web item, together with the Web items Dropdown-Box [Seite 24] and Radio Button-Group

[Seite 27], can be used for configuring a comfortable cockpit. You can create navigation blocks by

putting different labels for characteristics and structural components into a table.



Structure

As well as its general attributes [Seite 12], the Label Web item has the following attributes:

Attribute Description

Context menu (CONTEXT_MENU) If this attribute is activated, a link to the context

menu of the characteristic or the structural

'X' = Yes, ' ' = No

component is displayed in the description of

the characteristic.

Characteristics / structure (IOBJNM) Name of the characteristic/structure

Specify the technical name of the characteristic

(for example, 0COUNTRY) or the structure (25

characters)







The technical name of the characteristic is

stored in the query definition. In the BEx

toolbar, choose Change Query View →

Change Query (Local View) or (Global View) →

. The technical names of the characteristics

are displayed.

Structural component Structural component whose text or context

(STRUCTURE_MEMBER) menu is displayed.

Attribute name (ATTRINM) Technical name of the attribute whose header

is to be displayed as a label.

Only display values Unformatted display

(ONLY_VALUES) Only the link to the context menu is generated.

'X' = Yes, ' ' = No If this attribute is activated, only the link to the

context menu is displayed. The label is

displayed without formatting. You can

determine in the Web template how you would

like to put the link underneath.









Web API Reference BW 3.5 41

SAP Online Help 25.02.2005









If you would like to add a label for a structural component in your Web application,

then you have to enter the technical name of the structure under InfoObject and

enter the filter value of the structure under Structural Component

(STRUCTURE_MEMBER). The correct values are determined as follows:

a. Execute a Web application that contains the structural component.

b. Filter according to the structural component in question: Choose Keep as filter value in

the context menu of the structural component.

c. Copy the parameter value FILTER_IOBJNM from the URL into the clipboard.

d. Choose the attribute in the Web Application Designer and enter the value that was saved

in the clipboard.

e. Copy the parameter value FILTER_VALUE from the URL into the clipboard.

f. Choose the attribute Structural component from the Web item Label in the Web

Application Designer and enter the value that was saved in the clipboard.

g. Save your entries.

You can find more information on using the Label Web item and its functionality under Context

Menu Functions [Extern].









Web API Reference BW 3.5 42

SAP Online Help 25.02.2005









Text Elements

Definition

Web item that displays the text elements for a query view in a Web application.



Use

The Web item Text Element provides information on the query, on which the query view, and

therefore the Web application, is based. You can also select 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:

• general text elements:

− technical name of the query (REPTNAME)

− description of the query (REPTXTLG)

− InfoProvider (INFOCUBE)

− key date for the query (SRDATE)

− validity of the data (date and time) (ROLLUPTIME)

− the person who wrote the query (AUTHOR)

− the last time the query was changed (date and time) (MODTIME)

− the last person to make changes to the query (MODUSER)

− current user (SYUSER)

− the last time the query was refreshed (date and time) (SYUZEIT)

• Variables

• static filter values

As well as its general attributes [Seite 12], the Text Elements Web item has the following

attributes:

Attributes Description

Display general text elements If you activate this attribute, the common text

(SHOW_COMMON_ELEMENTS) elements are displayed.

‘X’ = Yes, ‘ ’ = No

Display static filter values If you activate this attribute, the filter values

(SHOW_FILTERS) that you determined in the filter area of the

query definition are displayed.

‘X’ = Yes, ‘ ’ = No

Display variable values If you activate this attribute, the variable values

(SHOW_VARIABLES) for the query (on which the Web application is

based) are displayed.

‘X’ = Yes, ‘ ’ = No









Web API Reference BW 3.5 43

SAP Online Help 25.02.2005





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 See above: List of Text Elements

(ELEMENT_TYPE_N)

COMMON = General text element

FILTER = Static filter value

Both attributes, List of Text VARIABLE = Variable value

Elements (ELEMENT_NAME_N)

VARIABLE_KEY = Key for variable value

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.





List of elements This attribute contains a list of text elements

with type and name. You can choose the type

(ITEM_LIST)

of text element from the list or enter the name

of the item manually.

Only display values If you activate this attribute, the values for the

text elements are displayed without any

(ONLY_VALUES)

labeling, and the formatting is separated by

‘X’ = Yes, ‘ ’ = No 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

















Web API Reference BW 3.5 44

SAP Online Help 25.02.2005





















ITEM :Text











Web API Reference BW 3.5 45

SAP Online Help 25.02.2005









List of Exceptions

Definition

A Web item that lists the existing exceptions and their status (active/not active) for a stored query

view in the Web application.



Use

The List of Exceptions Web item displays the status of the exceptions for a stored query view

in the Web application, in the form of a table. For each exception, the status of the exception

(active/not active) is also displayed. You can activate or deactivate the exceptions by clicking on

the symbol.



Structure

The Web item List of Exceptions has only general attributes.

See General Attributes [Seite 12]

You can find more information on using exceptions under Exception Reporting [Extern].

You can find more information on using the List of Exceptions Web item and its functions under

Context Menu Functions [Extern] and List of Exceptions [Extern].









Web API Reference BW 3.5 46

SAP Online Help 25.02.2005









List of Conditions

Definition

A Web item that displays all of the existing conditions and their status (active/not applicable/not

used) for a stored query view in the Web application.



Use

The List of Conditions Web item displays the status of conditions for a stored query view in the

Web application, in the form of a table. All of the conditions that can be applied to the current

navigation status for the query view are listed. The status of the condition is displayed for every

condition (active/not applicable/not used). You use the symbol to activate/deactivate the

conditions.

You can find additional information on navigation options in the list of conditions under List of

Conditions [Extern].



Structure

The Web item List of Conditions only has general attributes.

See General Attributes [Seite 12].





Also see:





You can find additional information about the scope of functions of conditions under Conditions

[Extern].

You can find additional information about the usability and status descriptions of conditions under

Using Conditions [Extern].

You can find more information on using the List of Conditions Web item and its functions under

List of Conditions [Extern].









Web API Reference BW 3.5 47

SAP Online Help 25.02.2005









Alert Monitor

Definition

A Web item that the query views display as a list or a hierarchy in a Web application. These query

views were found during background processing by the Reporting Agent [Extern].



Use

With the help of the Alert Monitor Web item, you can go to the query views generated in the

Exception Reporting [Extern] and Reporting Agent processes and see at a glance any noticeable,

deviating key figures from defined threshold values. You can also set filters.







Since there is only one data source for the Alert Monitor, there is no need to set up

the Alert Monitor Web item as a separate data provider. The Alert Monitor Web item

generates a suitable data provider for itself and transfers the filter operations to this

data provider automatically.



Structure

In addition to its general attributes [Seite 12], the Alert Monitor Web item has the following

attributes:

Attributes Description

Query (FILTER_QUERY) You can use this attribute to filter according to

entries that come under a specific query. If you

do not specify a query, no filter applies.

Display minimal view list (MINIMAL_VIEW) When you go to the detail view, only the key

figure columns are displayed for which

(optional) exceptions can arise.

'X' = Yes, ' ' = No If you do not specify the parameter, the key

figures are shown as scheduled.

InfoCube (FILTER_INFOCUBE) You can use this attribute to filter according to

entries that come under a specific InfoCube. If

you do not specify an InfoCube, no filter

applies.

InfoArea (FILTER_INFOAREA) You can use this attribute to filter according to

entries that come under a specific InfoArea. If

you do not specify an InfoArea, no filter

applies.

Red entries (FILTER_RED) If you activate this attribute, you see the rows

with at least one red entry.

"X" = Yes, " " = No

Yellow entries (FILTER_YELLOW) If you activate this attribute, you see the rows

with at least one yellow entry.

"X" = Yes, " " = No

Green entries (FILTER_GREEN) If you activate this attribute, you see the rows

with at least one green entry.

"X" = Yes, " " = No









Web API Reference BW 3.5 48

SAP Online Help 25.02.2005





Do not display number of alerts You can use this attribute to determine that the

(SUPPRESS_NUMBERS) number of alerts not be displayed in the alert

monitor. Only the current alert symbol is

"X" = Yes, " " = No

shown.

Display highest alert level Instead of displaying red, yellow, and green

(DISPLAY_MAX_LEVEL) entries with their frequency for each query

view, you can display just the entry with the

"X" = Yes, " " = No

highest alert level. This may make the display

easier to study.

Number of rows in table (BLOCK_SIZE) Number of rows displayed at once in the table.

Default value: 10 With the help of this attribute, you can

determine the number of entries you want to

display at the same time.







We recommend that you restrict

the number of entries, especially

when the number of alerts is high.







If you set the value to 0, all

entries are displayed.

If there are more rows with alerts,

an index is added for you to scroll

down.

Display as hierarchy (HIERARCHY) If you activate this attribute, the alerts are

displayed in a hierarchy, starting with the level

"X" = Yes, " " = No

of InfoArea, InfoProvider, and query, and going

up to the individual query views. If you

deactivate this attribute, the alerts are

displayed as a flat list. This means only the

query views are displayed (no InfoAreas,

InfoProviders, or queries).

Template for display Web template upon which the detail view

display is based.

(TARGET_TEMPLATE_ID)

(optional)









Web API Reference BW 3.5 49

SAP Online Help 25.02.2005





List display This setting only affects the non-hierarchical

display. You can set the criteria according to

(LIST_FOCUS_LEVEL)

which alerts are to be displayed. You can

choose from the following types:

• VIEW: Navigational state

• CELL: Individual Cells

• EXCEPTIONS: Exceptions

• INFOAREA: InfoArea

• InfoCube: INFOCUBE

• QUERY: Query

Only lines of this type are displayed according

to the selection.

List of columns with labels You can structure the columns however you

want and display headers for the individual

(COLUMN_LIST)

columns. Under Column Name, choose the

type of column and enter the desired column

heading for each.

The following column types are available:

• TEXT: Text

• ACTION: Action

• VALUE: Value with individual cells

• DOCUMENT: Document display

• MAX_LEVEL: Display greatest alert level

• RED: Number of red exceptions

• YELLOW: Number of yellow exceptions

• GREEN: Number of green exceptions

• DATE: Creation date

• TIME: Creation time

In the Reporting Agent you can make a setting

so that the alert monitor entries are given a

URL. To do this you need to maintain an entry

in the Action (ACTION) column here. You can

find more information under Editing Follow-Up

Actions: Alert Monitor Entry [Extern].







This attribute compounds the

attributes COLUMN_NAME and

COLUMN_CAPTION.

Display column captions If you do not activate this attribute, then the

column headings are not displayed.

(DISPLAY_COLUMN_CAPTION)

'X' = Yes, ' ' = No





Web API Reference BW 3.5 50

SAP Online Help 25.02.2005





Display toolbar If this attribute is specified, then the user can

control the attributes FILTER_RED,

(DISPLAY_TOOLBAR)

FILTER_YELLOW, FILTER_GREEN,

'X' = Yes, ' ' = No HIERARCHY, and LIST_FOCUS_LEVEL using

a toolbar.

Display Data Provider The detail view for an entry can also be

displayed in the same Web template. To do

(DISPLAY_DATA_PROVIDER) this, the logical name of the DataProvider to be

(optional) used for the display must be specified. The

Web items that retrieve your data from this

'X' = Yes, ' ' = No DataProvider display the detail view for the

Alert Monitor entry automatically.

In addition, you can use the following attribute, which is not available to you in the Web

Application Designer, which, however, can be inserted using the HTML view of the Web template.

Attribute Description

Detail frame (TARGET_FRAME) Name of the frame for the detail view

If you do not specify a detail frame, the detail

view is displayed using pure HTML in the same

window and opens a separate window using

activated Java Script.







The parameters JUMP_WBID and JUMP_PAGEID used in BW 2.x are still

supported. However, we recommend that you no longer use these.









Web API Reference BW 3.5 51

SAP Online Help 25.02.2005









Role Menu

Definition

The Role Menu Web item displays user favorites and/or roles in a tree.



Prerequisites

You have maintained roles and assigned them to the users. You can find more information under

Users and Roles (BC-SEC-USR) [Extern] and under Setting Up Authorizations with Role

Maintenance [Extern].



Use

You can restrict the role menu to user favorites and roles or to a particular role. No menu entries

are shown if the user is not assigned to this particular role. You can filter the menu entries

according to various categories. A menu entry is a URL in a BEx Web application, for example.

You can use the attribute TARGET to define in which window the URL is executed.



Structure

As well as its general attributes [Seite 12], the Role Menu Web item has the following attributes:

Attributes Description

List of Roles • Restriction to favorites and/or specific

roles

(ROLE_1, ROLE_2, ROLE_...)

• If no entry is made, the assigned roles

and favorites of the user are displayed.

• The favorites can be displayed with

ROLE=SAP_BW_FAVORITES_ (with

two ‘_’ between SAP_BW and

FAVORITES_). Do so by selecting the

entry Own Favorites from the list.

• If you want to restrict the display to

specific roles, choose these roles from

the list.

• You can also use multiple selection of

roles to display individual roles within a

collective role using the Role Menu Web

item. However, the collective roles are

not available as F4 help.

Number of levels. Number of levels that are initially read.

(LEVEL) The role menu is initially loaded with the

specified levels. Further levels are read

‘0’ = all levels

dynamically by expanding folders. All levels are

read for LEVEL=0.









Web API Reference BW 3.5 52

SAP Online Help 25.02.2005





Filters Filter menu entries according to type

(FILTER) You can filter according to the following types

or type combinations.

• 'U' = URLs

• 'P ' = Web templates

• ‘Y’ = Queries

• 'R ' = Crystal Reports

All entries for these types are displayed when a

filter is not specified.







For example, the filter ‘UP’ shows

all URLs and Web templates with

reference to ROLE.

Name of Target Frame Name of the frame for executing menu

entries.

(TARGET)

The URL is executed in the specified frame

behind a menu entry.

Scroll Bar Display Scrollbar display

(SCROLL_STYLE) Scrollbars are displayed either dependently on

the size of the contents (Auto) or independently

“Auto” = Automatic (when needed)

of the size, either always (Yes) or never (No).

“Yes” = Scrollbar always displayed

“No” = Scrollbars never displayed









Web API Reference BW 3.5 53

SAP Online Help 25.02.2005





Display with IFrame Display as IFrame

(IFRAME) You can display the Role Menu Web item in an

Iframe (a frame imbedded in HTML) or in a

'X' = Yes, ' ' = No

frameset. On the one hand, the combination

from other Web items with the Role Menu Web

item is possible for an IFrame. On the other

hand, Netscape 4.7 and PDAs do not support

IFrames. Only the Role Menu Web item is

displayed for the Frameset. The other Web

items are ignored.

The advantage of IFrames is that they allow

you to structure the HTML page for the role

menu freely, for example, with text, logos, or

other Web items. The role menu in the frame

set is created generically and cannot be

changed externally.







If a role menu is called up with

IFrame on Netscape 4.7 or on a

PDA, the IFrame is ignored and a

frameset is automatically sent to

the Web browser.

Display with Frame around IFrame Displaying the frame around the IFrame

(IFRAME_STYLE) A frame border is displayed around the IFrame.

The proposed value is ‘ ‘ = No.

‘X’ = Yes, ‘ ’ = No

User and logo display User and logo display

(DISPLAY_USER) Above the role menu, the user name is

displayed along with a logo.

'X' = Yes, ' ' = No

Logo Icon Path Path of the logo icon

(ICON_LOGO) The path of the icon in the MIME repository

that is displayed as a logo. You can only use

this attribute in the context of DISPLAY_USER.

For example: ‘Bex/Icons/s_logo.gif’

Logo Height in Dots Logo height in dots

(HEIGHT_LOGO) You can use this attribute to individually adjust

the height of your logo. It particularly makes

sense to set this attribute when you have

specified your own logo using the attribute

Logo Icon Path (ICON_LOGO), and where the

height of this logo does not match the default

SAP logo height.

Hierarchy display with colors Each hierarchy level is displayed with a

different color.

(HIERARCHY_COLOR)

‘X’ = Yes, ‘ ’ = No









Web API Reference BW 3.5 54

SAP Online Help 25.02.2005





First level not displayed The entries in the second hierarchy level are

displayed.

(HIDE_FIRST_LEVEL)

‘X’ = Yes, ‘ ’ = No

Display with icons The entries in the role menu are each given an

appropriate icon, regardless of the type.

(DIFF_ICONS)

‘X’ = Yes, ‘ ’ = No









Web API Reference BW 3.5 55

SAP Online Help 25.02.2005









Ticker

Definition

The Web item Ticker enables you to display the content of a table as a ticker.



Use

To use the ticker, you need a Web browser that enables JavaScript.



Structure

As well as its general attributes [Seite 12], the Role Menu Web item has the following attributes:

Attributes Description

Create invisible form Create invisible form.

(ONLY_VALUES) You can create an invisible form so that you

can further process the ticker text.

‘X’ = Yes, ‘ ’ = No

Separator Separator between two ticker rows.

(SEPARATOR) Separators are added when the data for a new

data row is displayed.

Speed in milliseconds. Time in milliseconds until the ticker moves

again.

(SPEED)

Default value: 200

Width of the ticket text in characters Width of the ticket text in characters.



(TICKER_SIZE)

Default value: 60

Place title at start of ticker text Place title at start of ticker text.



(USE_CAPTION)

‘X’ = Yes, ‘ ’ = No

Default setting: ‘X’ = Yes

Delay in milliseconds Delay in milliseconds until the ticker starts run.



(DELAY)

Default value: 3000









Web API Reference BW 3.5 56

SAP Online Help 25.02.2005









Maps

Purpose

Many characteristics in the Business Information Warehouse, for example, customer, sales

region, and country, contain important geographical characteristics. The geographical information

can be evaluated in a map together with the business-orientated, relevant key figures.

Use maps to visualize business-oriented connections and distributions. You can clearly display

specific key figures as color shading, pie charts, or bar charts for a country, a region, or a city.









You have the option to change the view of a map in which you either zoom in to display a detailed

view or zoom out for an overall view. In this way, it becomes easier to view, for example, the

sales analysis of a specific product that refers to a specific region or a country You can recognize

the potential or dangers of a market all at a glance.









Integration

Maps help you with reporting geo-relevant data. By using the map Web item, you determine a

geographical display in the BEx Web Application Designer for your business-oriented data for the

Web application.

Geo-relevant InfoObjects are stored and maintained in the Metadata Repository. The master

data for geo-InfoObjects is equipped with geo-attributes. Assigning the range of geographic to

business-oriented data (mapping/geocoding) using an external tool: ArcView from ESRI

(Environmental Systems Research Institute).



Features

With maps you prepare and evaluate data of a geographical nature (characteristics such as

customer, sales region, and country, for example). The geo-relevant data is displayed graphically

on a map. Using enhanced navigation options (“geographical drilldown”), regional information can





Web API Reference BW 3.5 57

SAP Online Help 25.02.2005





be evaluated more easily at different levels of detail. A map shows the spatial proximity of places

and regions, allowing geographical connections to be more clearly represented.



Process Flow

The following graphic illustrates the geographic evaluation of data run by the system:



Business Explorer

Browser

Browser



Analyzer

Analyzer





Grid Data

Grid Data Map Data

Map Data





API

BW Server

OLAP Processor

OLAP Processor



Administrator Meta Data

Meta InfoCubes

InfoCubes

Repository

Repository

Workbench Master Data

Data





Geo

GIS Staging Engine

Staging Engine Coordinates

InfoObject

Geo

Coding

BAPI









...









1. In the InfoObject maintenance, flag the geo-relevant characteristics (country, for example)

that you want to use as geo-characteristics.

2. You load the corresponding shapefiles [Extern] into the BW system. You maintain the

assignment of shape file and master data (mapping between geo-characteristic and shape

file). See SAPBWKEY Maintenance for Static Geo-Characteristics [Extern]

If you want to use the maps to report on geo-characteristics that show information in point

form (customer, plant, sales office, for example) you have to geocode these characteristics.

See Geocoding [Extern].

3. In the BEx Web Application Designer you include a map in your Web application and connect

these with a data source and a previously-defined query. By using these attributes, you

determine the map display and the business-oriented data.

Finally, you publish the application on the Web. You navigate in the map to report further

on the geo-relevant data.

See also:

Additional Cartographic Information [Extern]

Displaying Additional Cartographic Information [Extern]









Web API Reference BW 3.5 58

SAP Online Help 25.02.2005









Map Attributes

Definition

The Map Web item consists of the objects Map and Map Layer. They are used to display

business data geographically.



Use

You use the Map object to define a map’s basic display.

The Map Layer object is used to define the different map layers. Map layers are components, with

which you construct a map.

Attributes control how a map and its layers are displayed in the Web application.

You can find information about layer attributes under Attributes for Map Layers [Seite 63].

The following section describes the attributes for the Map object.



Structure

The Map object has two kinds of attributes, as do all Web items:

...









1. General attributes that are fundamental to all display types.

The general attributes for the Map object are the same as the general attributes [Seite 12]

for all Web items. The Map object has a few additional general attributes. In the Web

Application Designer, you can find the general attributes in the Properties window, on the

Web Item → General tab page.

2. Special attributes which are particular to the individual Web item.

In the Web Application Designer, you can find the special attributes in the Properties

window, on the Web Item → Special tab page.



General Attributes



Attribute Values Description

Caption (CAPTION) Title of the map

Generate caption • ‘X’ = Yes Setting the indicator

automatically generates a title

(GENERATE_CAPTION) • ‘ ’ = No for the map in accordance with

Default setting ‘X’ = Yes "SAPBEXTableCaption".





Width Entry in pixels Width of the map and legend

in pixels

(WIDTH) Default setting “300”

Height of map in pixels Entry in pixels Height of the map in pixels

taking geographical relation

(HEIGHT) Default setting “300”

into consideration

Calculate map height • ‘X’ = Yes Ignores the height set

automatically manually (map height

• ‘ ’ = No attribute) and calculates the

(IGNORE_HEIGHT)

Default setting ‘X’ = Yes height automatically using the







Web API Reference BW 3.5 59

SAP Online Help 25.02.2005





height/width relationship in the

underlying map.

Border style • With border Type of border drawn around

(BORDER_STYLE) object.

• Without border

• For form

Default setting “No borders”

Closed • ‘X’ = Yes If you set this indicator, the

map is collapsed when the

(CLOSED) • ‘ ’ = No Web application is opened.

Default setting ‘ ’ = No

Hide object • ‘X’ = Yes If the indicator is set, neither

the map nor the title is

(HIDDEN) • ‘ ’ = No displayed in the Web

Default setting ‘ ’ = No application.



Objects with navigation links • ‘X’ = Yes When the indicator is set, an

image map is generated for

(GENERATE_LINKS) • ‘ ’ = No the map which enables

Default setting ‘X’ = Yes navigation within it. At the

same time, the corresponding

attributes of all the levels

belonging to the map are also

set to ‘X’ = Yes.



Special Attributes



Attribute Values Description

Map layers This attribute defines the layers

and the number of layers on which

(LAYERS)

your map is structured. See

Attributes for Map Levels [Seite

63].

AXL file (cartography) Name of AXL file for cartography

description (stored in directory for

(CART_AXL_NAME)

shape files)

Cartography information on/off • ‘X’ = Yes With this attribute you can specify

whether additional cartography

(CART_AXL_VISIBLE) • ‘ ’ = No information, which you described

Default setting ‘ ’ = No in an AXL file, needs to be

displayed. See…

Geo-functions • Do not display Position of the geographic function

bar in relation to the map.

(GEO_FUNCTIONS_POS) • Top

• Bottom

• Left

• Right

Default setting: "Do not

display"







Web API Reference BW 3.5 60

SAP Online Help 25.02.2005





Advanced geo-function bar • ‘X’ = Yes Enhancement of the geo-function

bar for executing interactive

(GEO_FUNCTIONS_ADVANCED) • ‘ ’ = No functions on the map itself.

Default setting ‘ ’ = No



The advanced geo-

function bar is

supported by Web

browsers from

Microsoft Internet

Explorer 5.0 and

Netscape 6.2 and

higher

You determine the position of the

advanced geo-function bar using

the Geo-functions

(GEO_FUNCTIONS_POS)

attribute. If you do not select the

Advanced Geo-function Bar

(GEO_FUNCTIONS_ADVANCED)

attribute, the basic geo-function

bar is displayed for the Geo-

functions

(GEO_FUNCTIONS_POS)

attribute, corresponding to the

value you selected.

See also:

Functions of the Advanced Geo-

Function Bar [Extern]

Position of legend • Left of the map Position of the legend in relation to

the map.

(LEGEND_POSITION) • Right of the map

• No legend

Default setting "Right of the

map"

Size of legend Entry in pixels Size of the legend in pixels

(LEGEND_SIZE) Default setting “150”

Extent of the map • Data with Specifies which areas of a map

geography are displayed in the Web

(MAP_EXTENT)

application. This depends on the

• Data only data stored in the application.

• Data and complete “Data with geography”, the default

geography setting, allows you to display data

available taking the corresponding

Default setting: “Data with geographic context into account.

geography”





Map background transparent • ‘X’ = Yes If you set this indicator, the "Map







Web API Reference BW 3.5 61

SAP Online Help 25.02.2005





(CART_COLOR_TRANSPARENT) • ‘ ’ = No background color" attribute is

ignored and the background

Default setting ‘X’ = Yes appears as transparent in the Web

application.





Background color Color value Background color of the map.

(CART_BACKGROUND_COLOR) You select the color values in a

color selection dialog.





Fill color (no data) Color value Fill color of a region if it is not

stored with data.

(CART_FILL_COLOR)

You select the color values in a

color selection dialog.

Map outline color Color value Color of the map outline.

(CART_OUTLINE_COLOR) You select the color values in a

color selection dialog.



Map outline width Entry in pixels Width of the map outline in pixels.

(CART_OUTLINE_WIDTH) Default setting “1”

Projection No projection = ‚NONE’ Projection used in map

(PROJECTION) Flat projection = ‚FLAT’

Mercator projection =

‘MERC’

You can find more information on using the Map Web item and its functions under Navigating in

Maps [Extern].









Web API Reference BW 3.5 62

SAP Online Help 25.02.2005









Attributes for Map Layers

Definition

Objects that define the different layers in a map.



Use

The layers of a map contain different geographic and business information. The individual layers

are laid over one another in the Web application and, in this way, make up the overall view of the

map. You can show or hide individual layers and change the information contained in a map.

For each map layer, you must define how the data is displayed in this layer. Do this by selecting a

Map Renderer [Seite 88].



Structure

The Map Layer object has two kinds of attributes, as do all other Web items:

...









1. General attributes that are fundamental to all display types.

The general attributes for the Map Layer object are the same as the general attributes for

all Web items. In the Web Application Designer, you can find the general attributes in the

Properties window, on the Web item → General tab page.

See General Attributes [Seite 12]

2. Special attributes that vary according to the selected map renderer.

Special attributes appear in the Web Application Designer depending on the map renderer,

in the Web item → Special tabpage.







You can select the map renderer from the selection list of the Renderer for a Map

on the Web Item → Special tabpage.

You can find additional information about the special attributes for the individual map

renderer under

Special Attributes for Color Shading [Seite 65]

Special Attributes for Bar Charts [Seite 67]

Special Attributes for Pie Charts [Seite 69]

Special Attributes for Pie Charts (split) [Seite 71]

Special Attributes for Dot Densities [Seite 72]

Special Attributes for Symbol [Seite 74]

Special Attributes for Symbol (Size-dependent) [Seite 76]

Special Attributes for Symbol (Color-dependent) [Seite 78]

Special Attributes for Line [Seite 80]

Special Attributes for Line (Size-dependent) [Seite 82]

Special Attributes for Lines (Color-dependent) [Seite 84]









Web API Reference BW 3.5 63

SAP Online Help 25.02.2005









Web API Reference BW 3.5 64

SAP Online Help 25.02.2005









Special Attributes for Color Shading

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

The color shading map renderer allows you to display color classes that correspond to special

value classes.



Structure

Attribute Values Description

Number of classes Number of color levels

(variable “n”)

(CLASSES)

Initial color Color value Defines the color of the

symbol that represents the

(COLOR_START)

smallest data value in the

connected data source.

You select the color values in

a color selection dialog.

End color Color value Defines the color of the

symbol that represents the

(COLOR_END)

largest data value in the

connected data source.

You select the color values in

a color selection dialog.

Individual values List Individual values entry for

color and class boundaries.

(CS_DYN)

Color interpolation RGB (Color value) You can determine the color

interpolation method here.

(COLOR_INTERPOLATION) HSB (color area)

Colors between the start and

the end color are interpolated

linearly.

Color (if no data) Color value Defines a color value for filling

all the regions of a map that

(COLOR_NONE)

do not have data in the

connected data source.

You select the color values in

a color selection dialog.

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.





Web API Reference BW 3.5 65

SAP Online Help 25.02.2005





Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map →

Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 66

SAP Online Help 25.02.2005









Special Attributes for Bar Charts

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can display values in the form of bars with the bar chart map renderer.



Structure

Attribute Values Description

Bar height Entry in pixels Defines the maximum height

of a bar in the diagram. This

(BAR_HEIGHT) Default value: “30”

height corresponds to the

largest value of the connected

data source.

Bar width Entry in pixels Defines the width of the bar in

the diagram.

(BAR_WIDTH) Default value: “10”

Individual color values Entry for individual color

values

(COLOR_VALUE)





Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context







Web API Reference BW 3.5 67

SAP Online Help 25.02.2005





menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map

→ Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 68

SAP Online Help 25.02.2005









Special Attributes for Pie Charts

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can display values in the form of pie charts with the pie chart renderer.



Structure

Attribute Values Description

Individual color values Entry for individual color

values

(COLOR_VALUE)

Pie diameter (maximum) Entry in pixels Defines the largest diameter of

a circle in the diagram. This

(PIE_MAX)

diameter is the sum of all the

maximum values displayed in

the Web application.

If you set "circle diameter

(minimum) = circle diameter

(maximum)“, all the circles in

the Web application are

displayed with the same

diameter.

Pie diameter (minimum) Entry in pixels Defines the smallest diameter

of a circle in the diagram. This

(PIE_MIN)

diameter is the sum of all the

minimum values displayed in

the Web application.

If you set "circle diameter

(minimum) = circle diameter

(maximum)“, all the circles in

the Web application are

displayed with the same

diameter.

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”







Web API Reference BW 3.5 69

SAP Online Help 25.02.2005





Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map

→ Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 70

SAP Online Help 25.02.2005









Special Attributes for Pie Charts (split)



Definition

A map renderer, with which you determine how BW data is displayed in a map layer.



Use

You can use the split pie chart renderer to display values in the form of split pie charts. In a split

pie chart, the split occurs automatically if there is a "change of group" (that is from sales for the 1st

quarter of 2001 to the sales for the 2nd quarter of 2001).



Structure

The special attributes of the split pie chart renderer are identical with the special attributes of the

pie chart renderer.

See Special Attributes for the Pie Chart Renderer [Seite 69].









Web API Reference BW 3.5 71

SAP Online Help 25.02.2005









Special Attributes for Dot Density

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can use the dot density renderer to display values in a map using dot densities.



Structure

Attribute Values Description

Dot base value Describes the basis value for a

dot (symbol). Example: When

(BASE_VALUE)

choosing the value 1000 for

the BASE_VALUE

(“BASE_VALUE = 1000”),

and the data value for France,

say, is 7400, the system

produces the result

7400/1000= 7.4 (rounded to

7). 7 dots appear in the France

map area, and these dots are

distributed randomly.

Color (COLOR) Color value Dot color (symbols)

The color value is selected via

a color selection dialog box.

Maximum density, per cent Input in percent Defines how dense the points

should be displayed in a

(DENSITY)

region for the largest value of

the connected data source.

The attributes "Value for a

symbol" and "Maximum

density in %" are self-

exclusive and may not be

used at the same time.

Size/Width Entry in pixels Defines the size of the points

(symbols).

(SIZE)

Symbol type “Circle” Defines the symbol with which

the data is displayed in a

(STYLE) “Rectangle”

layer.

“Triangle”

“Cross”

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better





Web API Reference BW 3.5 72

SAP Online Help 25.02.2005





(GENERATE_BREAKS) Default setting: ‘ ‘ = No automatic distribution of the

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map →

Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 73

SAP Online Help 25.02.2005









Special Attributes for Symbols

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can display values using symbols with the Symbol renderer.



Structure

Attribute Values Description

Color Color value Symbol color as RGB value

(VALUE) You select the color values in

a color selection dialog.

Size/Width Entry in pixels Defines the size of the

symbols that represent the

(SIZE)

data.

Symbol type Circle Defines the symbol with which

the data is displayed in a

(STYLE) Rectangle

layer.

Triangle

Cross

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.





Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.





Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)





Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which





Web API Reference BW 3.5 74

SAP Online Help 25.02.2005





“Filtering for data providers action is to take place when

with click on map” you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map →

Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 75

SAP Online Help 25.02.2005









Special Attributes for Symbol (Size-dependent)

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can use the symbol (size-dependent) renderer to display values using size-dependent

symbols. The renderer takes the location and data values for this location into consideration. The

size of the symbols depends on the data.



Structure

Attribute Values Description

Number of classes Number of size levels (variable

“n”)

(CLASSES)





Color Color value Symbol color

(COLOR) You select the color values in

a color selection dialog.



Individual values List Individual values entry for

symbol sizes and class

(SG_SYM_DYN)

boundaries.

Symbol (end size)/ Entry in pixels Defines the symbol size / line

width that represents the

Line (end width)

largest data value in the

(SIZE_END) connected data source.





Symbol (starting size) / Entry in pixels Defines the symbol size / line

width that represents the

Line (starting width)

smallest data value in the

(SIZE_START) connected data source.

Symbol type “Circle” Defines the symbol with which

the data is displayed in a

(Style) “Rectangle”

layer.

“Triangle”

“Cross”

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.

Map Layer Label “No Label” This attribute allows you to







Web API Reference BW 3.5 76

SAP Online Help 25.02.2005





(LABEL) “Text as Label” label the map.



“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map

→ Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 77

SAP Online Help 25.02.2005









Special Attributes for Symbol (Color-dependent)

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can display values using color-dependent symbols with the Symbol (color-dependent)

renderer. The renderer takes the location and data values for this location into consideration. The

color of the symbols depends on the data.



Structure

Attribute Values Description

Individual values Individual values entry for

color values and class

(CG_SYM_DYN)

boundaries.

Number of classes Number of color levels

(variable “n”)

(CLASSES)

End color Color value Defines the color of the

symbol that represents the

(COLOR_END)

largest data value in the

connected data source.

You select the color values in

a color selection dialog.

Color interpolation RGB Color interpolation method

(COLOR_INTERPOLATION) HSB Defines the method with which

the color values that are

located between the starting

and end colors are

interpolated. These color

values represent the data that

is located between the

smallest and largest values of

the data source.

Initial color Color value Defines the color of the

symbol that represents the

(COLOR_START)

smallest data value in the

connected data source.

You select the color values in

a color selection dialog.

Size/Width Entry in pixels Defines the size of the

symbols that represent the

(SIZE)

data.

Symbol type Circle Describes how a symbol is

displayed.

(STYLE) Rectangle







Web API Reference BW 3.5 78

SAP Online Help 25.02.2005





Triangle

Cross

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)





Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map →

Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 79

SAP Online Help 25.02.2005









Special Attribute: Line

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

The Line renderer displays values with a line going from a starting to an end point.



Structure

Attribute Values Description

Color Color value Line color.

(COLOR) You select the color values in

a color selection dialog.



Layer (starting points) Layer for starting points

(FROM_LAYER) Defines the layer on which the

line’s starting points lie.

All starting points must be

located on one layer.





Line type “Continuous” Defines how the lines are

displayed.

(LINE_STYLE) “Dotted”

“Dashed”





Size/Width Entry in pixels Defines the width of the line.

(SIZE)

Layer (end points) Layer for end points

(TO_LAYER) Defines the layer on which the

end points of the lines are

located.

All end points must be located

on one layer.

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

Default setting: ‘ ‘ = No automatic distribution of the

(GENERATE_BREAKS)

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”









Web API Reference BW 3.5 80

SAP Online Help 25.02.2005





“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map →

Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 81

SAP Online Help 25.02.2005









Special Attribute: Line (Size-dependent)

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

You can use the bar chart map renderer to display values in the form of bars.



Structure

Attribute Values Description

Number of classes Number of size levels (variable

“n”)

(CLASSES)

Color Color value Line color.

(COLOR) You select the color values in

a color selection dialog.





Line type “Continuous” Defines how the lines are

displayed.

(LINE_STYLE) “Dotted”

“Dashed”

Individual values Entry of individual values for

line width and class boundary.

(SG_LI_DYN)

Symbol (end width) / line (end Symbol/line end width

width)

(SIZE_END)

Symbol (start width) / line Symbol/Line start width

(start width)

Layer (starting points) Layer for starting points

(FROM_LAYER)

Layer (end points) Layer for end points

(TO_LAYER)

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”





Web API Reference BW 3.5 82

SAP Online Help 25.02.2005





Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No-{}- Highlight map layer label

(HIGHLIGHT_LABEL)



Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map

→ Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level- with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS) level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 83

SAP Online Help 25.02.2005









Special Attributes for Lines (Color-dependent)

Definition

A map renderer with which you determine how BW data is displayed on a map layer.



Use

The line (color-dependent) renderer displays values with a line from the starting to the end point.

The data values define the color of a line.



Structure

Attribute Values Description

Individual values Individual values entry for

color values and class

(CG_LI_DYN)

boundaries.

Number of classes Number of color levels

(variable “n”)

(CLASSES)

End color Color value Defines the color of the

symbol that represents the

(COLOR_END)

largest data value in the

connected data source.

You select the color values in

a color selection dialog.

Color interpolation RGB Defines the method with which

the color values that are

HSB

located between the starting

and end colors are

interpolated. These color

values represent the data that

is located between the

smallest and largest values of

the data source.

Initial color Color value Defines the color of the

symbol that represents the

(COLOR_START)

smallest data value in the

connected data source.

You select the color values in

a color selection dialog.

Line type “Continuous” Defines how the lines are

displayed.

(LINE_STYLE) “Dotted”

“Dashed”

Size/Width Entry in pixels Defines the width of the line.

(SIZE)

Layer (starting points) Layer for starting points







Web API Reference BW 3.5 84

SAP Online Help 25.02.2005





(FROM_LAYER)

Layer (end points) Layer for end points

(TO_LAYER)

Tooltip for map layer ‘X’ = Yes, ‘ ’ = No This attribute allows you to

display tooltips for the map

(GENERATE_TOOLTIP) Default setting: ‘X’ = Yes

layer.

Generate class boundaries ‘X’ = Yes, ‘ ’ = No This attribute enables better

automatic distribution of the

(GENERATE_BREAKS) Default setting: ‘ ‘ = No

color shading.

Map Layer Label “No Label” This attribute allows you to

label the map.

(LABEL) “Text as Label”

“Key as Label”

Default setting: “No Label”

Highlight label ‘X’ = Yes, ‘ ’ = No Highlight map layer label

(HIGHLIGHT_LABEL)

Affected data provider List List of data providers to which

all commands of the map layer

(TARGET_DATA_PROVIDER

are sent.

)

Map interaction control “Normal context menu with How the map interaction

click on map” appears. You can use this

(IMAGEMAP_PATTERN)

attribute to determine which

“Filtering for data providers

action is to take place when

with click on map”

you click on the map, as an

alternative to the context

menu.

You can find additional

information about this attribute

in the WEB API Reference,

section Web Item → Map

→ Map Layer.

Ignore exceptions when ‘X’ = Yes, ‘ ’ = No Exceptions that are activated

displaying the map level with the basic data provider

are not displayed in the map

(IGNORE_EXCEPTIONS)

level.

See Display of Exceptions for

Maps and Charts [Extern].

Attribute to be displayed in the Name of the characteristic

map attribute, the value of which is

to be displayed on the map.

(ATTRINM)









Web API Reference BW 3.5 85

SAP Online Help 25.02.2005









Array Attributes

Use

There are certain map attributes that are known as array attributes. You can recognize these

attributes by the suffix “(n)” (see Attributes for Maps [Seite 59] andAttributes for Map Layers

[Seite 63]).

This section describes the function of array attributes.

The following are array attributes:

• Symbol size (n)

• Class boundary (n)

• Color value (n)

• Line width (n)

• Bar Color (n)

• Segment color (n)







The variable n is the number of classes. You can set this variable with the attribute

class number



Example

Use the above attributes to change the default settings in the system. The default settings provide

a linear calculation of the interim values for each class.

For example: symbol size (n)

If the attribute symbol size (n) is not set, the size of the symbols displayed in a map, starting with

starting value A and ending with end value B, are distributed linearly across the number of

classes. If you have for example 4 classes, a starting size of 8 and an end size of 20 points, you

would get the following values for the individual class sizes:

• Class 1 -8 points

• Class 2 -12 points

• Class 3 -16 points

• Class 4 -20 points

You can adjust this automatic assignment by manually setting the values for the attribute symbol

size (n), for example, in the following way:

• Class 1 -8 points

• Class 2 -10 points

• Class 3 -12 points

• Class 4 -20 points









Web API Reference BW 3.5 86

SAP Online Help 25.02.2005









The attributes symbol size (n), color value (n) and line width (n) are always bound to

the attribute class boundary (n). That is, when you set one of these attributes, you

also need to set a value for the corresponding class boundary.









Web API Reference BW 3.5 87

SAP Online Help 25.02.2005









Map Renderer

Definition

With a map renderer, you determine how BW data is displayed on a map layer.



Structure

There are 11 different map renderers in the BEx Web Application Designer. These renderers are

divided into three different classes:

Class 1: Renderers that relate to polygonal areas (static geo-characteristics). They display the

following:

• Color shading (COLORSHADING or CS)

• Bar charts (BAR)

• Pie charts (PIE)

• Pie charts (divided) (SPLITPIE)

• Pixel density (DOTDENSITY or D_DENSITY)

For these renderers, the static geo-characteristic must appear in the related data provider

in the rows and the values to be displayed in the renderer must be in the columns. You can

use hierarchies in both cases. You cannot have any other characteristic other than the geo-

characteristic, or any key figure in the rows. You can use several characteristics or key

figures in the columns.

Class 2: Renderers that relate to locations (dynamic geo-characteristics). They display the

following:

• Symbol (SYMBOL)

• Symbol (size-dependent) (SIZEGRADUATEDSYMBOL or SG_SYMBOL)

• Symbol (color-dependent) (COLORGRADUATEDSYMBOL or CG_SYMBOL)

• Bar charts (BAR)

• Pie charts (PIE)

• Pie charts (divided) (SPLITPIE)

For these renderers the dynamic geo-characteristic must appear in the data provider

belonging to it in the rows. You must have also selected the Longitude and Latitude display

attributes to be displayed. You cannot have any other characteristics or key figures in the

rows. Only the first column is considered by the symbol renderers. The renderers bar

chart, pie chart and pie chart (divided) consider all columns.

Class 3: Renderers that display relationships between locations (dynamic geo-characteristics):

• Line (LINE)

• Line (size-dependent) (SIZEGRADUATEDLINE or SG_LINE)

• Line (color-dependent) (COLORGRADUATEDLINE or CG_LINE)

It is important to have at least three map layers for these renderers. You define Start Point

in one map layer and the End Point in another map layer. The prerequisites described in

class 2 are also valid for both of these map layers. The third map layer contains the

relationship between the dynamic geo-characteristics Start Point and End Point, that is,





Web API Reference BW 3.5 88

SAP Online Help 25.02.2005





both characteristics must be in the rows. The same prerequisites are valid for the columns

as described in class 2.







For those map renderers that have a long technical name, you can specify a

shorter, alternative name (for example, COLORGRADUATEDLINE or CG_LINE).

Both variations are supported.



Integration

So that you can present the BW business data on individual map layers graphically, you have to

assign a map renderer to each map layer in the BEx Web Application Designer and determine

the properties for this renderer.



Example of a Renderer in Class 3

Map layer query view that describes the relationship



Sales Office Sales Representative Sales

A 1 100 $

A 2 150 $

A 3 120 $

B 11 90 $

B 12 80 $



Map layer query view that describes the start point



Sales Office Longitude Latitude # Employees

A 2.3 3.4 120

A 2.3 3.4 15

A 2.3 3.4 120

B -3.5 -2.0 87

B -3.5 -2.0 80



Map layer query view that describes the end point



Sales Longitude Latitude # Customers

Representative

1 2.8 4.7 12

2 2.6 5.7 11

3 2.4 6.7 13

11 -3.8 -1.2 23

12 -3.4 -1.8 21









Web API Reference BW 3.5 89

SAP Online Help 25.02.2005









Web API Reference BW 3.5 90

SAP Online Help 25.02.2005









Single Document

Definition

Web item allowing you to display single documents that you created in the Administrator

Workbench or in master data maintenance for master data in the Web application.



Use

You can create the documents in different formats and versions (see Documents [Extern]). You

can add several documents such as route directions and a picture of the local office for each

value of a characteristic, such as Business Partner. You can use the document type attribute to

decide which document you want to display in the Web application.



Structure

As well as its general attributes [Seite 12], the Web item Single Document has the following

specific attributes:

Attributes Description

Document class (DOCUMENT CLASS) Document class for which documents are

displayed (master data or InfoProvider data).

‘MAST’ = master data (default setting)

• If you choose ‘MAST’ = master data, you

‘TRAN’ = InfoProvider data have to specify a characteristic. The

documents for the values of this

characteristic are then displayed in the

Web item.

• If you choose ‘TRAN’ = InfoProvider

data, the document that is relevant for

the current navigational state is

displayed in the Web item. This is

worthwhile, for example, if you have

created a document (a report on the

business area) for all combinations of

month and business area and both of

these characteristics are contained in the

filter. The document is then always

displayed in the Web item for the

selected business area and month.









Web API Reference BW 3.5 91

SAP Online Help 25.02.2005





Document type (WWW_DOC_TYPE) You can specify a type of document here. Only

documents of this type are then displayed.

You can display several documents for the

values of a characteristic at the same time in a

Web application.







For example, for the characteristic

Customer, you can display a logo

(in a Web item of the document

type LOGO)and a sketch with

directions (in a Web item of the

document type MAP

If you create a new document or change an

existing document, you can maintain the

document type for this document. The various

document types for the existing document are

offered for you to choose from in the Web item.







If you do not make any entries

here, the system assumes that

only one document is suitable for

the Web item.

If this is not the case you get a

message

− That no document was found or

− That the document is not unique (there

is more than one)

Characteristic (IOBJNM) Characteristic for which master data

documents are displayed







You need to select a

characteristic in this attribute

when you have chosen in the

attribute Document Class

(DOCUMENT_CLASS) the entry

‘MAST’ = master data:









Web API Reference BW 3.5 92

SAP Online Help 25.02.2005





Display frame (TARGET_FRAME) HTML frame for displaying the document

(IFrames are possible).

If you are working with frames in your Web

application (including internal frames, or

IFrames), you can divert the document output

into a different frame instead of displaying it in

the Web item itself. This is useful for

documents that you cannot display in the Web

item itself, such as Microsoft Word and PDF

documents, but which you want to display

immediately.







We recommend that you do not

create a title for the Single

Document Web item if you want

to display the document in a

different frame.

At the moment, you can display the following types

of files [Extern] in the Web item itself:

• Images: image/jpeg, image/gif

• Text: text/plain

• Html: text/ html

Nesting depth of frame This attribute specifies how many levels in the

frame hierarchy have to be skipped to reach

(TARGET_FRAME_LEVEL) the display frame. Setting this attribute is

Default setting “0” particularly worthwhile when you are working

with framesets.

• With the default setting “0”, the display

frames are addressed on the same

HTML page.

• With the setting “1”, frames are

addressed that are defined on the same

hierarchy level on which the frame that

contains the current HTML page is also

defined .

Display in same browser window You can define if the single document is

(IS_INPLACE) displayed



‘X’ = Yes, ‘ ’ = No • In the Web application (‘X’) or

• As a link that the document calls up in a

separate browser window (‘ ‘)

.

This attribute is interpreted only if the attribute

TARGET_FRAME is empty.

You can only display documents in the same

browser window (‘X’) for file types specified in

the attribute TARGET_FRAME. The other file

types are always displayed as a link.







Web API Reference BW 3.5 93

SAP Online Help 25.02.2005





Links to document display You can use this attribute to determine whether

(LINK_TO_BROWSER) you can link from the document to the general

document display.

‘X’ = Yes, ‘ ’ = No

If the value is set to X, clicking on the picture

displays all documents for the currently filtered

characteristic value (or all documents for the

characteristic master data, if no value is in the

filter) in a separate browser window.

This attribute is interpreted only if the attribute

TARGET_FRAME remains empty.

Default picture (DEFAULT_PICTURE_URL) Absolute or relative URL for a picture. This

picture is displayed in a Web item if no

document has been found, or if the document

is not consistent. Pictures from the MIME

Repository can be selected here using a

relative address.

You can find more information on using the Single Document Web item and its functionality under

Using Documents in Web Applications [Extern].









Web API Reference BW 3.5 94

SAP Online Help 25.02.2005









List of Documents

Definition

Web item that displays a list of documents in the Web application. You can also create new

documents [Extern] yourself in the Web application.



Use

The Web item List of Documents enables you to call or create context-sensitive information about

the transaction data used in the Web application. If you navigate in the Web application and, for

example, restrict a characteristic to a certain characteristic value, the list of documents is

automatically adjusted. This means that only the documents that are relevant for the restricted

navigation status appear.







The documents for the characteristics that were set as the Document Properties in

the Administrator Workbench appear automatically in the list.



Structure

The Web item List of Documents has the following structure:

• Functions

You can also:

− Create a New Document [Extern]

− Set whether or not the characteristics of the documents are to be displayed

− Define whether the selection for the documents is to be displayed. If the selection is

displayed, you can also change it so that you can look for documents in other areas. In

order to be able to change the selection, the attribute Display Selection (see below) must

be set accordingly.

• Selection

The selection is the counterpart to the navigation block and shows the characteristics that

are Document Properties and are contained in the basic data provider (query or query

view), and their values.







If you have already inserted a navigation block into your Web template, you do not

need the selection information in the list of documents if you want to see only those

documents that refer to the numbers of the table.

The selection is adjusted dynamically depending on the navigation in the Web application.

This means that the list of documents displays only those documents that refer to the

requested data in the table. If the selection can be changed, you can also focus on the

documents and, for example, display all the documents that refer to the InfoProvider.

You can set the following in the Web Application Designer using attributes:

Whether you want to display the selection

Whether or you can change the selection in the Web application







Web API Reference BW 3.5 95

SAP Online Help 25.02.2005





• List of documents

The links to the documents are listed here in alphabetical order.

In addition to its general attributes [Seite 12], the List of Documents Web item has the following

attributes:

Attributes Description

Display Properties This attribute indicates if the document

property is to be displayed. The document

(SHOW_PROPERTIES)

properties tell you about how the documents

‘X’ = Yes, ‘ ’ = No are assigned, for example base planning object

4711, month of May. The selection to which the

document was restricted determines the

assignment.







If a document property is identical

for all selected documents, this

property is not displayed under

the document link.

You define the initial display with the Document

Properties attribute. Using the Properties on/off

button, you can toggle the display of the

properties in the Web application.







Furthermore, in the

PROPERTY_LIST attribute you

can set which additional

document properties need to be

displayed here.





Display Selection With this attribute you can indicate whether the

the selection conditions for the documents for

(SHOW_CONTEXT)

the List of Documents Web item are displayed

' ' = can be changed, is not displayed at first as well as whether these selection conditions

are changeable.

'N' = cannot be changed, is displayed at first

'X' = can be changed, is displayed at first

'0' = cannot be changed, is not displayed at first

Number of Rows in the Table With this attribute you can define the number of

rows (document links and properties) that are

(BLOCK_SIZE)

displayed at one time. If there are not enough

rows, an index for scrolling appears in the

bottom row.

Maximum Number of Displayed Values With this attribute you can define the maximum

number of characteristic values to be displayed

(MAXVALUES)

in the dropdown box of the selection.









Web API Reference BW 3.5 96

SAP Online Help 25.02.2005





Document Changeable With this attribute you can define whether

documents can be created, changed, or

(DOCUMENTS_ARE_CHANGEABLE)

deleted.

‘X’ = Yes, ‘ ’ = No

Frame for Display Here, you can specify an HTML frame in which

the individual documents that you call from the

(TARGET_FRAME)

list of documents is displayed.







The HTML frame must be

integrated in the Web template.

If you use the Web template

within a frame set, you can also

integrate the called-up document

in another frame of this set.

If you do not define an HTML frame, the

individual documents are displayed in separate

windows.

Additional Properties Additional document properties that are

displayed for each document displayed in the

(PROPERTY_LIST)

Web item. Here, you can set the following

properties:

LAST_CHANGED_BY: Last person to make

changes

LAST_CHANGED_AT: Change time

CREATED_BY: Creator

CREATED_AT: Creation time

CHECKOUT_USER: Editor

LANGUAGE: Language

You can find more information on using the List of Documents Web item and its functions under

Using Documents in Web Applications [Extern].









Web API Reference BW 3.5 97

SAP Online Help 25.02.2005









Object Catalog of the Web Application

Definition

Web item with which you can generate information (as XML) about the current Web template

properties, data providers and Web items used in the Web template. The Web item is not

visualized in the Web application. You can see the generated XML in the source text for the Web

application.



Structure

In addition to its general attributes [Seite 12], the Object Catalog of the Web Application Web item

has the following attributes:

Attribute Description

Output Web template properties If you set the indicator for this attribute, the

Web template properties are output as XML in

(PROPERTIES)

the source text of the Web application.

Output list of the data providers If you set the indicator for this attribute, a list of

the data providers used is output as XML in the

(DATA_PROVIDERS)

source text of the Web application.

Output list of Web items If you set the indicator for this attribute, a list of

the Web items used is output as XML in the

(ITEMS)

source text of the Web application.









Web API Reference BW 3.5 98

SAP Online Help 25.02.2005









Data Provider – Information

Definition

Web item that you can use for XML generation of query results data or of the navigation state of a

query. The Web item is not visualized in the Web application. You can see the generated XML in

the source text for the Web application.



Structure

In addition to its general attributes [Seite 12], the Data Provider Information Web item has the

following attributes:

Attribute Description

Output navigational state If you set the indicator for this attribute, the

navigational state of the query is output as

(NAVIGATIONAL_STATE)

XML in the source text of the Web application.

Output results data If you set the indicator for this attribute, the

query results are output as XML in the source

(RESULT_SET)

text of the Web application.







You can generate a description of the navigation state, as well as the amount of

results for a query in the form of XML, using the Web service for accessing the

query data or with the data provider command EXPORT. See also Web Service for

Accessing Query Data [Extern] and Exporting Data [Seite 181].



Example

You can find a description of an example scenario under XML Web Item: Data Provider

Information [Seite 274].









Web API Reference BW 3.5 99

SAP Online Help 25.02.2005









Web Template

Definition

Web Item used to help you insert other Web templates into a Web template.



Use

With the Web Template Web Item, you can easily manage consistent sections in your Web

applications centrally in a Web template and can integrate them into any Web template as

needed. In this way, you can define a header or footer section with the corporate logo and

heading as a Web template and can integrate this Web template into your Web applications as a

Web Template Web item. This Web template is then inserted during runtime. In contrast to HTML

frame technology, the system does not generate a new page during this process. The context of

the main template remains the same.



Structure

In addition to its general attributes [Seite 12], the Web item Web Template has the following

specific attributes:

Attributes Description

Only tag Only use the contents of the tag

(USE_ONLY_BODY) If you set this attribute, only the contents of the

body tag will be used for the Web template to

'X' = Yes (standard setting), ' ' = No

be inserted.







This attribute has to be set if the

Web template to be inserted

represents an entire HTML

document including tag.

Web Template Technical name of the Web template that is to

be inserted.

(TEMPLATE_ID)









Web API Reference BW 3.5 100

SAP Online Help 25.02.2005





Prefix for the logical name Prefix for the logical name of the objects that

are contained in the Web template.

(NAME_PREFIX) (optional)

Since the objects in the main template and in

the inserted Web template share a namespace

and can be linked to one another through their

names, you can make them unique in an

associated scenario with the prefix assignment

for the main template and the inserted Web

template. The prefix assignment is useful when

the same logical name for Web items and data

providers are used in both the main template

and in the inserted Web template, but when

these should be separated from one another.

Example: You are using a data provider DP1 in

the main template with the query “sales

revenue". In the inserted Web template, a data

provider DP1 is also used, but this time with

the query "costs". In order to have the „costs“

query displayed in the inserted Web template,

it is necessary to assign the data provider for

the inserted Web template with a prefix.

The following table provides you with an

overview of the effects of the prefix assignment

on working with the Web API.



Prefix assignment and its significance



Prerequisites Name Prefix Assignment No Name Prefix Assignment

Same logical name of Web Web API – commands must Initialization of the Web item

items in the main template and address the Web item of the corresponds to the

in the inserted Web template. inserted Web template with initialization of the main

name prefix and logical name. template.

The following conventions

apply:

PREFIX.NAME

Example: The Web Item of the

inserted Web template has the

logical name ITEM_1 and the

prefix is ABC. The Web item is

addressed with ABC.ITEM_1.

Same logical name of data Web API – commands must The data binding takes place

providers in the main template address the data provider of using the data provider of the

and in the inserted Web the inserted Web template main template.

template. with name prefix and logical

name. The following

conventions apply:

PREFIX.NAME

Example: The data provider of

the inserted Web template has

the logical name ITEM_1 and

the prefix is ABC. The data





Web API Reference BW 3.5 101

SAP Online Help 25.02.2005





provider is addressed with

ABC.DP_1.







In addition, you can use the following attributes (parameters), which are not available to you in

the Web Application Designer, which, however, can be inserted using the HTML view of the Web

template.



Attribute Description

Overwriting the Web item initialization If you use this attribute, the initial Web item

settings in the Web template to be inserted will

(SET_ITEM_I; ITEM_ID_I / ITEM_CLASS_I)

be overwritten. For a possible scenario for the

use of this attribute, see example 3 under Web

Template [Extern].

Overwriting the data provider initialization If you use this attribute, the initial data provider

settings in the Web template to be inserted will

(SET_DATA_PROVIDER_I) (optional)

be overwritten.







All executed attributes cannot be changed using command URLs.

For more information about using the Web Template Web item and its functions, see Web

Template [Extern].









Web API Reference BW 3.5 102

SAP Online Help 25.02.2005









Broadcaster

Definition

A Web item that serves as a tool for precalculation and distribution of BW objects.



Use

When you use the Web item Broadcaster, you can precalculate Web templates, queries and

workbooks and can distribute them by e-mail or into the Enterprise Portal.



Structure

In addition to its general attributes [Seite 12], the Broadcaster has the following attributes:

Attribute Description

Type of reporting object Using this attribute, you can determine the type

of reporting object with which the broadcaster

(SOURCE_OBJECT_TYPE)

is started.

You can choose from the following objects:

• Web template

• Query

• Workbook

• Data providers

Depending on which object you select, one of

the following attributes appears for specifying

the corresponding technical name.

Name of the Web template Technical name of the Web template with

which the Broadcaster should be started.

(SOURCE_TEMPLATE)

Name of the query Technical name of the query with which the

Broadcaster should be started.

(SOURCE_QUERY)

Name of the workbook Technical name of the workbook with which the

Broadcaster should be started.

(SOURCE_WORKBOOK)

Name of the data provider Logical name of the data provider with which

the Broadcaster should be started.

(SOURCE_DATA_PROVIDER)

You can find more information on using the Broadcaster Web item and its functions under BEX

Broadcaster Functions [Extern].









Web API Reference BW 3.5 103

SAP Online Help 25.02.2005









Query View – Selection

Definition

Web item with which you can navigation between various queries and query views.



Use

With the Web item Query View – Selection, in one step you can switch from a data provider

(query or query view) and its graphical presentation (such as a table, for example) to another data

provider that is perhaps presented in a different way (in a chart, for example).



Structure

In addition to its general attributes [Seite 12], the Query View – Selection Web item has the

following attributes:

Attribute Description

Affected Web item Enter the name of the Web item here that is to

be used for visualization of the data and that

(VIEW_DD_TARGET_ITEM)

you have inserted into the Web template. This

attribute is mandatory because the Web item

Query View – Selection can only be dragged

into a Web template in connection with a Web

item for visualization off the data.









Web API Reference BW 3.5 104

SAP Online Help 25.02.2005





List of query views List of data providers, their description and

their assignment to a Web item

(ASSIGNMENT)

Before you set this attribute, you must first

assign a data provider to the Web template.

Depending on whether you select a query or a

query view as data provider, you will have to

specify this query or the query view once in the

rows of the list. This data provider will then be

displayed initially in the Web application.

Every row in the list represents an entry in the

dropdown box. For each entry, establish the

following:

• Name of the query

You can specify the technical name of

the query that you want to visualize here.

This entry is optional: If you want to

specify a query view, skip this column.

See Name of the Query View

• Name of the query view

You can specify the technical name of

the query view here or you can select an

entry from the input help for the query

view. Specification of the query view is

optional: If you want to specify a query,

go back to the first column. See Name of

the Query

• Technical name of the Web item that

was previously saved in a library and

that should be used for visualization of

the data. This information about the Web

item for visualization is optional. If you do

not specify anything, the affected Web

item will be used for visualization.

• Description for the entry in the dropdown

box. A description is mandatory for every

entry in the dropdown box.

Display create/delete button With this attribute, you can determine whether

the buttons for creating or deleting new entries

(VIEW_DD_SHOW_BUTTONS)

in the dropdown box should be displayed. New

entries in the dropdown box are only visible

locally. This means that they can only be seen

by the person that created them.

If you set the indicator for this attribute, a

standard Web template for display will be

provided. If you want to use your own Web

template for display, enter this under the Web

Template to Create New Entries for the

Dropdown Box attribute

(VIEW_DD_CREATE_TEMPLATE).









Web API Reference BW 3.5 105

SAP Online Help 25.02.2005





Keep filter values for query views If you set the indicator for this attribute, the

filter values are kept when you swap query

(VIEW_DD_RRI)

views in the dropdown box.

Keep settings for the affected Web item If you set the indicator for this attribute, the

settings for the affected Web item (width and

(VIEW_DD_KEEP_SIZE)

size of the Web item, as well as number of data

rows) are kept when you switch to another

entry in the dropdown box.

Use all query views for a query If you set the indicator for this attribute, all

query views for a query are used as entries in

(VIEW_DD_USE_ALL_QUERY_VIEWS)

the dropdown box.

First select the desired query as data provider.

The settings for the List of Query Views

attribute are not used in this case.

Sort query views alphabetically If you set the indicator for this attribute, the

query views are sorted alphabetically in the

(VIEW_DD_SORT)

dropdown box. Otherwise the query views are

sorted according to the sequence of entries for

the List of Query Views attribute.

Web template for creating new entries for the Specify the technical name of the Web item to

dropdown box create new entries for the dropdown box using

the create button. It only makes sense to set

(VIEW_DD_CREATE_TEMPLATE)

this attribute if you would like to have the

create/delete buttons displayed (see Display

Create/Delete Button).





You can find more information on the use and function of the Query View – Selection Web item

under Query View - Selection [Extern].









Web API Reference BW 3.5 106

SAP Online Help 25.02.2005









Key Figure Overview

Definition

Web item [Seite 10] that displays a table containing important key figures for business from the

component Strategic Enterprise Management (SAP SEM).



Use

The Web item Key Figure Overview provides the user with a selection of important key figures

for business. For each key figure, the user has the option of navigating to the associated Web

templates. The Web template shows the user the origin of the key figure (that is the query or

query view).



Structure

As well as its General Attributes [Seite 12], the Key Figure Overview Web item also has the

following special attributes:

Attribute Description

Automatic Personalization Using this attribute, you can enable automatic

(AUTOMATIC_PERSONALIZATION) personalization, that is a permanent user-

specific selection of key figures from the key

figure catalog. If this attribute is highlighted, the

selection of key figures that a user can make

using the Display Key Figure Catalog function

can be permanently transferred.

To use automatic personalization, general

personalization must be activated in the

system. For more information, see

Personalization in BEx [Extern].

Customer Web Template Prefix This attribute contains the Web template prefix

(CUST_TEMPLATE_PREFIX) that should be positioned in front of the

technical name of the query or query view of

the customer.

SAP Web Template Prefix This attribute contains the Web template prefix

(SAP_TEMPLATE_PREFIX) that should be positioned in front of the

technical name of the query or query view of

supplied by SAP.

RFC Connection SEM System In this attribute you can store an RFC

(SEM_RFC_DEST) connection to an SEM system from which the

Key Figure Catalog is read. The user (current

user or fixed user) maintained in the RFC

connection is used for the authorization check

in the SEM system.







In the Strategic Enterprise Management (SAP SEM) component, only queries and

query views are saved, not Web templates. The special attributes of the Web item

are thus required to make the Web templates from the Web item callable. The









Web API Reference BW 3.5 107

SAP Online Help 25.02.2005





technical name of a Web template is made up of the following: Web template name

= prefix + query/query view name.



Integration

The data provider for the Web item Key Figure Overview is the Measure Builder (CPM-MB) of the

SAP SEM component Corporate Performance Monitor (SEM CPM). The key figures that are

displayed in the Web item Key Figure Overview are defined in the Measure Builder and are put

together as a catalog.

For more information about the Measure Builder, see the Internet under help.sap.com → SAP

Cross Industry Solutions → mySAP Financials → SAP Strategic Enterprise Management in the

documentation for Release SAP SEM-BW 3.50 (or in the SAP Library) under SEM – Strategic

Enterprise Management → Corporate Performance Monitor (SEM CPM) → Measure Builder

(CPM-MB).

See also:

Function description Key Figure Overview [Extern]









Web API Reference BW 3.5 108

SAP Online Help 25.02.2005









Ad-hoc Query Designer

Definition

A Web item that enables you to create and change queries in a Web application on an ad-hoc

basis.



Use

You can use the Ad-hoc Query Designer Web item in the Web Application Designer to

structure Web applications in which you create or change queries. The Web item is as a tool for

designing ad-hoc queries in a Web environment.



In particular it enables you to:

• Create queries by assigning characteristics from an InfoProvider to rows, columns, filters,

and free characteristics, and including key figures from the InfoProvider in the key figure

structure of the query.

• Restrict or filter key figures and characteristics

• Use predefined key figure structures and restricted or calculated key figures in the query

• Set or change query properties and key figure/characteristic properties in the query

• Create or change conditions and exceptions

When compared with the BEx Query Designer [Extern], the Ad-hoc Query Designer Web item

has the following restrictions when creating or changing queries:

• You cannot integrate variables into the query directly.

However, you can use variables in reusable structures, or restricted or calculate key

figures, which are used in the Ad-hoc Query Designer

• The query can contain only one structure. This structure has to be the key figure structure

and be in the rows or columns of the query.



− You cannot use key figures or key figure structures in the filter.

− You cannot define exception cells, since this requires two structures.





You cannot create the following objects using the Ad-hoc Query Designer Web

item:

− Reusable structures

− Reusable restricted key figures

− Reusable calculated key figures



− Local calculated key figures

You can create local, restricted key figures using the Ad-hoc Query Designer Web

item.









Web API Reference BW 3.5 109

SAP Online Help 25.02.2005





You can edit existing queries in the Ad-hoc Query Designer Web item, if the queries

adhere to the restrictions laid out above The Ad-hoc Query Designer checks these

requirements when loading a query. If the query is too complex, the query can be

loaded into the Ad-hoc Query Designer but you cannot change it there. You then

receive the appropriate message. You can still check and execute the query.



Structure

In addition to its general attributes [Seite 12], the Ad-hoc Query Designer Web item has the

following attributes:

Attributes Description

InfoProvider Name (INFOCUBE) Technical name of the InfoProvider used to

start the Ad-hoc Query Designer.

Double-click on the empty value cell next to the

attribute InfoProvider Name. The BEx Open

dialog box appears. Select the InfoProvider

that you want to use from your history or from

the complete list under InfoAreas.

Name of Query (QUERY) Technical name of the query used to start the

Ad-hoc Query Designer.

Double-click on the empty value cell next to the

attribute Name of Query. The BEx Open dialog

box appears. Select the query from your

history, favorites or roles of from the complete

list under InfoAreas.

Template for Output Name of the Web template used to display the

(TARGET_TEMPLATE_ID) query result.

optional Double-click on the empty value cell next to the

attribute Template for Output. The BEx Open

dialog box appears. Select the Web template

from your history, favorites, roles, or the list of

workbooks.







If you do not specify a Web

template, the default Web

template is used.

Frame for Query Output (TARGET_FRAME) Frame in which the query is displayed when

executed.

optional

If you specify a frame, the query output is

controlled within this frame. Otherwise the

query is displayed in a new browser window.

Prerequisites for specifying a frame:

You have created a frameset in an external

HTML editor or manually (in Notepad).









Web API Reference BW 3.5 110

SAP Online Help 25.02.2005





Action on Execution You can use this attribute to determine what

happens to the Ad-hoc Query Designer Web

(ON_EXECUTE)

item in the Web Application after clicking on the

Execute pushbutton in the Ad-hoc Query

Designer.

The following options are available:

• No change to the item

The query is executed.

No change is made to the Ad-hoc Query

Designer Web item.

• Item is hidden

The Ad-hoc Query Designer disappears

when executing the query.

If you want to open the Ad-hoc Query

Designer again, while using the standard

Web template, click on in the symbol

toolbar.

If you are using a different Web

template, you need to install the option of

calling up the Ad-hoc Query Designer

again manually in the Web template.

• Item is collapsed

The Ad-hoc Query Designer is collapsed

when executing the query. You now see

the Web item with a collapsed arrow and

title.

If you want to open the Ad-hoc Query

Designer again, use the arrow to open it.









Web API Reference BW 3.5 111

SAP Online Help 25.02.2005





Action on closing You can use this attribute to determine what

happens to the Ad-hoc Query Designer Web

(ON_CLOSE)

item in the Web Application after clicking on the

Close pushbutton in the Ad-hoc Query

Designer.

The following options are available:

• No change to the item

During closing the query is closed in the

Ad-hoc Query Designer. The individual

fields (rows, columns, filter, free

characteristics) are now empty. There is

no change to the Web item itself.

• Item is hidden

The Ad-hoc Query Designer disappears

when closing.

If you want to open it again in the

standard Web template, click on in

the symbol toolbar.

If you are using a different Web

template, you need to install the option of

calling up the Ad-hoc Query Designer

again manually in the Web template.

• Item is collapsed

The Ad-hoc Query Designer is collapsed

when closing. You now see the Web

item with a collapsed arrow and title.

If you want to open the Ad-hoc Query

Designer again, use the arrow to open it.

Display Data Provider Data provider through which you want to

(DISPLAY_DATA_PROVIDER) display the query in the current Web template

after you have executed it.

optional

Specify the name of the DataProvider with

which you want to display the query in the Web

template. When you double-click on an empty

value cell next to the Data Provider Display

attribute, a dropdown box containing a list of

the data providers available appears.







If you specify

DISPLAY_DATA_PROVIDER but

not TARGET_FRAME or

TARGET_TEMPLATE_ID, when

you execute the query the display

data provider specified is

replaced in the current Web

template.









Web API Reference BW 3.5 112

SAP Online Help 25.02.2005









If you do not specify the optional attributes DISPLAY_DATA_PROVIDER,

TARGET_FRAME and TARGET_TEMPLATE_ID, the query results are displayed in

a new browser window in the Standard Web Template for Ad-hoc Analysis [Extern].



Integration

You can work with all queries in the BEx Query Designer, regardless of the tool with which they

were created.









Web API Reference BW 3.5 113

SAP Online Help 25.02.2005









ABC Classification

Definition

The ABC Classification web item allows you to classify objects (Customers, Products or

Employees) based on a particular measure (Revenue or Profit) using certain classification rules.

For further information, see ABC Classification [Extern] and Using ABC Classification in Web

Applications [Extern].

This web item supports only the old data mining models in the Data Mining Workbench. It is not

applicable to the results of transformation of ABC Classification in the Analysis Process Designer.



Structure

The ABC Classification web item has the following specific attributes:

Attributes Description

ABC_NAME (optional) Name of the ABC Classification

The name of the ABC Classification model that would be

used.

If you do not enter a model name, a drop down box

containing the names of all the models that are ready for

prediction in the selected service would appear in the web

item.

SHOW_ABC_CLASSIFICATION Show ABC Classification

"X" = Yes, " " = No Specifies whether the drop down box for selecting ABC

Classification should be displayed in the web item.

This option is relevant only if you have specified the ABC

Classification. Otherwise, it will not have any effect.

SHOW_STAT Display Statistics

"X" = Yes, " " = No Specifies whether statistical information about the selected

ABC Classification should be displayed in the web item.

SHOW_CHART Display ABC Classification Chart

"X" = Yes, " " = No Specifies whether the selected ABC Classification should be

displayed as chart in the web item.

SHOW_MODEL Display Model Name

"X" = Yes, " " = No Specifies whether meta data (which Info Object is classified

by which key figure from which Query) about the selected

ABC Classification should be displayed in the web item.









Web API Reference BW 3.5 114

SAP Online Help 25.02.2005









What If Prediction

Definition

The What If Prediction web item enables you to perform online prediction for a single customer

record on models defined under services such as Decision Tree, Scoring and Clustering. For

more details, see Executing What If Prediction Analysis [Extern] and Using What If Prediction in

Web Applications [Extern].



Use

The prediction for prospective customer behavior is based on specific attributes of that customer.

For example, when a customer applies for a loan, you can predict if the customer is creditworthy

or not, based on certain attributes such as income, profession or transaction history.



Structure

The What If Prediction web item has the following specific attributes:





Attributes Description









Web API Reference BW 3.5 115

SAP Online Help 25.02.2005





MODEL_NAME (optional) Name of the mining model

The name of the model that would be used to perform the

prediction.



If you do not enter a model name, a drop down box

containing the names of all the models that are ready for

prediction in the selected service would appear in the web

item.



If you specify a model name, but do not specify the

corresponding service name to which it belongs, an error will

be generated.



SERVICE_NAME (optional) Name of the service

The name of the service for the web item.



If you do not enter the service name, you can choose the

service from a drop down box containing the list of services

that support What If Prediction.



If you specify the service name and the model name, then

the web item will be for that particular service and model

only.



If you specify the service name but do not specify the model

name, then the web item will be published for that service.

You can choose the name of the model from the drop down

box.



DISPLAY_MODEL Display Model Name

"X" = Yes, " " = No Specifies whether the model name should be displayed in

the web item.

This option is relevant only if you have specified the model

name. Otherwise, it will not have any effect.





DISPLAY_SERVICE Display Service Name

"X" = Yes, " " = No Specifies whether the service name should be displayed in

the web item.

This option is relevant only if you have specified the service

name.

DISPLAY_CHART_OPT Display Chart Customize

"X" = Yes, " " = No Specifies whether the option to customize the what if

prediction analysis chart must be displayed or not.









Web API Reference BW 3.5 116

SAP Online Help 25.02.2005









Web Template Properties

Definition

Web Item that is used to determine the properties of a Web template.



Structure

The Web item Web Template Properties has the following general attributes:

Attributes Description

Status-free navigation The status is removed on the server after each

navigation step. Only recommended with

STATELESS

pages that are rarely navigated to.

Use personalized template, if available If available, a personalized Web template is

used.

USE_PERSONALIZATION

Do not display system messages System messages are not displayed.

SUPPRESS_SYSTEM_MESSAGES

Do not display warnings Apart from error messages, warnings are not

displayed.

SUPPRESS_WARNINGS

Force variable screen display The variable screen display is forced.

Otherwise the variable screen is only displayed

VARIABLE_SCREEN

if mandatory variables have not been filled.

Also see Object Tag for Properties of Web

Templates [Seite 125].

Reset variables to default values Variables are reset to default values. Also see

Object Tag for Properties of Web Templates

VARIABLES_CLEAR

[Seite 125].

Display same variables only once The same variables for different queries are

only displayed once. Also see Object Tag for

MELT_VARIABLES

Properties of Web Templates [Seite 125].

Open dialogs in new windows Dialogs are displayed in new windows. Also

see Object Tag for Properties of Web

ENABLE_OPEN_WINDOW

Templates [Seite 125].

Read mode for data With this attribute you determine the read

mode for data. Also see Object Tag for

DATA_MODE

Properties of Web Templates [Seite 125].

Output optimization (device-dependent) Automatic device-dependent optimization of

Web item settings for runtime (chart size for

DEVICE_OPTIMIZATION

PDAs, for example).

Session encoding in the URL Session encoding in the URL, instead of by

cookie. Each application runs in its own

(NO_SESSION_COOKIE)

session. Also see Object Tag for Properties of

Web Templates [Seite 125].









Web API Reference BW 3.5 117

SAP Online Help 25.02.2005





Automatic session management Resources are automatically released on the

server when you leave the page. See Web

(USE_PAGE_WRAPPER)

Template Properties [Extern].

Show jump target in With this attribute you are able to control

Report/Report Interface jumps:

(RRI_DISPLAY_TARGET)

• When the standard setting is selected

(menu bar RRI), the jump takes place in

a window with a menu bar.

• If you do not make an entry, the jump

takes place using a new window.

• If you specify a frame name, the jump

takes place in this frame.

• If you enter the name of a window, the

jump takes place in this window.

As well as the general attributes, you are also able to determine entries for the context menu.

Also see Modifying the Context Menu [Seite 132] on this.



Integration

From a technical perspective, a Web item is made up of Web template properties. This means

that you can also save the Web Template Properties Web item in a library in the Web Application

Designer, and reuse them in SAP Reference IMG → Business Information Warehouse →

Reporting-Relevant Settings → Web-Based Settings → Determining Settings for Web

Templates → Template Properties. Eigenschaften wiederverwenden.

The Web item Web Template Properties is not listed in the Web item tree in the Web Application

Designer.

See also:

Web Template Properties [Extern]

Working with the Library for Web Items [Extern]

Overriding Attributes [Seite 121]









Web API Reference BW 3.5 118

SAP Online Help 25.02.2005









Web Templates

Definition

A Web template determines the structure of a Web application. You use the Web Application

Designer to insert placeholders into a HTML document for Web items [Seite 10] (in the form of

object tags [Seite 124]), data providers [Seite 142] (in the form of object tags) and BW URLs. The

HTML document with the BW-specific placeholders is called a Web template. Web templates are

checked into the Web Application Designer. The HTML page that is displayed in the Internet browser

is called a Web application. Depending on which Web items you have inserted into the Web

template, a Web application contains one or more tables, an alert monitor, charts, maps, and so on.



Structure

The Web template is the keystone of a Web application. It contains placeholders for Web items

and command URLs [Seite 145]. Data providers, Web items, and command URLs are generated

for Web applications.

In the Web template, you determine from which data provider and it what way (Web items) the

BW data is displayed. You also determine which additional options there are (BW URLs).

When a request is sent from a Web application to the SAP Web Application Server, a template

object is generated. The structure of the requested HTML page is derived from this object. The

following objects are generated on the basis of this template:

• Data Providers

• Web Item



Integration

As of BW 3.0, Web templates are stored on the SAP Web Application Server.







The option to store Web templates (for BW 2.0B or BW 2.1C, for example) on the

ITS is still possible. We recommend, however, that you use the SAP Web

Application Server.



Example

The following is an example of a simple Web template with a navigation block [Seite 32] and a

table [Seite 16]:







New Page 1

















Web API Reference BW 3.5 119

SAP Online Help 25.02.2005































DATA_PROVIDER :View1





















ITEM :Nav Block























ITEM :Table

















Web API Reference BW 3.5 120

SAP Online Help 25.02.2005









Overriding Attributes

Use

All attributes for Web items and all Web template properties can be overridden. At the time of

execution, the respective attribute value is specified for Web items, corresponding to the

sequence

URL->Object Tag in Web Template -> Library Web Item -> System Default

of the corresponding attribute value. This is likewise valid for the Web template properties. Here

the specification occurs, corresponding to the sequence

URL-> Web Template Properties -> Library Web Item -> Web Template Properties defined in

Customizing for the Business Information Warehouse under Web-based Settings -> System

Default.

Example of the Web item attribute WIDTH (Width in Points) for the Web item Table









URL WIDTH =

Parameterization ‘600’









Web Item in Web WIDTH =

Template ‘500’









Library Web Item WIDTH =

‘400’



Default

WIDTH

= ‘300’









Example of Web template property SUPPRESS WARNINGS









Web API Reference BW 3.5 121

SAP Online Help 25.02.2005









URL

Parameterization X SUPPRESS_WARNINGS = ‘X‘





Web Template SUPPRESS_WARNINGS = ‘ ‘



Library Web Item

X SUPPRESS_WARNINGS = ‘X‘



Web Template SUPPRESS_WARNINGS = ‘ ‘

Properties in

Customizing



Default

X

SUPPRESS_WARNINGS = ‘X‘









General Rules for Overriding Settings

The following graphic shows the priority rules when overriding settings of the Web template

properties and the Web item attribute.





Web Template Properties Web Item Attributes





URL Parameterization URL Parameterization







Template Settings for Template Settings for

Web Template Properties Web Item Attributes





Library Setting for Web Library Setting

Template Properties for Web Item Attribute





Customizing Setting

for Web Template

Properties





SAP Standard SAP Standard









Web API Reference BW 3.5 122

SAP Online Help 25.02.2005









Web API Reference BW 3.5 123

SAP Online Help 25.02.2005









Object Tags

Definition

By using object tags, you can determine properties of Web templates, create data provider and

Web items in a Web template, and supply them with attributes. These object tags are created in

the Web Application Designer.



Structure

An object tag starts with “” and ends with “”. The SAP_BW object tags are

identified by the attribute “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 application.

Attributes for BW object tags should be set within the object tag in the form of a parameter tag.







...







In runtime, however, attributes can also be set in the object tag at the beginning:



This is not recommended as it is not supported in the Web Application Designer.





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 attributes of the object

tag. It is usually possible to use the drag and drop function to move the object tags around a

page.

The following object tags play an important role in BEx Web Applications:

Object Tag for Properties of Web Templates [Seite 125]

Object Tag for Data Provider [Seite 142]

Object Tag for Web Items [Seite 144]









Web API Reference BW 3.5 124

SAP Online Help 25.02.2005









Object Tag for the Properties of Web Templates

Definition

Object Tag for defining the properties of Web templates.



Use

The attributes of a Web template can be defined in an object tag. In addition to the Web template

attributes listed below, all of the context menu properties also belong. These properties can also

be transferred with URL when calling up the Web template.







Parameter 'CMD' must be set to 'SET_PROPERTIES' to indicate that these are the

attributes of the Web template.

Attributes Description

TEMPLATE_ID Name of the Web template

Name under which you stored the Web template in the Web

Application Designer.

STATELESS (optional) Status-free navigation

‘X’ = Yes, ‘ ’ = No For Web templates that are used almost exclusively for display without

further navigation, it is more useful to set the attribute STATELESS.

The session on the application server is terminated when the Web

template is created. This saves resources on the application server.







If this attribute is not specified, it is assumed that the

page is still needed for navigating.





USE_PERSONALIZATION Use personalized Web template, if available

(optional)

If the parameter is set to ‘X’, the personalized Web template for the

'X' = Yes, ' ' = No current user is used. If personalization does not exist for the Web

template or the parameter is not set, the Web template is executed

without personalization.

STYLE_SHEET (optional) Path to a stylesheet that you want to use to display the Web

template.

This overwrites any stylesheet that you may have already assigned to

the Web template.





Example for a path specification:

/sap/bw/mime/BEx/StyleSheets/Meadow_BWReports.css









Web API Reference BW 3.5 125

SAP Online Help 25.02.2005





JAVASCRIPT (optional) Using JavaScript

’X’ = activate, ‘ ’ = do not activate Using this parameter, you ensure that Web applications are created

using JavaScript (extensive interaction options) or suppress the use of

JavaScript (restricted interaction).







If this attribute is not transferred, JavaScript is activated

automatically in Web browsers of version >=4.0.





SNIPPET_OPERATIONS (optional) Reload changed components of the page

’X’ = activate, ‘ ’ = do not activate You use this attribute to control whether only changed objects are

loaded in navigation. This function has higher Web browser

requirements. For this reason, this function is only supported by MS

Internet Explorer version >=5.0.







If this attribute is not transferred, loading is activated

automatically for the suitable Web browsers.





ENABLE_OPEN_WINDOW Open dialogs in new windows

(optional)

Using this attribute, you can control whether a new browser window is

’X’ = activate, ‘ ’ = do not activate opened, for example, for the properties dialog box or for filtering. If this

attribute is not specified, new windows are opened (if supported by the

Web browser).

VARIABLE_SCREEN (optional) Force variable screen display

‘X’ = activate variable screen, ‘ ’ = If you call up a Web template that has query views containing

do not activate, if possible variables that are ready for input, you can use these attribute to

display the variable screen. If you do not set this attribute, or set it to ‘

’, the variable screen is hidden, wherever possible. However, it is still

shown if, for example, the required variables that are ready for input

have not yet been filled.

MELT_VARIABLES (optional) Display same variables only once

‘X’ = merge, ‘ ’ = display each query The same variables for different queries are only displayed once.

individually

If you call up a Web template containing several query views that have

variables that are ready for input and you go to the variable screen

display, you can determine, through these parameters, whether

variables, which are used in all query views and in the same context

(same compounding, same initial value), are to be provided for input

only once.

If the variables correspond to different InfoProviders, then the input

help is automatically read from the master data table.









Web API Reference BW 3.5 126

SAP Online Help 25.02.2005





VARIABLES_CLEAR (optional) Reset variables to default values

‘X’ = reset variable, ‘ ’ = do not reset If you call up a Web template that contains one or more query views

that have variables that are available for entry, you can specify this

attribute to reset the default variables through the query view.

Afterwards, the variables have the default settings from the variable

definition.

SUPPRESS_WARNINGS Do not display warnings

(optional)

With this attribute, warnings are not displayed. Terminations are still

‘X’ = do not display warnings, ‘ ’ = displayed.

display warnings

SUPPRESS_SYSTEM_MESSAGES Do not display system messages

(optional)

With this attribute, system messages are not displayed.

‘X’ = do not display system

If you assign the value ‘CONDITIONAL’, system messages are only

messages, ‘ ’ = display system

displayed once a day for each user.

messages

'CONDITIONAL' = only display

system messages for the user once

a day.

DATA_MODE (optional) Read mode for data

‘NEW’ = use current data If you do not specify this attribute, a request is without exception sent

to the OLAP processor and the current data is read.

‘STORED’ = Use precalculated data

For the modi ‘STORED’ and ‘HYBRID’, data has to be precalculated

‘HYBRID’ = use precalculated data;

using the Reporting Agent [Extern].

request current data if this is

missing. See Defining the Web Templates Setting [Extern].

‘STATIC’ = use pre-calculated HTML

pages

‘STATIC_HYBRID’= use pre-

calculated HTML pages. If there are

none, search for pre-calculated data;

if nothing found, request current

data.

DEVICE_OPTIMIZATION Output optimization (device-dependent)

By selecting this attribute, you bring about an automatic, device-

specific optimization of Web item settings at runtime (for example,

chart size for PDAs).









Web API Reference BW 3.5 127

SAP Online Help 25.02.2005





NO_SESSION_COOKIE Session encoding in the URL, instead of by cookie. Each Web

application runs in its own session.

‘X’ = session encoding in the URL, ‘

‘ = no session encoding in the URL A cookie is used by default to manage the session for a stateful BEx

Web Application. This can lead to possible problems; however, you

can eliminate these with the help of this attribute.







In the following cases it is preferable to use session encoding in the

URL:

• You are integrating a BSP-Application (BC-BSP) [Extern] into a

BEx Web Application. The BEx Web Application is also sent to

the BSP application. The BSP application exits the session, for

example because it is stateless. This causes a timeout in the

BEx Web Application. You can use the attribute Session

Encoding in the URL instead of by Cookie to avoid this problem.

The BEx Web Application then uses the session coding in the

URL and no session cookie is sent to the BSP application.

• Several initials call-ups from different BEx Web Applications

occur simultaneously in the same Web Browser (for example in

the case of a frameset, where the frames contain different URLs

from BEx Web Applications). In this case the default use of

session cookies causes errors. As there is no initial session,

each request produces a new session on the server.

Accordingly, each reply sent back to the Web Browser contains

a new session cookie. However the session cookie always has

the same name and is therefore overwritten in the Web Browser

with each reply. Navigation to the BEx Web Application, for

example sent back from the server first, also uses the session

cookie from the previous reply. However, in this session the

state of the Web Application is not given. You can use the

attribute Session Encoding in the URL instead of by Cookie to

avoid this problem. The session is then always contained within

the URLs and is not influenced by other BEx Web Applications.

• The Web Browser used does not support cookies (this is the

case for example with some mobile devices). However in this

case, the automatic device recognition [Extern] starts the

application for such devices in the NO_SESSION_COOKIE=X

session.

When using the attribute Session Encoding in the URL instead of by

Cookie, no session bundling between different BEx Web Applications

follows. Each Web Application is allocated its own session on the

server.

USE_PAGE_WRAPPER Automatic session management

' ' = not active, 'X' = active, 'PING' = If you select this attribute, the resources are automatically released to

prevent timeout the server. You can find additional information about this attribute

under Web Template Properties [Extern].









Web API Reference BW 3.5 128

SAP Online Help 25.02.2005





RRI_DISPLAY_TARGET • Show jump target in

Standard setting: menu barRRI With this attribute you can control the RRI jump from the context

menu.

When the standard setting is selected, the RRI jump takes place in a

window with a menu bar.

If you do not make an entry, the RRI jump always takes place using a

new window.

If you enter a frame name, the RRI jump takes place in this frame.

If you enter the name of an existing window, the RRI jump takes place

in the window with the specified name.

Also see Web Template Properties [Seite 117] and Properties of a Web Template [Extern].



Examples

The Web template should appear with variables entry











Context menu should not contain an enhanced menu













The following, additional attributes for setting data providers or special data providers / Web items

are usually set only in conjunction with command URLs for calling up Web templates. However,

they can also appear statically in the object tag. The index in the parameter is indicated in the

following by '_I'.



Displaying a query



Attributes Description

INFOCUBE Technical name of the InfoProvider

QUERY Technical name of the query

VARIANT (optional) Variant, if you are not required to enter a

variable.





Display of another query view



Attributes Description

DATA_PROVIDER_ID Technical name of the saved query view

VARIANT (optional) Variant, if you are not required to enter a

variable.





Web API Reference BW 3.5 129

SAP Online Help 25.02.2005









The attributes PAGEID and WBID that are used in BW 2.x are supported for the

Web templates created under BW 2.x. However, we recommend that you no longer

use these.



Attributes for overwriting the data provider initialization



Attributes Description

SET_DATA_PROVIDER_I Logical name of the data provider

Name of the data provider for which you want

to set a new initialization.

INFOCUBE_ I (Option 1) Technical name of the InfoProvider

QUERY_ I (Option 1) Technical name of the query

DATA_PROVIDER_ID_ I (Option2) Technical name of the saved query view

VARIANT (optional) Variant, if you are not required to enter a

variable.



Attributes for overwriting the Web item initialization



Attributes Description

SET_ITEM_I Logical name of the Web item

Name of the Web item for which you want to

set a new initialization.

ITEM_ID_I (Option 1) Web item key

A Web item is created for a Web template on

the basis of a Web item setting made in the

Web Application Designer.

ITEM_CLASS_I (Option 2) Class name of the Web item class

Name of the ABAP object class that output

generation transfers. This corresponds to the

use of non-reusable Web items (standard Web

items) in the Web Application Designer. Web

items are created with the default values for the

attribute.

The class name for the table is

CL_RSR_WWW_ITEM_GRID for example.









Web API Reference BW 3.5 130

SAP Online Help 25.02.2005









Adjusting and Enhancing the Context Menu

Use

You can adjust the context menu that is created automatically for table cells to your company-

specific needs and scenarios.

You can copy functions of the enhanced context menu to the context menu that is not enhanced

or you can hide functions.

You can also integrate your own context-specific entries in the context menu.



Functions

The following options are available:

Adjusting the Context Menu [Seite 132]

Enhancing the Context Menu [Seite 139]









Web API Reference BW 3.5 131

SAP Online Help 25.02.2005









Adjusting the Context Menu

Use

Along with properties such as VARIABLE_SCREEN, you can also modify the context menu for a

Web template. You can turn every entry in the menu on or off or place it in the Enhanced Menu.



Features

All entries in the context menu are listed in the following list of attributes:







Menu entries that are not specified retain their default value. The default values are

underlined in the list

Attributes Description

Back Menu entry: “Back”

Undo one navigation step on a data provider

(MENU_BACK)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Back to start Menu entry: “Back to Start”

Undo all navigation steps on a data provider

(MENU_BACK_TO_START)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Keep filter value Menu entry: “Keep Filter Value”



(MENU_FILTER)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Keep filter value on axis Menu entry: “Keep Filter Value on Axis”



(MENU_FILTER_ON_AXIS)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”









Web API Reference BW 3.5 132

SAP Online Help 25.02.2005





Select Filter Value Menu entry: “Select Filter Value”



(MENU_SELECT_FILTER)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Keep Filter Value on Axis for Diagram Menu entry: “Keep Filter Value on Axis for

(MENU_FILTER_ON_AXIS_CHART) Diagram”

When considering diagrams, it is often more

‘ ’= Not displayed

useful to use the command “Keep Filter Value

‘X’= “Always Display” in the basic menu on Axis” than it is to keep the filter, which is

removed when you drilldown. The geometry of

‘E’= Displayed in the “enhanced menu”

the list remains the same and the chart/or map

can still be interpreted. Therefore, there are

separate settings for these Web items.

Keep Filter Value for Diagrams Menu entry: “Keep Filter Value” for Diagrams

(MENU_FILTER_CHART) When considering diagrams, it is often more

useful to use the command “Keep Filter Value

‘ ’= Not displayed on Axis” than it is to keep the filter, which is

‘X’= “Always Display” in the basic menu removed when you drilldown. The geometry of

the list remains the same and the chart/or map

‘E’= Displayed in the “enhanced menu” can still be interpreted. Therefore, there are

separate settings for these Web items.

Filter and Drilldown According to Menu entry: “Filter and Drilldown According to”



(MENU_FILTER_DrILL_DOWN)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Drilldown According to Menu entry: “Drilldown According to”



(MENU_DRILL_UP)

‘ ’= Not displayed “Drilldown” with the exception of

‘X’= “Always Display” in the basic menu navigation in maps.

‘E’= Displayed in the “enhanced menu”

Drilldown According to in Context of Map Menu entry: “Drilldown According to” in Context

of Map

(MENU_DRILL_UP_GIS)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu “Drilldown” in the context of

navigation in maps.

‘E’= Displayed in the “enhanced menu”









Web API Reference BW 3.5 133

SAP Online Help 25.02.2005





Insert Drilldown According to Menu entry: “Insert Drilldown According to”



(MENU_DRILL_DOWN)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Swap ... with ... Menu entry: “Swap ... with ...”

Swap characteristics or structures.

(MENU_EXCHANGE_OBJECTS)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Remove drilldown Menu entry: “Remove Drilldown”



(MENU_REMOVE_DRILL_DOWN)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Swap Axes Menu entry: “Swap Axes”



(MENU_SWITCH_AXIS)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Expand/Collapse Hierarchy Nodes Menu entry: Expand/Collapse Hierarchy Nodes



(MENU_HIERARCHY_NODE_DRILL)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Expand Hierarchy Menu entry: “Expand Hierarchy”



(MENU_HIERARCHY_DRILL)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

(De)activate Hierarchy Menu entry: “(De)activate Hierarchy”



(MENU_HIERARCHY_STATE)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”









Web API Reference BW 3.5 134

SAP Online Help 25.02.2005





Sorting Menu entry: “Sort”

Sort by characteristic cells and data cells.

(MENU_SORT)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Calculate result as... Menu entry: “Calculate Result as”

Calculations for value cells.

(MENU_CALCULATE_RESULT)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Calculate single values as... Menu entry: “Calculate Single Values As...”

Calculations for value cells.

(MENU_CALCULATE_VALUE)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Cumulated Menu entry: “Cumulated”

Calculations for value cells.

(MENU_CUMULATE_VALUE)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Displaying Documents Menu entry: “Display Documents”



(MENU_DISPLAY_DOCUMENTS)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Create Document Menu entry: “Create New Document”



(MENU_DOCUMENT_CREATE)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Show/Hide Document Properties Menu entry: “Show/Hide Document Properties”

In the context of the Web item List of

(MENU_DISPLAY_DOCUMENT_PROP)

Documents.

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”









Web API Reference BW 3.5 135

SAP Online Help 25.02.2005





Show/Hide Document Selection Criteria Menu entry: “Show/Hide Document

Selection Criteria”

(MENU_DISPLAY_DOCUMENT_SELEC) In the context of the Web item List of

‘ ’= Not displayed Documents.



‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Report/Report Jump Targets Menu entry: For report/report jump targets



(MENU_RRI)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Export as …CSV File Menu entry: “Export as... CSV File”



(MENU_EXPORT_TO_CSV)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Export as ... MS Excel 2000 File Menu entry: “Export as ... MS Excel 2000 File”



(MENU_EXPORT_TO_XLS)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Bookmark Menu entry: “Bookmark”

Create bookmarks.

(MENU_BOOKMARK)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Bookmark with Displayed Data Menu entry: “Bookmark with Displayed Data”

Create bookmark with the current data. When

(MENU_BOOKMARK_WITH_DATA)

you call up the bookmark later, the “historical”

‘ ’= Not displayed data is displayed.

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Personalize Web Page Menu entry: “Personalize Web Page”



(MENU_PERSONALIZE)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”









Web API Reference BW 3.5 136

SAP Online Help 25.02.2005





Display Charactieristic Properties Menu entry: “Display Characteristic Properties”

Properties for characteristic cells.

(MENU_CHARACTERISTIC_PROPERTIES)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Value Cell Properties Menu entry: For value cell properties

Properties for value cells.

(MENU_VALUE_PROPERTIES)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Query Properties Menu entry: “Query properties”



(MENU_QUERY_PROPERTIES)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Display variable screen Menu entry: For calling up variables screen

Variable entry call up if there are queries have

(MENU_VARIABLE_SCREEN)

variables in the Web Application.

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Currency translation Menu entry: “Currency Translation”

Calls up the currency translation dialog box.

(MENU_CURRENCY_CONVERSION)

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

Enhanced Menu Menu entry: “Enhanced Menu”

Display option for entries in the enhanced

(MENU_ENHANCED)

context menu.

‘ ’= Not displayed

‘X’= “Always Display” in the basic menu

‘E’= Displayed in the “enhanced menu”

ENHANCED_MENU Start with Enhanced Menu

You decide here whether the page opens with

‘ ‘ = Start with basic menu

the basic menu (standard setting) or the

‘X’ = Start with enhanced menu enhanced menu.



Examples

For this example, Swap Axes appears in the basic context menu and the currency

translation is completely hidden.







Web API Reference BW 3.5 137

SAP Online Help 25.02.2005

























Web API Reference BW 3.5 138

SAP Online Help 25.02.2005









Enhancing the Context Menu

Use

As well as being able to make entries in the context menu visible, entries in the enhanced menu

visible or entries in the enhanced menu invisible, you can also hang scenario-specific entries in

the menu. You have two options:

• You define the new entries using the Web Template Properties object tag.

• You add the new entries to the menu using the JavaScript function.

The first way is described in this section.

In both cases, you have to write a JavaScript function that transfers the processing when you

select the menu entry. You can find out more about this under Command Processing [Seite 248].



Features

New entries are defined using different series of attributes in the Web template properties as

follows:

Attribute Description

CMENU_LABEL_I Labeling text in the menu

CMENU_FUNCTION_I JavaScript function for processing the

command

You implement this function in JavaScript and

use it to execute commands after you have

selected the menu entry.

CMENU_PARAMETER_I Free parameter

This attribute is passed to the JavaScript

function 'CMENU_FUNCTION' and can be

evaluated there as required. The attribute

makes it possible to use a function for more

than one menu entry.

CMENU_CELL_TYPE_I Context of the entry

‘ ’ = No restriction If you want the menu entry to appear only in

certain contexts and not in all context menus,

‘CHARACTERISTIC’ = Characteristic

you can define this with ‘cell_type’ and ‘filter’.

‘CHARACTERISTIC_VALUE’ = Characteristic

value

‘STRUCTURE’ = Structure

‘STRUCTURE_VALUE’ = Structure component

value

‘DATA’ = Data cell

‘EXCEPTIONS’ = Exceptions item

‘CONDITIONS’ = Conditions item

'DOCUMENT_LIST' = Document list item









Web API Reference BW 3.5 139

SAP Online Help 25.02.2005





CMENU_FILTER_I Context of the entry

According to the value of ‘cmenu_cell_type’,

different values are useful here:



‘CHARACTERISTIC’,

‘CHARACTERISTIC_VALUE’, ‘STRUCTURE’,

‘STRUCTURE_VALUE’: Iobjnm

‘EXCEPTIONS’: Exception ID

‘CONDITIONS’: Condition ID

‘DOCUMENT_LIST’: Document ID

See Examples.

CMENU_VISIBILITY_I Visibility of the entry

‘ ’= Not displayed You specify whether the entry is to appear in

the basic menu or also in the enhanced menu.

‘X’= Displayed in the “basic menu”

‘E’= Displayed in the “enhanced menu”

CMENU_POSITION_I Position of the entry

‘TOP’ = Before the “normal” entries The entries are inserted in the order in which

they were called up. You can choose whether

‘BOTTOM’ = After the “normal” entries

the entry is to appear before the “normal”

entries or after them in the menu. You cannot

position the entries in between the “normal”

entries.



Examples

.





// Menu entry at the beginning and only on customer cells



















// Menu entry at the end for IT homepage











// Menu entry at the beginning and only on material groups









Web API Reference BW 3.5 140

SAP Online Help 25.02.2005

















You can find an example implementation for the JavaScript function “myMenuProcessor” under

JavaScript [Seite 237].









Web API Reference BW 3.5 141

SAP Online Help 25.02.2005









Object Tag for Data Provider

Definition

Object tag for creating Data Providers (BW-BEX) [Extern].



Use

The attributes that you need for creating a data provider are available in the Web Application

Designer.



Data provider properties



Attributes Description Notes

DATA_PROVIDER ( or Name Logical name of the data SAP recommends that you

) provider keep to the conventions

supported by the Web

This name is used to attach

Application Designer when

Web items to a particular data

specifying names: The name

provider and to send

should be a maximum of 30

commands to the data

characters long and consist of

provider. The name must be

characters “A-Z”, “0-9” and “_”.

unique within the Web

It cannot start or end with “_”.

template [Seite 119].

Adhering to these conventions

facilitates the upgrade to

future SAP releases.

DATA_PROVIDER_ID Key for a query view You cannot change this

(optional) attribute with a command URL

[Seite 145].

QUERY (optional) Technical name of a query You cannot change this

attribute with a command URL

[Seite 145].

INFOCUBE (optional) Technical name of the This attribute is necessary if

InfoProvider the QUERY attribute is

specified. You cannot change

this attribute with a command

URL [Seite 145].

VARIANT (optional) Name of the variant used to You cannot change this

fill the variables attribute with a command URL

[Seite 145].

When you save a query view,

the current variable values are

saved with it. You can

overwrite the values by

specifying a variant (optional).

You create variants on the

variables screen.

HOME_FRAME (optional) Name of the main frame

If you use HTML frame

technology to display the data,

and you want to display the F4





Web API Reference BW 3.5 142

SAP Online Help 25.02.2005





Help in a separate frame to

the Web template, for query

views, you have to specify in

the HOME_FRAME attribute,

the name of the frame where

the Web template is displayed.

You also have to specify the

attribute

TARGET_HELP_FRAME for

the navigation block Web item.







• The attributes VIEWID and WBID (DATA_PROVIDER_WBID) used in BW

2.x are still supported. However, we recommend that you no longer use

these.

• The ‘CMD’ parameter has to be filled with the ‘SET_DATA_PROVIDER’ to

indicate that you are creating a data provider

• You can add additional attributes, for example, in order to send a command

to the data provider before calling up the page.



Examples

Create query view











DATA_PROVIDER :View1







Query view filtered by country (USA)















DATA_PROVIDER :View1











Web API Reference BW 3.5 143

SAP Online Help 25.02.2005









Object Tag for Web Items

Definition

Object tag for creating a Web item.



Use

The attributes that you need for creating a Web item are available in the Web Application

Designer. You can add additional attributes to adjust the size at a later point, or to set a title, for

example.







The parameter ‘CMD’ has to be filled with ‘GET_ITEM’ to indicate that you are

creating a Web item.



Example

Creating a Web Item













ITEM :Nav Block



Creating a Web item with height 400 pixels, width 500 pixels, and the title “Business

Graphic”

















ITEM :Chart 1











Web API Reference BW 3.5 144

SAP Online Help 25.02.2005









Command URLs

Definition

You can set command URLs in a Web template [Seite 119], as well as an object tag [Seite 124].

With the help of command URLs, you make changes, such as to properties of Web items or to

the conditions of data providers. Furthermore, you can also realize several other navigation

options (for example, report/report interface, export as Excel file, and call-ups from other Web

templates).

Command URLs are usually visualized by means of text hyperlinks or pushbuttons. In addition,

command URLs can be used to enhance the context menu or when using formulas.



Structure

Command URLs have the following structure:



You can also add other parameters with “&“ behind the tag.

If you use command URLs as hyperlinks in a Web template, the command URLs are embedded in the Web

template as follows:

3. Hyperlink as text

"

target="_Blank">Example Call up Template in New Window

4. Hyperlink behind pushbutton



" target="_Blank">Call

Example Template in Separate Window



5. Using hyperlinks in JavaScript functions

SAPBWOpenURL('’);

Within JavaScript you can also use the JavaScript function SAP_BW_URL_Get(), for

example:

SAPBWOpenURL(SAP_BW_URL_Get()+’&cmd=LDOC&TEMPLATE_ID=EXAMPLE_TEM

PLATE’);

In contrast to the form, the SAP_BW_URL_Get() form can also be used

in JavaScript includes because the URL is first composed at runtime.

6. Enhancing the context menu

You can also use command URLs during Enhancing the Context Menu with JavaScript

[Seite 245].

7. Using Forms

You can also use command URLs when Using Forms [Seite 234].







Web API Reference BW 3.5 145

SAP Online Help 25.02.2005





8. Command URLs act as placeholders that are replaced at runtime by the required

information, such as the log (HTTP, HTTPS), server name, port number and status

information (request number, page number). Do not specify absolute URLs when naming

the log, server name and port number, instead specify command URLs with the

form. Note only command URLs are transportable between different BW

systems when they are replaced at runtime.







Use language-dependent texts [Seite 259] during visualization of command URLs

as hyperlinks, pushbuttons or in enhancement of the context menu.

and can be combined in one link.



Example:

Command URL in the Web template:

”>

Command URL for the runtime if the Web template is started by the user:



This URL requests a new page from the BW server. The parameters are removed from the BW

server side. The status of the previous page is changed due to the transfer of the parameters (for

example, filters are set).

See also:

Command Sequences [Seite 232]

Sending Commands [Seite 238]



Different Command Types

There are different types of commands:

• Commands for Changing Attributes of a Web Item [Seite 147]

• Data Provider Dependent Commands [Seite 172]

• Commands for Web Templates [Seite 150]









Web API Reference BW 3.5 146

SAP Online Help 25.02.2005









Changing Web Item Attributes

Use

In a Web application you can reset the Web item attributes for the runtime in a simple and easy

way. All attributes are available for this, which you can also set in the Web Application Designer.

You can find the attributes available for this under Web Items [Seite 10] as well as an explanation

of the individual Web items.



Features

Parameter Description

ITEM Item name

You are able to apply a command to several

Web items. In addition to the explicit

specification of Web items, the quantity can

also be limited by means of wild cards

(MUTLI=’X’). The command is applied to all

Web items, as long as they support this action.

You must specify the Web item(s).

MULTI Use Web item as template

If MULTI is set to ‘X’, the command is applied

to all the Web items that have ITEM in their

name. ’*’ corresponds to all Web items.

This parameter is optional.



‘X’ = Yes, ‘ ’ = No



Example

Pushbutton for activating alternating styles for table rows:

”>Alternierende

Styles









Web API Reference BW 3.5 147

SAP Online Help 25.02.2005









Resetting and Reinitializing Web Items

Use

You use this command to reinitialize an existing Web item. The Web item is recreated according

to the parameters and is given the data provider [Seite 172] and the logical name of its

predecessor. This allows you, for example, to create a graphic easily from a table without having

to create both objects in the Web template.







You can use this command to create almost every kind of Web item. The Map Web

item is however an exception. Map Web items cannot be created consistently using

this command.



Features

CMD RESET_ITEM

Parameter Description

ITEM Name of the Web item that is to be reinitialized.

ITEM_CLASS Name of the ABAP object class that generates

the output.

The class name for the Web item Table is, for

example

CL_RSR_WWW_ITEM_GRID

or

CMD RESET_ITEM

Parameter Description

ITEM Name of the Web item that is to be reinitialized.

ITEM_ID Technical name of a library Web item

In order to overwrite individual attributes of the Web item to be reinitialized you can enter them as

parameters.









Conversion of Web item “item1” to a Web item table without alternating rows:



Conversion of the Web item “item1” to a pre-defined Web item Chart.



When combined with a dropdown box (as HTML form), you can display several

charts in one place by leafing through the dropdown box. You can find an example

of this in the standard Web template for the Ad-hoc Analysis (subtemplate

0ADHOC_CHARTS).







Web API Reference BW 3.5 148

SAP Online Help 25.02.2005









Web API Reference BW 3.5 149

SAP Online Help 25.02.2005









Commands for Web Templates

Use

Commands for Web templates include all commands that are neither specific to data providers or

to Web items. They include commands for calling up and changing Web templates and for

generating bookmarks.

For more information, see:

Calling up a Web Template [Seite 151]

Calling up Parameterized Web Templates [Seite 153]

Changing a Web Template [Seite 158]

Personalizing Web Templates [Seite 159]

Generating Bookmarks [Seite 160]

Changing the Symbol Directory [Seite 161]

Releasing Web Templates [Seite 162]

Ending a Session [Seite 163]

Variables [Seite 164]









Web API Reference BW 3.5 150

SAP Online Help 25.02.2005









Calling up Web Templates

Use

The URL for calling a Web template is generated by the Web Application Designer. You can

extend the URL by various parameters when you call up a Web template. These parameters can:

• influence the contents or display of the data for the result that is returned (see Calling Up

Parameterized Web Templates [Seite 153])

• activate or deactivate different functions on the server.



Features

Choose from the following options to call up the template:



Standard call up and properties of Web templates







You can find the permitted attributes for Web template properties under Object Tag

for Properties of Web Templates [Seite 125].

CMD LDOC

Parameter Description

TEMPLATE_ID Name of the Web template

Name under which you stored the Web

template in the Web Application Designer.

TRACE (optional) Activate OLAP trace

You usually need a trace to analyze problems

’X’ = activate, ‘ ’ = do not activate

in SAP. You can activate the trace with the

help of note 112458 or by using the TRACE

attribute.

Any other parameters for parameterizing See Object Tag for Properties of Web

your Web template Templates [Seite 125].







The parameters PAGEID and WBID that are used in BW 2.x are supported for the

Web templates created under BW 2.x. However, we recommend that you no longer

use these.







Calling up the Web template without navigating

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&TEMPLATE_ID=yourTe

mplate&STATELESS=X

Calling up the Web template with an activated trace

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&TEMPLATE_ID=yourTe

mplate&TRACE=X

Calling up the Web template with reset variables and active variable screen









Web API Reference BW 3.5 151

SAP Online Help 25.02.2005





http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&TEMPLATE_ID=yourTe

mplate&VARIABLE_SCREEN=X&VARIABLES_CLEAR=X



Calling up the Web template with a different data provider

This call-up replaces all data providers [Seite 172] of the type 'query view' with the data provider

specified. This makes it possible to make a query or query view available without making any

further settings in the Web, and then use predefined Web templates for the page layout.

You can find the description of the necessary parameters under Object Tag for Properties of Web

Templates [Seite 125]







Displaying a query by using a Web template of your choice

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&TEMPLATE_ID=yourTe

mplate&infocube=myCube&query=myQuery



Setting your own Web template objects

As well as being able to define a new initialization for all data providers of a Web template, you

can also convert each data provider specifically and each Web item, using parameterization. By

doing this, you allow even your more complicated Web templates to be reused. You can find the

description of the necessary parameters under Object Tag for Properties of Web Templates [Seite 125]







Swapping two data providers and a Web item when calling up a Web template

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&TEMPLATE_ID=yourTe

mplate&SET_DATA_PROVIDER_1=myDataProvider1&infocube_1=myCube&qu

ery_1=myQuery&SET_DATA_PROVIDER_2=myDataProvider2&data_provider_

id_2=mySpecialView&SET_ITEM_3=myItem&ITEM_ID_3=myPieChart



Using a standard Web template for a data provider

If you call up the previous variant without specifying a TEMPLATE_ID, a standard Web template

is used automatically. To make a Web template the standard Web template, go to BW

Customizing Implementation Guide → Business Information Warehouse → Settings Relevant for

Reporting → Web-Based Settings → Determine a Standard Web Template.

If there is no setting made here, the system uses a Web template generated by SAP. You can

find more information on the Standard Web Template under Standard Web Template for Ad-hoc

Analysis [Extern].







Calling up a query without making any preparations in the Web

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&infocube=myCube&qu

ery=myQuery









Web API Reference BW 3.5 152

SAP Online Help 25.02.2005









Calling Parameterized Web Templates

Use

The URL for calling a Web template is generated by the Web Application Designer. It is possible

to copy the URL, and use it again as many times as you like.

A typical URL looks like this:

http://myAppServer:myPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate

The first part of the URL ((http://myAppServer:myPort/SAP/BW/BEx?) calls the BEx service in the

SAP Web Application Server in the BW system. The next step is to call the Web template. The

command ‘LDOC’ with the parameters 'TEMPLATE_ID' calls the Web template.

The command LDOC requests a new HTML page. The Web template is used to construct this

HTML page. The Web application corresponding to the Web template is displayed in the Web

Browser.

You parameterize the Web template by adding further parameters to the URL. These parameters

are passed on to all data providers and Web items. Parameterizing the URL allows you to filter all

the query views according to a particular country or cost center.



Examples

Filtering all query views according to Germany

http://myAppServer:myPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&FILTER_IO

BJNM=0COUNTRY&FILTER_VALUE=DE

Filtering all query views according to Germany, 2000

http://myAppServer:myPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&FILTER_IO

BJNM_1=0COUNTRY&FILTER_VALUE_1=DE&FILTER_IOBJNM_2=0CALYEAR&FILTER_V

ALUE_2=2000

Displaying all Web items with title

http://myAppServer:myPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&GENERAT

E_CAPTION=X









Web API Reference BW 3.5 153

SAP Online Help 25.02.2005









Default Variables for Web Applications

Use

Variables [Extern] play a central role in BW queries. For example, the entire query or only

individual parts of the query can be filtered before reading data according to values. There are

variables with automatic substitution, substitution from authorizations, or variables that are ready

for input.

The variables for Web applications can be processed in the background (without a variable

screen) using the parameter VARIABLE_SCREEN=%20 or in the foreground (with a variable

screen) using the parameter VARIABLE_SCREEN=X. In both cases, we recommend you specify

default variables through parameterization. Therefore, all types of variables that are ready for

input are supported. For more information about the VARIABLE_SCREEN, see Object Tag for

the Properties of Web Templates [Seite 125].

In contrast to filtering, the external value for specifying default values has to be specified for the

variables. The date, for example, is transferred as it has been entered.



Features

Specifying default variables is achieved by parameterizing the URL. The variable values are

separated from each other by different indexes.

The index in the parameter is indicated in the following by '_I'.



Characteristic Value Variables

Parameter variables or variables for several single values are predefined as follows:

Parameter Description

VAR_NAME_I Technical name of the variables

VAR_VALUE_EXT_I Attribute value in external display

Key for characteristic value in external display

Interval variables are predefined as in the following:

Parameter Description

VAR_NAME_I Technical name of the variables



VAR_VALUE_LOW_EXT_I “From” characteristic value in external

display

Key for characteristic value in external display

VAR_VALUE_HIGH_EXT_I “To” characteristic value in external display

Key for characteristic value in external display

Selection option variables are predefined as in the following:

parameter Description

VAR_NAME_I Technical name of the variables









Web API Reference BW 3.5 154

SAP Online Help 25.02.2005





VAR_OPERATOR_I An operator

'EQ' = Individual value

'BT' = Interval

'LT' = Less than

'LE' = Less than or equal to

'GT' = Greater than

'GE' = Greater than or equal to

VAR_VALUE_LOW_EXT_I “From” characteristic value in external

display

Key for characteristic value in external display

VAR_VALUE_HIGH_EXT_I “To” characteristic value in external display

Key for characteristic value in external display







This value must only be specified

with VAR_OPERATOR='BT'.

VAR_SIGN_I Row properties

'I' found values are added,

'E' found values are removed.

Variables for precalculated value sets are preassigned as follows:

Parameter Description

VAR_NAME_I Technical name of the variables

VAR_VALUE_EXT_I Name of value set



Variables for Single Hierarchy Nodes or Variables for Several Hierarchy Nodes

Parameter Description

VAR_NAME_I Technical name of the variables



VAR_VALUE_EXT_I Node key in external display

Key for hierarchy node

VAR_NODE_IOBJNM_I Node characteristic name

With characteristic nodes and text nodes, you

have to specify the characteristic name

(0HIER_NODE).



Hierarchy, Formula, and Text Variables

Parameter Description

VAR_NAME_I Technical name of the variables



VAR_VALUE_EXT_I Hierarchy name, formula value, text



Examples

Predefining the parameter variable

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&var_nam

e_1=myParameterVariable&var_value_ext_1=4711

Predefining the parameter variable (4711) and select options variable (1, 7 to 12)





Web API Reference BW 3.5 155

SAP Online Help 25.02.2005





http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&var_nam

e_1=myParameterVariable&var_value_ext_1=4711&var_name_2=mySelOptVar&var_operat

or_2=EQ&var_sign_2=I&var_value_low_ext_2=1&var_name_3=mySelOptVar&var_operator

_3=BT&var_sign_3=I&var_value_low_ext_3=7&var_value_high_ext_3=12

Predefining hierarchy nodes variable (DE, 0HIER NODE)

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&var_nam

e_1=myHryNodeVariable&var_value_ext_1=DE&var_node_iobjnm_1=0HIER_NODE









Web API Reference BW 3.5 156

SAP Online Help 25.02.2005









Web API Reference BW 3.5 157

SAP Online Help 25.02.2005









Switching Web Templates

Use

As well as being able to call up Web templates [Seite 151] you are also able to switch between

different Web templates. When you switch to a different Web template, all the Web items and

data providers in the Web template in which you started, are retained. The Web items and data

providers that appear in the new Web template, and for which there is no object with the same

name, are generated from scratch. The system identifies the objects by their logical name.

The main difference between calling a Web template and switching to a different Web template is

that when you switch to a different Web template, the objects from the initial Web template are

transferred without being modified into the new Web report. This means, for example, that the

query view of the navigation status stays the same.

This function is particularly useful for switching from overview pages (often containing only

diagrams) to detailed pages (with tables and navigation blocks).



Features

CMD CHANGE_TEMPLATE

Parameter Description

TEMPLATE_ID Name of the Web template

Name under which you stored the Web

template in the Web Application Designer.







The parameters PAGEID and WBID that are used in BW 2.x are supported for the

Web templates created under BW 2.x. However, we recommend that you no longer

use these.

If you still want to set paratmeters for the new Web template, you can use command sequences

[Seite 232]. With the parameter APPLY_CMD_ON_TARGET = X, the command sequence can

then be used from the newly created page.

















Web API Reference BW 3.5 158

SAP Online Help 25.02.2005









Personalizing Web Templates

Use

With this command you can personalize a Web template for the user who is logged on. The next

time this user calls up the Web template with parameter USE_PERSONALIZATION=X, the

navigational state in the personalization template is displayed. This mechanism is especially

useful for portal pages.

CMD PERSONALIZE



Example









Removing Personalization

You can use this command to reset the Web template personalization for the current user.

CMD RESET_PERS



Example











Web API Reference BW 3.5 159

SAP Online Help 25.02.2005









Creating Bookmarks

Use

Command that allows you to mark a Web application as a bookmark. The result of this instruction

is to display a Web application with a bookmark-enabled URL. You can call this URL at any time,

which results in a Web application that displays the same navigation status (including whether the

hierarchy is expanded) as the Web application from which the instruction was called.

CMD BOOKMARK

Parameter Description

BOOKMARK_DATA Store historical data about the bookmark

(optional) The Web application with the historical data is

displayed when you call up the bookmark.

'X' = Yes, ' ' = No

Bookmarks are normally used without data.



Example











Web API Reference BW 3.5 160

SAP Online Help 25.02.2005









Changing Symbol Directory

Use

You use this command if you are working on a special Web application, and you want to use

symbols other than the symbols that are generally used, for example, for expanding and

collapsing hierarchies. The command assigns a different symbol directory to the Web template.







The names of the symbols remain unchanged. In the new directory the symbols

have to appear with their original names, but you are able to alter them in other

ways.



Features

CMD SET_URLS

Parameter Description

ICON_PREFIX Relative path to a symbol directory in the

MIME repository or on the ITS



Example

Displaying a Web template using symbols from a different directory

http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&cmd_1=

cmd%3DSET_URLS%26ICON_PREFIX%3DmyPath







A command sequence is used in this example.

See also:

Command Sequences [Seite 232]









Web API Reference BW 3.5 161

SAP Online Help 25.02.2005









Releasing Web Templates

Use

You use this command to remove the current Web template and all its objects from the memory

of the application server. The Web template can no longer be accessed once you have carried

out this command. If you want to access the Web template again, you have to use the Call up

Web Template [Seite 151] command to recreate it.







You can call up other Web templates by using commands in a command sequence.



Features

CMD PAGE_FREE

















Web API Reference BW 3.5 162

SAP Online Help 25.02.2005









Ending the Session

Use

This command closes the current session on the application server.



Features

CMD LOG_OFF

~command (optional) Delete ITS logon

‘logoff’ = log off from ITS If you transfer this parameter, you need to log

on to the system again with your user and

password to reconnect.

This parameter is only required when

accessing via ITS.



















Web API Reference BW 3.5 163

SAP Online Help 25.02.2005









Variables

Use

With the commands for variables you can call up the variable screen again or change the variable

values.

For more information, see:

Calling the Variable Screen [Seite 165]

Changing Variable Values [Seite 166]

Default Variables for Web Applications [Seite 154]









Web API Reference BW 3.5 164

SAP Online Help 25.02.2005









Calling up the Variables Screen

Use

This command allows you to call up the variables screen again for the current page. In the

variables screen, you are able to change the values of the variables that have been used so far.

You can also transfer new values over, as described in Default Variables for Web Applications

[Seite 154]. Along with the values already set, these new values are used as the default values in

the variables screen.

If the variables screen appears when you call up a Web application, you have to adjust the Web

template call (see Calling Web Templates [Seite 151]→ Standard Call).







You are not able to add filter parameters to the Call Variables Screen command.



Features

CMD PROCESS_VARIABLES

SUBCMD VARIABLE_SCREEN

















Web API Reference BW 3.5 165

SAP Online Help 25.02.2005









Changing the Values of Variables

Use

You can use this command to change the values of variables on the current page.

Enter the variable values as described in Default Variables for Web Applications [Seite 154].

Variables that you do not specify maintain their previous value.







With the Variable Value Change command, you cannot append filter parameters.



Features

CMD PROCESS_VARIABLES

SUBCMD VAR_SUBMIT



Example











Web API Reference BW 3.5 166

SAP Online Help 25.02.2005









Calling the Broadcaster

Use

You can use this command to call the BEx Broadcaster. If nothing else is defined, the standard

Web template for broadcasting is called (0BROADCASTING_TEMPLATE). This is set in the

Customizing of SAP BW.







You can specify your own standard Web template for broadcasting in Customizing

under the following path: SAP Customizing Implementation Guide→ SAP

NetWeaver → SAP Business Information Warehouse → Reporting-Relevant

Settings → BEx Web → Determine Settings for Web Templates



Features

CMD START_BROADCASTER

Parameter Description

SOURCE_OBJECT_TYPE (optional) Type of reporting object

This parameter establishes the type of

reporting object with which the broadcaster is

started.

The following values are possible:

HT: Web template

QU: Query

WB: Workbook

DP: Data provider

SOURCE_TEMPLATE (optional) Technical name of the Web template with

which the Broadcaster should be started.



SOURCE_WORKBOOK (optional) Technical name of the workbook with which the

Broadcaster should be started.

SOURCE_QUERY (optional) Technical name of the query with which the

Broadcaster should be started.

SOURCE_DATA_PROVIDER (optional) Logical name of the data provider with which

the Broadcaster should be started.

START_WIZARD (optional) Using this parameter, you determine whether

the Broadcaster should be started as a wizard.

X = Yes, ' ' = No

The wizard mode is only possible when the

source object is known.









Web API Reference BW 3.5 167

SAP Online Help 25.02.2005





DISTRIBUTION_TYPE (optional) Presetting of distribution type.

In order to be able to work with this parameter,

you must start the Broadcaster as a wizard

(see the parameter START_WIZARD).

The following values are possible:

KM_EXPORT: Distribute to Enterprise Portal

MAIL: Distribute by e-mail







• If the SOURCE_OBJECT_TYPE parameter is not specified, however one of

the SOURCE_TEMPLATE, SOURCE_WORKBOOK, SOURCE_QUERY or

SOURCE_DATA_PROVIDER parameters is, the type of the reporting object

is determined automatically. If the SOURCE_OBJECT_TYPE parameter is

specified, it has to match the corresponding reporting object.

• Only one of the SOURCE_TEMPLATE, SOURCE_WORKBOOK,

SOURCE_QUERY or SOURCE_DATA_PROVIDER parameters may be

used.

An additional command LAUNCH_BROADCASTER exists for calling the BEx Broadcaster

from a running Web application:

CMD LAUNCH_BROADCASTER

In contrast to the START_BROADCASTER

command, the running Web application is

automatically distributed when the BEx

Broadcaster is called and the current

navigation state and stylesheet are transferred.

Parameter Description

START_WIZARD (optional) Using this parameter, you determine whether

the Broadcaster should be started as a wizard.

‘X’ = Yes default setting

‘ ’ = No

DISTRIBUTION_TYPE (optional) Presetting of distribution type.

In order to be able to work with this parameter,

you must start the Broadcaster as a wizard

(see the parameter START_WIZARD).

The following values are possible:

KM_EXPORT: Distribute to Enterprise Portal

MAIL: Distribute by e-mail









Example

Calling the Broadcaster for the DP1 data provider in wizard mode, and for distribution by

E-Mail









Web API Reference BW 3.5 168

SAP Online Help 25.02.2005















Web API Reference BW 3.5 169

SAP Online Help 25.02.2005









Calling the Open Dialog

Use

You can use this command to call an open dialog for queries or query views. You can then

determine follow-up actions.



Prerequisites

In order to use this command you have to register the help service to a Web item. The

following additional attributes have to be added to a Web item in the HTML view in the Web

Application Designer:

Attribute Description

HELP_SERVICE Name of the help service:

HW_OPEN_DIALOG

HELP_SERVICE_CLASS Technical name of the help service class:

CL_RSR_WWW_HWIND_OPEN_DIALOG



Features

Command structure



CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

HW_OPEN_DIALOG

ITEM Logical name of the Web item with which you

have registered the help service.

SUBCMD Subcommand:

SELECTION

OBJECT_TYPE Type of reporting object:

QU: query; VW: query view

SUBMIT_PARAMETER Command that is to be executed after

successful object selection. Parameters

DATA_PROVIDER_ID or QUERY and

INFOCUBE are added to this command.







Example

Call open dialog for queries and reinitialize DATAPROVIDER_1 with the selected query









Web API Reference BW 3.5 170

SAP Online Help 25.02.2005









Web API Reference BW 3.5 171

SAP Online Help 25.02.2005









Data Provider - Commands

Definition

Commands

It is possible to apply commands, such as filters, to data providers. In most cases, you must

specify parameters for these commands. Some commands allow you to specify a list of

parameter values. The parameter name is given an index “_1”, “_2”, ... This is shown in the

following with “Parametername_N”.

There is at least one example given for every command. This is displayed in the same syntax as

described under Command URLs [Seite 145].

All commands have the following parameters in common:

Parameter Description

CMD Name of the command

Most commands are triggered by this

parameter. As well as this type of command,

there are also generic commands with

parameters that you are able to assign to other

commands. Generic commands are always

applied after the named command.

DATA_PROVIDER Name of the data provider

You are able to apply a command to several

DATA_PROVIDER_N

data providers. You either specify a particular

data provider, or display a list of possible data

providers, or restrict the number of data

providers by using wildcards (MULTI=‘X’). The

command is applied to all these data providers,

as long as they support this action.







You must specify the data

provider(s).

MULTI Using the DATA_PROVIDER as a reference

If MULTI is set to ‘X’, the command is applied

to all the data providers that have

‘DATA_PROVIDER’ in their name. ‘*’ means all

data providers, for example. The parameter

has to be set to ‘X’ if several data providers are

specified in the form DATA_PROVIDER_N.







This parameter is optional.

‘X’ = Yes, ‘ ’ = No







• For some data provider commands you have to specify the 25-character

UIDs for structures or their elements. This can be specified as follows:





Web API Reference BW 3.5 172

SAP Online Help 25.02.2005





In the Web application designer, drag the Web item Dropdown Box into your

Web template. Assign the desired data provider to the Web item. Under the

attribute Characteristic/Structure for the Web item Dropdown Box, select the

respective structure. Here you can see the UID. If you execute the Web template,

you can copy this UID from the HTML code. To do this, find the input tag with the

name FILTER_IOBJNM_1; the UID is in the attribute ‘value’. For the individual

structure items, you find the UID in the ‘value’ attribute for the respective option

tags.

• Since the commands for variables technically belong to the Web templates

and not to the data providers, you can also find the commands for variables

under the commands for Web templates. See Variables [Seite 164].



Example

Applying the command to the data provider ‘DP 1’







Applying the command to the data providers ’DP 1’ and ’DP 2’







Applying the command to all the data providers that contain ‘USA’ in their name











Web API Reference BW 3.5 173

SAP Online Help 25.02.2005









General Data Provider Commands

Use

General data provider commands include:

Properties of Data Providers [Seite 175]

Resetting and Reinitializing Data Providers [Seite 177]

Back and Back to Start [Seite 179]

Jumping using the Report-Report Interface [Seite 180]

Exporting Data [Seite 181]

Saving Query Views [Seite 182]

Displaying a Copy of the Data Provider on a New Page [Seite 183]









Web API Reference BW 3.5 174

SAP Online Help 25.02.2005









Properties of Data Providers

Definition

Command for a data provider.



Use

A data provider has a great variety of properties. You can change the properties by specifying the

parameter and its value. Therefore, you do not have to specify parameter 'CMD'.

The data provider properties are evaluated after the command processing has ended.



Structure

Parameter Description

ZERO_SUPPRESSION Hide zeros which occur in the inner or outer

rows and columns of a cross-classified table.

' ' = do not hide any zeros

A cross-classified table contains characteristics

'X' = hide overall results columns and rows in both the rows and columns.

which contain zero values Example of a cross-classified table:

'1' = only hide columns which have zeros in You create a query in which you analyze the

the cross-classified table net revenue of your products in relation to your

customers. The Product characteristic is

'2' = only hide overall results columns which located in the rows and the Customer

contain zeros characteristic and the key figure Net Revenue

'3' = only hide rows which have zeros in the 2004 are located in the columns.

cross-classified table See also the table below on Zero

'4' = only hide rows and columns which have Suppression for Structures.

zeros in the cross-classified table For more information, see Zero Row and Zero

Column Suppression [Extern].

'6' = only hide overall results rows which

contain zeros





ZERO_PRESENTATION Zero value display



'0' = display

'1' = display without currency/unit

'2' = do not display

'3' = display zero text

ZERO_TEXT Text for zero value display '3'



SHOW_SCALING_FACTORS Display scaling factors and exclude currency /

unit

'X' = Yes, ' ' = No

SIGN_PRESENTATION +/- sign display



'1' = sign before number

'2' = sign after number

'3' = concatenated display







Web API Reference BW 3.5 175

SAP Online Help 25.02.2005





FULL_CONCAT_KEYS Display of characteristic and attribute keys fully

concatenated

'X' = Yes, ' ' = No

SHOW_DOCUMENTS Show document links for each characteristic

variant

'X' = Yes, ' ' = No

SHOW_DR_LINKS Show Drag&Relate master data



'X' = Yes, ' ' = No

UHRY_ACTIVE_ROWS Display rows as hierarchy



'X' = Yes, ' ' = No

UHRY_CAPTION_ROWS Labeling for rows for hierarchical display



UHRY_LEVEL_ROWS Number of objects (characteristics, hierarchies,

structures) on the rows that are initially visible

as hierarchy when display is switched on.

UHRY_ACTIVE_COLUMNS Display columns as hierarchy



'X' = Yes, ' ' = No

UHRY_CAPTION_COLUMNS Labeling for columns for hierarchical display



UHRY_LEVEL_COLUMNS Number of objects (characteristics, hierarchies,

structures) on the columns that are initially

visible as hierarchy when display is switched

on.







Zero Suppression for Structures



Parameter Description

SUPPRESSION The structure is included In the zero

suppression.

'X' = Yes, ' ' = No

STRUCTURE_NAME Technical name of structure (UID)

In order to use zero suppression for structures, both parameters have to be specified.













Integration

The data provider properties can be added to every other command.









Web API Reference BW 3.5 176

SAP Online Help 25.02.2005









Resetting and Reinitializing Data Providers

Use

You use this command to reinitialize existing data providers [Seite 172] of the query or query view

type. The data provider is recreated according to the parameters. The corresponding Web items

display the data for the new data providers [Seite 142].







If you are using a Web item that requires, for example, a specific characteristic

(such as filter dropdown box [Seite 24] ), you need to make sure that the new data

provider also supports this characteristic.



Features

CMD RESET_DATA_PROVIDER

Parameter Description

INFOCUBE Technical name of the InfoCube

QUERY Technical name of the query

VARIANT (optional) Variants, if you are required to enter a

variable

RRI (optional) The report-report interface is used to

convert the data provider. Jump targets by

‘X’ = Yes, ‘ ’ = No

report-report interface do not have to be

maintained for this purpose.

or

CMD RESET_DATA_PROVIDER

Parameter Description

DATA_PROVIDER_ID Technical name of the view

VARIANT (optional) Variants, if you are required to enter a

variable

RRI (optional) The report-report interface is used to

convert the data provider. Jump targets by

‘X’ = Yes, ‘ ’ = No

report-report interface do not have to be

maintained for this purpose.









Converting the ‘View1’ data provider to another query:



Converting the ‘View1’ data provider to a saved view:









Web API Reference BW 3.5 177

SAP Online Help 25.02.2005





Converting the ‘View 1’ data provider to a saved view with transfer of filters

and variable values:











Web API Reference BW 3.5 178

SAP Online Help 25.02.2005









Back and Back to Start

Definition

Back and Back to Start is a command for a data provider in the Web template.



Use

With the help of this command, you can perform the following functions for a data provider:

• undo the last action

• undo all actions







In contrast to using the Back function in the Web browser, these commands only

affect the specified data provider and not the entire page.



Structure

CMD Description

BACK Undoes the last action executed for this data

provider.

RESET Goes back to the navigation status that was

visible when the Web application was called







The last action for data provider ‘View 1’ is to be undone



All query views are to be reset to the status that was set when they were

called up











Web API Reference BW 3.5 179

SAP Online Help 25.02.2005









Jumping Using Report-Report Interface

Definition

Command for a data provider.



Use

You can use this command to execute a report-to-report jump. You can jump from one Web

template to another Web template, to another query, or to a transaction in an R/3 system and

much more.



Structure

CMD RRI

Parameter Description

RRI_RECEIVER RRI Recipient ID

You can determine this ID in the Maintain

Sender Receiver Assignment screen in the BW

system (choose SAP Menu → Business

Explorer → Query → Jump Targets in the SAP

Easy Access Menu of the BW system).

DATA_ROW Data row

Context from which jump is made

(optional)

DATA_COLUMN Data column

Context from which jump is made

(optional)

IOBJNM A characteristic

Context from which jump is made

(optional)



Example

Jump to QURY0001



See also:

Report-Report Interface [Extern]

Editing Sender/Receiver Assignments to the R/RI in BW [Extern]









Web API Reference BW 3.5 180

SAP Online Help 25.02.2005









Exporting Data

Definition

Command for a data provider.



Use

You can export the data of a data provider to a CSV or MS Excel 2000 file or an XML file with this

instruction.



Structure

CMD EXPORT

Parameter Description

FORMAT Format

'CSV' = CSV file

'XLS' = MS Excel 2000 file

'XML' = XML file

REDIRECT_URL (optional) This parameter is optional for use fort he

XML format:

The generated XML can be automatically

forwarded to antoher service as a form field if

this address is specified as the

REDIRECT_URL when the export command“is

called. This enhancement is especially useful

for integration scenarios in which post-

processing of query data should occur in

another service.







Notes about the XML format

The XML scheme is equivalent to data description in the Table Interface [Seite 281]

of the Web API reference. You can find more information under Web Service for

Access to Query Data [Extern].



Example

Exporting data to MS Excel 2000











Web API Reference BW 3.5 181

SAP Online Help 25.02.2005









Saving the Query View

Definition

Command for a data provider.



Use

You use this command to save a data provider as a reusable object (query view).



Structure

CMD SAVE_VIEW

Parameter Description

TECH_NAME Technical name of the view

DESCRIPTION Description

OVERWRITE Overwrite existing view

'X' = Yes, ' ' = No









Web API Reference BW 3.5 182

SAP Online Help 25.02.2005









Displaying a Copy of the Data Provider on a New

Page

Use

This command enables you to display a copy of the current navigation status of a data provider

[Seite 172] on a new page. This command is suitable for detailed windows, in which you navigate

independently of the overview window (see example).



Features

CMD RELEASE_DATA_PROVIDER

Parameter Description

TEMPLATE_ID (optional) Name of the Web template

Name under which you stored the Web

template in the Web Application Designer. If

the parameter is not specified, the standard

Web template is used.

Any other parameters for parameterizing See Object Tag for Properties of Web

your Web template Templates [Seite 125].







Displaying a copy of the status of the “View 1” data provider on a new page:



Displaying a copy of the status of the “View 1”data provider in a new window

with template 1:

JavaScript call: SAPBWOpenWindow("","Details",600,400);

If you still want to set parameters for the new page, you can use command sequences [Seite

232]. With the parameter APPLY_CMD_ON TARGET = X, the command sequence can then be

used from the newly created page.









Web API Reference BW 3.5 183

SAP Online Help 25.02.2005









Calling the Ad-hoc Query Designer

Use

With this command, you can call the Ad-hoc Query Designer for a data provider in its own window

(Web Template). If the data provider has already been installed, the query it is based on is

transferred to the Ad-hoc Query Designer. Otherwise the Ad-hoc Query Designer is started

initially. When closing the Ad-hoc Query Designer, the data provider with the associated query is

reinitialized.







To execute a command, you need a Web template as a target template that

contains the Web item Ad-hoc Query Designer. An example of the construction of a

target template is Web template 0ADHOC_QUERYDESIGN.



Features

CMD LAUNCH_QUERY_DESIGNER

Parameter Description

TEMPLATE_ID Technical name of the Web template that

contains the Web item Ad-hoc Query Designer.



Example

Calling the Ad-hoc Query Designer for the Data Provider 'DP1'











Web API Reference BW 3.5 184

SAP Online Help 25.02.2005









Filter

Definition

Filter is a command for a data provider in the Web template.



Use

Filter values can be set for characteristics and structures for a data provider. When calling the

command you can set several filters for the same characteristic/structure, or the same filter for

several different characteristics/structures. Filter is a generic command, which means you do not

have to set the ‘CMD’ parameter.







The filter parameters can be added to any command, with the exception of

calling the variable screen [Seite 165] and changing the values of variables [Seite

166].

The actual filtering process is carried out at the end of the operation.







In the internal display (see table below) you can easily determine the name of the

characteristic and the filter value using the URL parameter

&snippet_operations=%20 (see also Object Tag for the Properties of Web

Templates [Seite 125]). Call the Web application with this URL parameter. If you

filter using the context menu, the parameters FILTER_IOBJNM and

FILTER_VALUE are automatically added to the URL in the Web browser. You can

then use the desired values with Command URLs [Seite 145] in hyperlinks.



Structure

Parameter Description

FILTER_IOBJNM Name of the characteristic / structure by

which the system is to filter

FILTER_IOBJNM_N (optional)

Specify the technical name of the characteristic

(for example, 0COUNTRY) or the structure (25

characters)

FILTER_COLLAPSE (optional) Removing filter characteristics from the

drilldown

The characteristics that are specified under

FILTER_IOBJNM are taken from the axes after

the filter has been applied. If you do not specify

‘X’ = Yes, ‘ ’ = No the parameters, the system assumes you want

to use the value ‘X’ = Yes.









Web API Reference BW 3.5 185

SAP Online Help 25.02.2005





FILTER _SIGN_N (optional) Row properties

'I' found values are added,

'E' found values are removed.







If the parameter is not specified,

then the system assumes you

want to use the value 'I'.







If FILTER_IOBJNM_N is not specified for index n, the value from FILTER_IOBJNM

is used, if available.

For filtering individual values, the following parameters are also specified:

Parameter Description

FILTER_VALUE Filter Value

Value, by which the system is to filter.

FILTER_VALUE_N

FILTER_VALUE_EXT

FILTER_VALUE_EXT_N If the variant with ending 'EXT' is

selected, the fully compounded

value has to be entered in the

external format, for example,

24.12.2000.

If the ending 'EXT' is not used,

the fully compounded value has

to be entered in the internal

format, for example, 20001224

for 24.12.2000.

FILTER_VALUE_TYPE (optional) Type of value specified under

FILTER_VALUE

FILTER_VALUE_TYPE_N (optional)

‘VALUE’ : Characteristic value key

'VARIABLE_EXIT' : Exit variable name. The

filter is set using the values returned by the

variable exit. Parameter, interval, and selection

option variables are allowed for customer and

SAP exit variables, as well as for default

values.

FILTER_OPERATOR (optional) An operator

'EQ' = Individual value

FILTER_OPERATOR_N (optional)

'LT' = Less than

'LE' = Less than or equal to

'GT' = Greater than

'GE' = Greater than or equal to







If no operator is specified, then

the system assumes you want to

use the value 'EQ'.





Web API Reference BW 3.5 186

SAP Online Help 25.02.2005





The following parameters are also accepted for filtering intervals:

Parameter Description

FILTER_VALUE_LOW Filter value – lower limit (not compounded)



FILTER_VALUE_LOW_N

FILTER_VALUE_LOW_EXT

FILTER_VALUE_LOW_EXT_N





FILTER_VALUE_HIGH Filter value – upper limit (not compounded)



FILTER_VALUE_HIGH_N

FILTER_VALUE_HIGH_EXT

FILTER_VALUE_HIGH_EXT_N





The following parameters are also accepted for filtering hierarchy nodes:

parameter Description

FILTER_VALUE Hierarchy node name



FILTER_VALUE_N





FILTER_NODE_IOBJNM (optional) Node characteristic name

This parameter must be specified if the system

FILTER_NODE_IOBJNM_N (optional)

filters by hierarchy nodes. The characteristic

name has to be specified for characteristic

nodes and for text nodes (0HIER_NODE).



Examples

Filter Data Provider ’View1’ by Country: Germany



Filter Data Provider ’View1’ by First 3 Months



Filter All Data Providers by Costs and Countries: Germany and USA



Filter All Data Providers by Current Month











Web API Reference BW 3.5 187

SAP Online Help 25.02.2005









Removing Filters

Definition

Remove Filter is a command for a data provider in the Web template.



Use

You use this command to remove the filter from a characteristic or a structure for one or more

data providers.



Structure

CMD Remove_Filter

Parameter Description

IOBJNM Name of the characteristic/structure

IOBJNM_N Specify here the technical name of the

characteristic (0COUNTRY, for example) or

structure (25 characters) from which you want

to delete the filter. It is also possible to specify

a list of characteristics/structures.

ALL Remove all filters

'X' = Yes, ' ' = No Alternatively to listing characteristics and

structures, you can remove all filters.



Examples

Remove filter by country for data provider ‘View1’



Remove filter for country from all data providers and filter according to calendar year

2000:



Remove all filters by country from data providers and filter according to calendar year

2000











Web API Reference BW 3.5 188

SAP Online Help 25.02.2005









Drilldown

Definition

Drilldown is a command for a data provider in the Web template.



Use

Use this command to change the position of a characteristic or a structure for one or more data

providers.



Structure

CMD Expand

Parameter Description

IOBJNM Name of the characteristic/structure

Specify the technical name of the characteristic

here (for example, 0COUNTRY) or the

structure (25-place character sequence that

you want to bring into the drilldown.

AXIS (optional) Axis on which the characteristic/structure is

to be based

‘X’ = columns

If the PARENT_IOBJNM parameter is not

‘Y’ = rows

specified, the characteristic/structure is brought

’ ’ = Free characteristics (=remove drilldown) onto the axis behind the other

characteristics/structures. If you do not specify

the parameter AXIS, the value ‘Y’ is used for

characteristics, and ‘X’ for structures.

PARENT_IOBJNM (optional) Name of a characteristic/structure on the

axis

Specify this parameter to move a

characteristic/structure behind another one on

an axis.



Examples

Drilldown data provider, ‘View1’ by country



Drilldown data provider view1 according to country and filter according to calendar year

2000



Drag periods 1, 2, and 3 (2000) from data provider ‘View1’ to the columns











Web API Reference BW 3.5 189

SAP Online Help 25.02.2005









Remove Drilldown

Definition

Remove Drilldown is a command for a data provider in the Web template.



Use

Use this command to remove a characteristic or a structure from the drilldown for one or more

data providers. This command is the same as the command Drilldown [Seite 189] if the

parameter AXIS=’ ‘ is set.



Structure

CMD Collapse

Parameter Description

IOBJNM Name of the characteristic/structure

Specify the technical name of the characteristic

here (for example, 0COUNTRY) or the

structure (25-place character sequence) that

you want to remove from the drilldown.



Example

Remove drilldown by country for data provider ‘View1’











Web API Reference BW 3.5 190

SAP Online Help 25.02.2005









Switching Characteristics/Structures

Definition

Swap characteristics/structures is a command for a DataProvider in the Web template.



Use

Calling up this command allows you to switch characteristics/structures for one or more

DataProviders.



Structure

CMD Exchange

Parameter Description

IOBJNM_1 Name of characteristic/structure

Specify the technical name of the 1st

characteristic (0COUNTRY, for example) or the

1st structure (25 characters) here.

IOBJNM_2 Name of characteristic/structure

Specify the technical name of the 2nd

characteristic (0COUNTRY, for example) or the

2nd structure (25 characters) here.



Example

Replace drilldown by country with drilldown by calendar year in DataProvider ‘View1’



or











Web API Reference BW 3.5 191

SAP Online Help 25.02.2005









Swap Axes

Definition

Swap Axes is a command for a DataProvider in the Web template.



Use

This command switches the roles of the axes (the list is reversed). All the characteristics and

structures in the rows are moved into the columns, and all the characteristics and structures in

the columns are moved into the rows.



Structure

CMD Switch_Axes







Swap axes for DataProvider ‘View1’











Web API Reference BW 3.5 192

SAP Online Help 25.02.2005









Setting the Navigational Status

Definition

Set Navigation Status is a command for a Data Provider in the Web Template.



Use

By calling up this command, you can restructure or redistribute characteristics and structures on

the axes.



Structure

CMD SET_NAV_STATE

Parameter Description

ALL Redistribute all characteristics and

structures

'X' = Yes, ' ' = No

If this parameter is set to ‘X’, then all

characteristics and structures are taken from

the axes and redistributed according to the

other parameters.

If the parameter is not set or is set to ‘ ‘, then

the listed characteristics are assigned

according to the parameters on the axes.

IOBJNM Name of the characteristic/structure

IOBJNM_N Specify here the technical name of the

characteristic (such as 0COUNTRY) / structure

(25 character string) that you want to place on

the axis.

AXIS Axis on which the characteristic/structure is

to be based

AXIS_N

The characteristic or structure is based on the

‘X’ = columns

axis. The parameter POSITION determines its

‘Y’ = rows position on the axis.

' ' = free characteristics

POSITION Position on an axis

POSITION_N By specifying the position, the characteristic or

structure is set for this position on the axis.







If the position is not specified or

set to ‘0’, the

characteristic/structure is placed

at the end of the drilldown

sequence.









Web API Reference BW 3.5 193

SAP Online Help 25.02.2005









Moving the key figure structure to the rows and removing the calendar year

and planned/actual structure from the columns



Make sure that the cost centers are in drilldown for all DataProviders and not

the materials











Web API Reference BW 3.5 194

SAP Online Help 25.02.2005









Sorting

Definition

Sort is a command for a DataProvider in the Web template.



Use

You use this command to sort according to characteristics or values, depending on

parameterization.



Structure

CMD Sort

Parameter Description

SORT_TYPE Type of sort

'K' = Key Characteristics can be sorted by key, by name

or by hierarchy (if a display hierarchy is active

'T' = Text

for the characteristic). Or they can be sorted

'H' = Hierarchy according to a selection (providing that there is

a restriction on several single values in the

'S' = Selection

query definition or dynamically on the

'W' = Value DataProvider. You can also sort according to

values.

SORT_DIRECTION Required sort direction

'A' = Ascending

'D' = Descending

The sort direction for sort_type=H

is always 'A'.

IOBJNM Characteristic that you want to sort







Only for sorting characteristics. This parameter is omitted when

you are sorting according to

values.

STRUCTURE_MEMBER_1 Structural component of the first structure

If the system sorts by a value, the value cell

must be set precisely. To do this, you have to

Only for sorting according to specify the components of the structure (25-

value. character string) for all the occurring structures

(maximum 2).

STRUCTURE_MEMBER_2 Component of the second structure

If 2 structures are defined in the query, the

structural component of the second structure

Only for sorting according to must also be specified.

value.









Web API Reference BW 3.5 195

SAP Online Help 25.02.2005









Sort customers for DataProvider ‘View1’ by Text in ascending order



Sorting List According to Actual Sales, in Descending Order











Web API Reference BW 3.5 196

SAP Online Help 25.02.2005









Setting Properties of Display Attributes

Definition

Command for a data provider.



Use

You can change the properties of display attributes with this command.



Structure

CMD SET_ATTRIBUTE

Parameter Description

IOBJNM Name of characteristic

Specify the technical name of the characteristic

(0COUNTRY, for example) to which the

attribute belongs here.

ATTRINM Name of the attribute

Define the technical name of the display

attribute here.

ACTIVE Display attribute

'X' = Yes, ' ' = No

POSITION Position of the attribute within the attribute

PRESENTATION Layout

'KEY' = key

'TEXT' = shortest text

'TEXT_MD' = middle-length text

'TEXT_LG' = long text

'KEY_TEXT' = key and text

'TEXT_KEY' = text and key









Web API Reference BW 3.5 197

SAP Online Help 25.02.2005









Results Row Position

Definition

Command for a data provider.



Use

You can define the position of the results row with this command. Hierarchy nodes are also based

on this setting if there are other objects with competing settings on the hierarchy axis.



Structure

Results Position



CMD SET_RESULT_POSITION

Parameter Description

AXIS Axis on which the result position should be

set

‘X’ = columns

‘Y’ = rows

RESULT_POSITION Results Position

'TOP' = Top/left

'BOTTOM' = Bottom/right



Hierarchy Node Position



CMD SET_RESULT_POSITION

Parameter Description

IOBJNM Name of characteristic

Enter the technical name of the characteristic

on which the hierarchy node position should be

defined here.

RESULT_POSITION Node position

'TOP' = Top (left) The information in brackets represent what

happens if the characteristic is on the columns.

'BOTTOM' = Bottom (right)









Web API Reference BW 3.5 198

SAP Online Help 25.02.2005









Suppressing Result Rows

Definition

Command for a data provider.



Use

You can suppress results row with this command.



Structure

CMD SET_SUPPRESSION

Parameter Description

IOBJNM Name of characteristic

Define the technical name of the characteristic

(e.g. 0COUNTRY) here.

RESULT_SUPPRESSION Suppression method

'NEVER' = No suppression

'CONDITIONAL' = Conditional suppression

'ALWAYS' = Always suppress









Web API Reference BW 3.5 199

SAP Online Help 25.02.2005









Setting the Display

Definition

Command for a data provider.



Use

You can change the display of characteristics, hierarchy node types and attributes with this

command.



Structure

CMD SET_PRESENTATION

Parameter Description

IOBJNM Name of characteristic

Define the technical name of the characteristic

(e.g. 0COUNTRY) here.

NODE_IOBJNM (Option 1) Node characteristic name

With characteristic nodes and text nodes, you

have to specify the characteristic name

(0HIER_NODE).

ATTRINM (Option 2) Name of the attribute

Define the technical name of the display

attribute here.

PRESENTATION Layout



'NONE' = No display (only for characteristics)

'KEY' = key

'TEXT' = shortest text

'TEXT_MD' = middle-length text

'TEXT_LG' = long text

'KEY_TEXT' = key and text

'TEXT_KEY' = text and key

'KEY_TEXT' = Key and medium text

'KEY_TEXT' = Key and long text









For data provider DATAPROVIDER_1, set the display of the InfoObject 0CUSTOMER to key

and text











Web API Reference BW 3.5 200

SAP Online Help 25.02.2005









Displaying Documents

Definition

Command for a data provider.



Use

You can call the document display for the selected context with this command.



Structure

You can access four different contexts:

CMD DOCUMENTS

Parameter Description

NAVIGATIONAL_STATE (Option 1) Documents for the current navigation status

'X' = Yes, ' ' = No

DATA_ROW (Option 2) Documents for a data cell: Y coordinate

Coordinates in the data block

DATA_COLUMN (Option 2) Documents for a data cell: X coordinate

Coordinates in the data block

IOBJNM (Option 3) Documents for a characteristic

IOBJNM (Option 4) Documents for a characteristic value:

characteristic

VALUE (Option 4) Documents for a characteristic value: key

Characteristic value in internal representation

(without conversion exit)









Web API Reference BW 3.5 201

SAP Online Help 25.02.2005









Dialogs

Use

With the commands for dialogs, you can call up the respective dialogs in order to make settings

there. You can find the descriptions for individual dialogs in Web applications under Analysis &

Reporting: BEx Web Applications [Extern].

For more information on the individual commands for dialogs, see

Calling the Query Properties Dialog Box [Seite 203]

Calling the Dialog Box for Defining Formulas [Seite 204]

Calling up Input Help [Seite 205]

Calling the Dialog Box for Properties of Characteristics [Seite 206]

Calling the Currency Translation Dialog Box [Seite 207]

Calling the Dialog Box for Defining Exceptions [Seite 208]

Calling the Dialog Box for Defining Conditions [Seite 209]

Calling the Dialog Box for Cell Properties [Seite 210]

Saving the Dialog Query View [Seite 211]

Under Creating Your Own Dialogs [Seite 213] you can find information on how you can

implement your own dialogs using an ABAP class.









Web API Reference BW 3.5 202

SAP Online Help 25.02.2005









Calling Dialog Query Properties

Definition

Command for a data provider.



Use

You can call the Query Properties dialog with this instruction.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

QUERY_PROPERTIES









Web API Reference BW 3.5 203

SAP Online Help 25.02.2005









Calling Up Dialog Box for Formula Definition

Definition

Command for a data provider.



Use

You can use this command to call up a dialog box for defining a new or an existing formula.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

DP_VIEW_SET_CALC_MEMBER

SUBCMD NEW

FORMULA_STRUCTURE Technical name of structure





CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

DP_VIEW_SET_CALC_MEMBER

SUBCMD CHANGE

FORMULA_ID Technical name of formula









Web API Reference BW 3.5 204

SAP Online Help 25.02.2005









Calling up Input Help

Definition

Calling Value Help is a command for a data provider in the Web template.



Use

With the help of this command, you can call up input help for a characteristic or a structure of a

data provider.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

DP_VIEW_FILTER

IOBJNM Name of the characteristic/structure

Specify the technical name of the characteristic

here (for example, 0COUNTRY) or the

structure (25-place character sequence) for

which you want to call value help.

BOOKED_VALUES Using posted values for value help

If this parameter is not specified or is not set to

‘X’, only values are displayed in the input help

that are also booked in the InfoProvider within

the scope of the currently valid filter conditions.

It can take a long time under certain

circumstances.

If the parameter is set to ' ', all dimension table

values are displayed. This can be quicker, but

can also display values that do not appear in

the InfoProvider under the current filter

conditions and when filtering can give the result

No corresponding data found.









Web API Reference BW 3.5 205

SAP Online Help 25.02.2005









Calling the Characteristic Properties Dialog

Definition

Command for a data provider.



Use

You can call the Characteristic Properties dialog with this command.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

CHAR_PROPERTIES

IOBJNM Name of characteristic

Define the technical name of the characteristic

(e.g. 0COUNTRY) here.









Web API Reference BW 3.5 206

SAP Online Help 25.02.2005









Calling a Dialog for Currency Translation

Definition

Command for a data provider.



Use

You can call the dialog for currency translation with this command.



Structure

CMD Process_help_window

HELP_SERVICE CURRENCY_CONVERSION









Web API Reference BW 3.5 207

SAP Online Help 25.02.2005









Calling a Dialog for Defining Exceptions

Definition

Command for a data provider.



Use

You can call the dialog for defining exceptions with this command.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

EXCEPTION_DEFINITION

EXCEPTION_ID Name of exception

Enter the technical name of the exception here

if you want to change an existing exception. If

no value is defined for this parameter, a new

exception will be created.









Web API Reference BW 3.5 208

SAP Online Help 25.02.2005









Calling a Dialog for Defining Conditions

Definition

Command for a data provider.



Use

You can call the dialog for defining conditions with this command.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

CONDITION_DEFINITION

CONDITION_ID Name of the condition

Enter the technical name of the condition here

if you want to change an existing condition. If

no value is defined for this parameter, a new

condition will be created.









Web API Reference BW 3.5 209

SAP Online Help 25.02.2005









Calling a Dialog for Cell Properties

Definition

Command for a data provider.



Use

You can call the dialog for cell properties with this command.



Structure

CMD Process_help_window

Parameter Description

HELP_SERVICE Name of the help service:

STRUC_MEMBER_PROPERTIES

STRUCTURE_MEMBER_1 Structural component of the first structure

Enter the value of the first structural

component here. The combination of structural

components defines the coordinates for a cell.

STRUCTURE_MEMBER_2 Structural component of the second

structure (if it exists)

Enter the value of the second structural

component here. The combination of structural

components defines the coordinates for a cell.









Web API Reference BW 3.5 210

SAP Online Help 25.02.2005









Save Query View Dialog Box

Use

With this command you call a dialog for saving a query view. You can specify a follow-up action

here if necessary. Also see Saving Query Views [Seite 182].



Prerequisites

In order to use this command you have to register the help service to a Web item. The following

additional attributes have to be added to a Web item that is assigned to the corresponding data

provider in the HTML view in the Web Application Designer:

Attribute Description

HELP_SERVICE Name of the help service

(SAVE_VIEW)

HELP_SERVICE_CLASS Technical name of the help service class

(CL_RSR_WWW_HWIND_SAVE_VIEW)







Features

Command structure



CMD Process_Help_Window

Parameter Description

HELP_SERVICE Name of the help service:

SAVE_VIEW

ITEM Logical name of the Web item with which you

have registered the help service.

LOCAL_VIEW A query view can be saved locally (that is,

without specifying a technical name). The

query view does not appear in the open dialog

in this case. When you save locally, only a

GUID (Global Unique Identifier) is generated.

'X' = Yes; ' ' = No (standard setting)

It is usually only useful to use this parameter if

you also specify the SUBMIT_TARGET

parameter.

SUBMIT_TARGET URL for the follow-up action. When you

execute the URL the parameters

DATA_PROVIDER_ID (technical name of the

query view) and DESCRIPTION (name of the

query views) are added to it.









Web API Reference BW 3.5 211

SAP Online Help 25.02.2005





Example

Call dialog for saving a query view that is connected to Web Item WEB_ITEM_1



Call help service for save view, where the view is saved as a local view (parameter

LOCAL_VIEW) and a new entry is added to item VIEWDDITEM in the template that is calling the

help service (parameter SUBMIT_TARGET).

Call help service for the Save Query View dialog, where the query view is saved as a local

query view (parameter LOCAL_VIEW) and a new entry is to be added to the Web item

VIEWDDITEM (query view – selection) in the Web template calling the help service

(parameter SUBMIT_TARGET)

SAPBWOpenURL('&SUBMIT_TARGET=' + escape(opener.SAP_BW_URL_Get() +

'&CMD=ADD&ITEM=VIEWDDITEM&ITEM_ID=MYITEM')









Web API Reference BW 3.5 212

SAP Online Help 25.02.2005









Creating Your Own Dialogs

Use

With your own dialogs, you can generate your own HTML pages and call them from Web

applications. To do this, you create your own ABAP class that inherits the associated properties

and parameters from the class CL_RSR_WWW_HELP_WINDOW and you redefine one or more

methods for this class. In your own ABAP class, you create the HTML code or create an URL for

redirecting.

The ABAP class enables access to the current navigational state of the Web application. Within

the ABAP class you can process commands and call any ABAP code (function modules and so

on). In this way it is possible to display data as checkboxes, to change it, and then to write it to

database tables using ABAP function modules.







Your own Business Server Page (BSP) applications provide an alternative to this

procedure. BSP applications, however, cannot access the current navigational

state of the Web application. For more information, see Business Server Pages

[Extern].

The use of your own dialogs allows redirects of URLs. URLs can be extended with additional

parameters that are not known when the Web application is first called. If the parameters are

known during the first call, they can be inserted into the HTML code as JavaScript variables using

the Web Design API for tables. Often, however, parameters are only required for specific, rare

user actions. In these cases, due to performance and network issues, it makes sense to

determine the parameters using your own dialog.

If standalone HTML pages or redirects are not necessary, and instead only parts of the Web

application need to be changed, it makes sense to use the Web Design API for Tables [Seite 277]

or JavaScript functions.



Prerequisites

You have created a Web application that contains at least one Web item. This Web item is

necessary to use the ABAP class in the Web template (see below).



Procedure

Creating an ABAP Class

...









1. From the SAP Easy Access screen, choose Tools → ABAP Workbench → Development →

Class Builder (transaction SE24). See also Class Builder [Extern].







You can also use the Object Navigator from the ABAP Workbench (transaction SE

80) to generate a class. See also Object Navigator [Extern].

2. To create a new class, under Object Type, enter a technical name for your class (for

example, ZCL_RSR_WWW_HELP_WINDOW) and choose (Create). The Create Class

YourClassName dialog box then appears.

3. Save your class. You get to the Object Catalog screen.









Web API Reference BW 3.5 213

SAP Online Help 25.02.2005





4. Depending on the system configuration in regard to changes and the transport of objects,

either choose a package or save your class as a local object. For more information, speak

to your system administrator. The Class Builder: Change Class YOURCLASSNAME

screen.

5. Choose Superclass on the Properties tab page. Under Inherits from, enter

CL_RSR_WWW_HELP_WINDOW as the superclass.

6. To see all of the inherited properties and methods of the class

CL_RSR_WWW_HELP_WINDOW in your ABAP class, choose (Save).

7. On the Methods tab page, choose the method PROCESS_CMD that you want to redefine

and choose (Redefine).

8. To change the implementation of the method, call up the method name by double clicking.



9. To get back to the original screen, choose (Back)

10. Save your changes.

11. To activate event linking, choose (Activate).



Using the ABAP Method PROCESS_CMD

• The ABAP method PROCESS_CMD is automatically called by the Web Application

Framework when you call your own dialog from a Web application. Using this method, the

commands received and their parameters can be processed.

• The commands and parameters from the URL are transferred to the method

PROCESS_CMD in the import parameter I_R_PARAMETER. With the I_R_PARAMTER-

>GET ABAP method, individual commands and parameters can be queried.

• Access to the information from the Web Application Framework is possible using the

attribute N_R_PAGE.







data: l_cmd type string.

l_cmd = i_r_parameter->get( i_id = cl_rsr_www_page=>c_parameter_subcmd ).

• For better structuring, it makes sense to distribute processing of individual commands to

separate ABAP methods. These methods generate the HTML.

• The result of the ABAP method PROCESS_CMD can be an HTML page or redirecting for a

URL. The HTML page is returned to the attribute N_SX_OUTPUT-STRING as a character

string. The return of the URL occurs in the attribute N_SX_OUTPUT-REDIRECT_URL.



Using an ABAP Class in a Web Template

12. To be able to use the ABAP class you created, it must be included in a Web template.

...









1. Open your Web template, which includes at least one Web item, in the BEx Web

Application Designer.

2. Use the HTML tab page to switch to the HTML view of the Web Application Designer.

3. Navigation to the object tag of the Web item and insert the following parameter lines into

the HTML, to make the ABAP class known as HELP_SERVICE within the Web template.











Web API Reference BW 3.5 214

SAP Online Help 25.02.2005





















The parameter HELP_SERVICE contains the name of your own dialog within the Web

template. The parameter HELP_SERVICE_CLASS includes the name of the ABAP class.

4. Insert a Command URL [Seite 145] as a hyperlink, context menu or form. Specification of

the parameter CMD; HELP_SERVICE, ITEM is mandatory. You can also attach your

ownoptional commands (for example, SUBCMD, and so on).







Example in HTML

">Open Dialog

Example in JavaScript

SAPBWOpenURL( SAP_BW_URL_Get()

+ "&CMD=PROCESS_HELP_WINDOW”

+ “&HELP_SERVICE=DIALOG_1”

+ “&ITEM=TABLE_1”

+ “&SUBCMD=COMMAND_2");

For more information on calling dialogs, see Saving Dialog Query Views [Seite 211].

5. Save the changes.

6. Execute the Web template in the browser.







Note that already existing Bookmarks [Seite 160] for a Web template into which you

have integrated your own dialog (HELP_SERVICE) in the meantime do not

recognize this dialog. In addition to the current navigational state (data provider),

bookmarks also save the current state of the Web item.



Debugging the ABAP Class

For more information on debugging ABAP classes in Web applications, see Creating and Using

ABAP Classes [Seite 278].



Result

You have created an ABAP class and have redefined one or more methods to extend a Web

application with your own HTML pages.









Web API Reference BW 3.5 215

SAP Online Help 25.02.2005









Exceptions and Conditions

Use

With the commands for exceptions and conditions, you can create new exceptions or conditions,

change existing exceptions or conditions, or set their status (inactive/active).

You can find additional information about the individual commands under

Commands for Exceptions [Seite 217]

Setting the Status of an Exception [Seite 220]

Commands for Conditions [Seite 221]

Setting the Status of a Condition [Seite 223]









Web API Reference BW 3.5 216

SAP Online Help 25.02.2005









Commands for Exceptions

Definition

Command for a data provider.



Use

'You can change existing (local) exceptions and define new (local) ones with this command.







Exceptions that were defined in the Query Designer cannot be changed.



Structure

CMD SET_EXCEPTION

Parameter Description

EXCEPTION_ID ID of the exception to be changed

If there is no exception with this ID, a new one

(optional)

is created. A new exception is also created if

this parameter is not filled. For how to

determine the Exception_ID, see the notes

below.

ACTIVE Exception active



'X' = Yes, ' ' = No

DESCRIPTION Description

This text is displayed in the list of exceptions.

IOBJNM_I Context in which a characteristic must be

The exception is only evaluated if the data cell

for the given characteristic is in the context

described by parameters OPERATOR and

VALUE.

STRUCTURE_MEMBER_1 Structural component of the first structure



Values: ‘UID’ or ‘ALL’ If the exception refers to one specific structural

component, you have to specify this by

entering the unique ID (UID). This is the 25

character string.



STRUCTURE_NAME_1 If the exception refers to all structural elements

and you have assigned the value ‘ALL’ to the

STRUCTURE_MEMBER parameter, you also

have to specify the parameter

STRUCTURE_NAME_1 by entering the

structure name (25 character string).

STRUCTURE_MEMBER_2 Component of the second structure

See the remarks on

STRUCTURE_NAME_2

STRUCTURE_MEMBER_1.









Web API Reference BW 3.5 217

SAP Online Help 25.02.2005





RELATIVE_VALUES (optional) Validity area for all characteristics not listed

If you assign the value ‘X’ to the parameter, the

values for all characteristics that are not listed

can be arbitrary. This is to be recommended

for relative values such as, for example,

percentage deviations.

If you assign the value ‘ ’ to the parameter, all

characteristics that are not listed have to be

aggregated. The exception is only valid fort he

aggregated values of the characteristics that

are not listed.

See Defining Exceptions [Extern].

OPERATOR_I Context in which a characteristic must be

Valid operators are:

'AL' = No restrictions

'AG' = Aggregated (no filtering)

'EQ' = A certain value

'NA' = Restricted to a value

'HL' = Hierarchy level

VALUE_I Context in which a characteristic must be

Key of the characteristic value if operator 'EQ'

and hierarchy level if operator 'HL'.

ALERT_LEVEL_J Alert Level

The alert level can have the values 1, 2 and 3

for good numbers, 4, 5 and 6 for critical

numbers and 7, 8, and 9 for bad numbers.

OPERATOR_J Operator for the data values

'EQ' = Equal to

'NE' = Not equal to

'BT' = Interval

'LE' : Less than or equal to

'LT' = Less than

'GE' : Greater than or equal to

'GT' = Greater than

VALUE_LOW_J Data cell value



VALUE_HIGH_J Data cell value to

This parameter is only needed for interval

operators.







To determine the Exception_ID, proceed as follows:

• Create a Web application with the List of Exceptions Web item.

• Call the Web application and deactivate the snippet operations

(SNIPPET_OPERATIONS=' ') in the Web application URL.









Web API Reference BW 3.5 218

SAP Online Help 25.02.2005





• Choose Activate or Deactivate in the context menu for the List of Exceptions

or choose (Activate/Deactivate).

You can now see the Exception_ID in the URL. Alternatively, you can also

see the Exception_ID in the source code for the Web application (View

Source).









Web API Reference BW 3.5 219

SAP Online Help 25.02.2005









Setting the Status of an Exception

Definition

Set Status of an Exception is a command for a DataProvider in the Web template.



Use

Calling up this command allows you to change the status for a DataProvider exception.



Structure

CMD Set_Exception_State

Parameter Description

EXCEPTION_ID Technical name of the exception

Give the technical name of the exception here

(25 character string).

ACTIVE (Option 1) Required exception status

‘X’ = activate, ‘ ’ = deactivate

TOGGLE_STATE (Option 2) Change the exception status

‘X’ = switch, ‘ ’ = do not switch If this parameter is set to ‘X’, the exception is

activated if it was previously not active and

deactivated if active.



Examples

Set exception “Problems in Sales” from DataProvider ‘Query View 1’ to active



Switch exception “Problems in Sales” from DataProvider ‘Query View1’











Web API Reference BW 3.5 220

SAP Online Help 25.02.2005









Commands for Conditions

Definition

Command for a data provider.



Use

'You can change existing (local) conditions and define new (local) ones with this command.







Conditions that were defined in the Query Designer cannot be changed.



Structure

CMD SET_CONDITION

Parameter Description

CONDITION_ID ID of the condition to be changed

If there is no condition with this ID, a new

(optional)

condition is created. A new condition is also

created if this parameter is not filled. For how

to determine the CONDITION_ID, see the

notes below.

ACTIVE Condition active



'X' = Yes, ' ' = No

DESCRIPTION Description

This text is displayed in the list of conditions.

IOBJNM_I List of characteristics

List of the characteristics for which the

condition should be applied in combination. If

no characteristic is specified, the condition is

applied to all characteristics.

STRUCTURE_MEMBER_1_I Structural component of the first structure

A condition always refers to exactly one value

cell. To do this, you have to specify the

components of the structure (25-character

string) for all the occurring structures

(maximum 2).

STRUCTURE_MEMBER_2_I Structural component of the second

structure (if it exists)









Web API Reference BW 3.5 221

SAP Online Help 25.02.2005





OPERATOR_I An operator

'EQ' = Equal to

'NE' = Not equal to

'BT' = Interval

'LE' : Less than or equal to

'LT' = Less than

'GE' : Greater than or equal to

'GT' = Greater than

'TC' = Top n

'TP' = Top percent

'TS' = Top sum

'BC' = Bottom n

'BP' = Bottom percent

'BS' = Bottom sum

VALUE_LOW_I Numerical value for operator



VALUE_HIGH_I Numerical value for operator

Only the interval operator needs this value.







To determine Condition_ID, proceed as follows:

• Create a Web application with the List of Conditions Web item.

• Call the Web application and deactivate the snippet operations

(SNIPPET_OPERATIONS=' ') in the Web application URL.

• Choose Activate or Deactivate in the context menu for the List of Conditions

or choose (Activate/Deactivate).

You can now see the Condition_ID in the URL. Alternatively, you can also

see the Condition_ID in the source code for the Web application (View

Source).











Web API Reference BW 3.5 222

SAP Online Help 25.02.2005









Setting the Status of a Condition

Definition

Set Status of a Condition is a command for a DataProvider in the Web template.



Use

Calling up this command allows you to change the status for a DataProvider condition.



Structure

CMD Set_Condition_State

Parameter Description

CONDITION_ID Technical name of the condition

Give the technical name of the condition here

(25 character string).

ACTIVE (Option 1) Required status for the condition

‘X’ = activate, ‘ ’ = deactivate

TOGGLE_STATE (Option 2) Change the status of the condition

‘X’ = switch, ‘ ’ = do not switch If this attribute is set to ‘X’, the condition is

activated, if it is not active already, and

deactivated, if it is active.



Examples

Set condition “Top 10 Customers” from the DataProvider ‘Query View1’ to Active



Switch condition “Top 10 Customers” from DataProvider ‘Query View1’











Web API Reference BW 3.5 223

SAP Online Help 25.02.2005









Commands for Currency Translation

Definition

Command for a data provider.



Use

You can define a new currency translation for the data provider with this command.



Structure

CMD CURRENCY_CONVERSION

Parameter Description

CUR_CONV_METHOD Currency translation type



CUR_CONV_TYPE Translation type

‘0’ = database currency

'1' = as in the query definition

'2' = to target currency

'3' = to target currency via query definition

currency

TARGET_CURRENCY Target currency

Only need be specified for CUR_CONV_TYPE

2 and 3









Web API Reference BW 3.5 224

SAP Online Help 25.02.2005









Commands for Values Cells

Definition

Command for a data provider.



Use

You can change the properties of value cells with this command.



Structure

CMD SET_VALUE_PROPERTIES

Parameter Description

STRUCTURE_MEMBER_1 Structural component of the first structure

The properties are defined for a value cell. To

do this, you have to specify the components of

the structure (25-character string) for all the

occurring structures (maximum 2).

STRUCTURE_MEMBER_2 Structural component of the second

structure (if it exists)

SCALING_FACTOR Scaling factors

0=No scaling, 1=Factor 10, 2=Factor 100, ...

DECIMAL_PLACES Number of displayed decimal places

EMPHASIS Display with highlighting

'X' = Yes, ' ' = No









Web API Reference BW 3.5 225

SAP Online Help 25.02.2005









List Calculations

Definition

List Calculations is a command for a data provider in the Web template.



Use

With this command you can change the settings for calculating lists for a value cell.



Structure

CMD SET_LIST_CALCULATION

Parameter Description

STRUCTURE_MEMBER_1 Structural component of the first structure

The value cell must be determined exactly for

calculating lists. To do this, you have to specify

the components of the structure (25-character

string) for all the occurring structures

(maximum 2).

STRUCTURE_MEMBER_2 Structural component of the second

structure (if it exists)

APPLY_TO_RESULTS (optional) Use calculation guidelines also for event

cells

'X' = Yes, ' ' = No

CUMULATION (optional) Cumulated output



'X' = Yes, ' ' = No

VALUE_CALCULATION (optional) Calculations

' ' = No list calculation

'R' = Normalizing for query result

'G’ = Normalizing for overall result

'C' = Normalizing for result

'S' = Ranking list

'O' = Ranking list (Olympic)









Web API Reference BW 3.5 226

SAP Online Help 25.02.2005





RESULT_CALCULATION (optional) Calculations for result cells

'00' = No list calculation

'01' = Summation

'02' = Maximum

'03' = Minimum

'04' = Count of all values

'05' = Count of all values 0

'06' = Average using all values

'07' = Average using all values 0

'08' = Standard deviation

'09' = Variance

'10' = Suppress results

'11' = First value

'12' = Last value



Example

Display maximum plan sales



See also:

OLAP Functions for Active Cells [Extern]









Web API Reference BW 3.5 227

SAP Online Help 25.02.2005









Operations for Display Hierarchies

Definition

Operations on Display Hierarchies contains commands for a data provider in a Web template.



Use

There are five operations that you apply to display hierarchies:

...









1. With the SET_HIERARCHY_STATE command, you activate or deactivate a display

hierarchy that has been assigned to a characteristic (for example, in the query definition or

in a query view).

CMD SET_HIERARCHY_STATE

Parameter Description

IOBJNM Name of characteristic

Characteristic with a display hierarchy

assigned to it already.

ACTIVE (Option 1) Required status of the display hierarchy.



‘X’ = activate, ‘ ’ = deactivate

TOGGLE_STATE (Option 2) Switch the status of a hierarchy

If this parameter is set to ‘X’, the display

‘X’ = switch, ‘ ’ = do not switch

hierarchy is activated if it was previously not

active and deactivated if active.







Activating a Hierarchy for the Cost Center Characteristic for Data Provider

‘View1’



2. You use the SET_HIERARCHY command to assign a display hierarchy to a characteristic.

CMD SET_HIERARCHY

Parameter Description

IOBJNM Name of characteristic

Characteristic that you want to assign a display

hierarchy to.

HIERARCHY_NAME Technical name of the hierarchy



HIERARCHY_VERSION Hierarchy version

If the hierarchy has a particular version, you

must specify the version. Otherwise you can

leave out this parameter.









Web API Reference BW 3.5 228

SAP Online Help 25.02.2005





HIERARCHY_DATE Key date for the hierarchy

You specify the key date for time-dependent

hierarchies here. The date must be formatted

as YearMonthDay (for example, 20001224).







If the parameter is not transferred,

the key date in the query is

copied.

ACTIVE Required status of the display hierarchy.



‘X’ = activate, ‘ ’ = deactivate







Assigning ‘MyHierarchy’ to the Cost Center Characteristic for Data Provider

‘View1’



3. You use the DRILL_TO_LEVEL command to expand the display hierarchy up to a

specified hierarchy level.

CMD DRILL_TO_LEVEL

Parameter Description

IOBJNM Name of characteristic

Characteristic, to which an active display

hierarchy is assigned.

LEVEL Hierarchy level

Level to which you want to expand the

hierarchy. Level 1 is the root level.







If a hierarchy node is filtered at

the same time, make sure that the

level is higher than the level of the

filtered node.







Drilldown Cost Center Characteristic for Data Provider ‘View1’ up to Level 3



4. You use the SET_DRILL_STATE command you can expand and collapse a node from a

display hierarchy.







Note that the node must be visible in the list in the current navigation status.

The command is a useful way of influencing the extent to which the hierarchy is expanded

when you are calling a Web application, activating a hierarchy, or determining and









Web API Reference BW 3.5 229

SAP Online Help 25.02.2005





activating a hierarchy. Command sequences are used in order to execute both commands

at the same time.

CMD SET_DRILL_STATE

Parameter Description

IOBJNM Name of characteristic

Characteristic, to which an active display

hierarchy is assigned.

POSITION Data position in the drilldown

Since several objects can be drilled down on

an axis, the node specifications are no longer

unique. Therefore, the axis position is used

instead. For example, the fifth data line.



DRILL_STATE (optional) Level to which you want the hierarchy to be

expanded

'E' = hierarchy nodes expanded

'C' = collapse

'U' = by activating “Display as Hierarchy” on the

axis: drilldown according to the next object on

the axis

If the parameter is not specified, the collapsed

or expanded status will change. This means

that a collapsed hierarchy node will be

expanded and an expanded hierarchy node will

be collapsed.







Specifying the Hierarchy for the Cost Center Characteristic for Data Provider

‘View1’ and Simultaneously Expanding the Fifth Node on the Axis



A command sequence is used in this example.

See also:

Command Sequences [Seite 232]

5. With the command SET_HIERARY_NODE_SUPP, the property Display/Suppress Nodes

with Only One Child can be set.

CMD SET_HIERARY_NODE_SUPP

Parameter Description

IOBJNM Name of characteristic

Characteristic, to which an active display

hierarchy is assigned.









Web API Reference BW 3.5 230

SAP Online Help 25.02.2005





RESULT_SUPPRESSION Display/Suppress Nodes with Only One

Child

‘CONDITIONAL’ = Suppress Nodes with

Only One Child

‘NEVER’ = Display Nodes with Only One

Child









Activate For Cost Center Characteristic for Data Provider ‘View1’ Suppress

Node with Only One Child



6.









Web API Reference BW 3.5 231

SAP Online Help 25.02.2005









Command Sequences

Use

Many questions require you to change several objects in different ways with commands [Seite

145]. For example, you cannot use the current methods with a single request (command) for

filtering a data provider [Seite 172] for the fiscal year 1999 and another data provider for 2000.

A command sequence allows you to add new commands to an original command. Data is

requested from the OLAP processor and the HTML page is sent back to the Web Browser only

after all of the commands have been processed.

• The subsequent command sequences are added to the original command as parameter

CMD_N. If the command is within an >SAP_BW_URL> tag, you need to make sure that

the complete command sequence is set in quotation marks. No quotation marks can be set

within the command sequence. If the command sequence is transported using a URL, you

have to make sure that you replace the characters ‘=’ and ‘&’ with their hexadecimal

display in the command sequence

Replace ‘=’ with ‘%3D’

Replace ‘&’ with ‘%26’

Each subsequent command can have a maximum of 250 characters. If it contains more

characters, these extra characters are cut off.







If the command sequence is too large to fit in a URL then you can add the

parameter ‘NO_OUTPUT' to a command. As a result, the command is executed and

an empty page is returned. However, no data is read. This is useful, for example, if

a main frame is addressed from a control frame. Using JavaScript, you can carry out

a sequence of single commands in the main frame and leave out the ‘NO_OUTPUT’

parameter from the last command. See also Example Scenario for the Parameter

NO_OUTPUT [Seite 270].

See examples 1 and 2 below.

• The parameter APPLY_CMD_ON_TARGET and its values “X” and “ ” allow you to choose

whether the subsequent commands are used in a new page created by the main command

or whether they are used in the same page as the main command.

See example 3 below.



Examples

...









1. Start a Web application and filter data provider 1 according to DE and data provider 2

according to US

http://myAppServer:myPort/SAP/BW/BEx?CMD=LDOC&template_id=yourTemplate&CMD

_1=DATA_PROVIDER%3DDP1%26FILTER_IOBJNM%3D0COUNTRY%26FILTER_VAL

UE%3DDE&CMD_2=DATA_PROVIDER%3DDP2%26FILTER_IOBJNM%3D0COUNTRY

%26FILTER_VALUE%3DUS

2. Command URL to filter Data Provider 1 according to calendar year 2000, change the

title of the GRAPHIC graphic to ‘2000’, and change the title of the TABLE table to

‘Details2000’









Web API Reference BW 3.5 232

SAP Online Help 25.02.2005







3. Page 1 contains a link to the details. This link starts page 2. The navigation status of

the page 1 print parameters is transferred and at the same time the target page is

parameterized, for example, navigation is switched off.



4. Swap the axes of DataProvider 1 and place the 0Country characteristic in the rows











Web API Reference BW 3.5 233

SAP Online Help 25.02.2005









Using Forms

Use

With HTML forms you can integrate input fields easily into an HTML page. You can also use this

HTML technology to create BEx Web applications.



Features

Web Template Parameterization

By using forms, you can set customized parameters when calling up Web applications. Do this by

creating an HTML document with a form from which the actual Web application URL is called up

with set parameters.







After calling up the following HTML document, the user is offered a form in which he

or she can choose a calendar year and a country from dropdown boxes. After

clicking on submit, the Web application appears with preset filters in the query

views.











calendar year



1997

1998

1999

2000







Land



Brazil

Germany

France

Great Britain

Japan

Russia

Spain

USA













Web API Reference BW 3.5 234

SAP Online Help 25.02.2005









Buttons and Forms in Web Templates

">





calendar year



1997

1998

1999

2000







Land



Brazil

Germany

France

Great Britain

Japan

Russia

Spain

USA









You can also generate the tags from the BW system. Do so using the Web item

Dropdown Box. Set the attributes ONLY_VALUES (Only Display Values) to ‘X’ and

GENERATE_CAPTION (Generate Caption) to ‘ ‘. As a result, the system generates the

characteristic values of the InfoObjects as an tag. You can then set the enclosing select

and form tag into your HTML coding as you require. You can use this to create a multi-select box

for example – displayed in the example below, in order to refrain from sending the request to the

server until all dropdown boxes.

">

























Web API Reference BW 3.5 235

SAP Online Help 25.02.2005







ITEM: DROPDOWNBOX_1

























ITEM: DROPDOWNBOX_2











Buttons that filter the Data Provider ‚View1’ according to calendar years

">

















Web API Reference BW 3.5 236

SAP Online Help 25.02.2005









Use of JavaScript Functions

Use

You can execute commands or command sequences with JavaScript as well as by using

tags.

Another JavaScript application is the enhancement of the context menu to include customer-

specific entries.

All subsequent examples refer to excerpts from JavaScript.



Features

You can choose from the following functions:

Send Commands [Seite 238]

Enhancing the Context Menu with JavaScript [Seite 245]

Properties of Page Objects [Seite 251]

Logon Language [Seite 258]









Web API Reference BW 3.5 237

SAP Online Help 25.02.2005









Send Commands

Use

You have to create a URL before you can send it. The following options are available:

• Use the tag

• Using the BW JavaScript function (). This produces the same result

as the tag, but can also be called up outside of your own frame.



Features

JavaScript Function SAP_BW_URL_GET

Return value Start of an URL for calling an instruction

that should be executed in the same page

context.







Prepare Bookmark URL

url = "";

produces the same result as

url = "" + "&CMD=BOOKMARK";

or

url = SAP_BW_URL_Get() + "&CMD=BOOKMARK";

There are a number of JavaScript functions for sending instructions. As a result, functions are

made available that simplify the management of windows. For example, these functions allow

properties dialog boxes to be called up in separate windows. These functions take into account

whether or not the Web browser can use JavaScript. Thus, with a pocket IE device, no new

windows are generated.

You can choose from the following JavaScript functions:

Execute URL in the Same Window [Seite 239]

Execute URL in a New Window [Seite 240]

URL from a New Window in the Opening Window [Seite 241]

Close Window [Seite 242]

Execute Form in a New Window [Seite 243]

Execute Form in the Opening Window [Seite 244]









Web API Reference BW 3.5 238

SAP Online Help 25.02.2005









Execute URL in the Same Window

Use

JavaScript function for sending commands.



Features

JavaScript Function SAPBWOpenURL

Parameter Description

url URL to be launched.



Example

Send Bookmark URL

SAPBWOpenURL(SAP_BW_URL_Get() + "&CMD=BOOKMARK");

or in HTML:

Create

Bookmark

Open SAP Portals Homepage

SAPBWOpenURL("http://www.sapportals.com");









Web API Reference BW 3.5 239

SAP Online Help 25.02.2005









Execute URL in a New Window

Use

JavaScript function for sending commands.



Features

The URL is executed in a new window (output device permitting). This can be useful for selecting

filter values and in properties dialogs.

JavaScript Function SAPBWOpenWindow

Parameter Description

url URL to be launched.

Name Window name

Width Width of the window

Height Height of the window



Example

Call Select filter value dialog for characteristic 0Costcenter of Data Provider ABC

SAPBWOpenWindow(SAP_BW_URL_Get() +

"&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=DP_VIEW_FILTER&DATA_PROVIDE

R=ABC&IOBJNM=0COSTCENTER","FILTER",800,600);

or in HTML:

Define filter value for cost center

Display tailor-made form in a new window

SAPBWOpenWindow("http://.../CustomerForm.htm","CONFIG",300,200);

Open SAP Portals homepage in a new window

SAPBWOpenWindow("http://www.sapportals.com","SAPPORTALS",800,600);









Web API Reference BW 3.5 240

SAP Online Help 25.02.2005









URL from a New Window in the Opening Window

Use

JavaScript function for sending commands.



Features

You can send a URL on the opening window from a new window with this function. The

properties of the output device are taken into acccount here.

JavaScript Function SAPBWSetOpenerUrl

Parameter Description

url URL to be launched in the opening window.

close Then close window

true = close, false = leave open



Example

Start a new Web application in the main window

SAPBWSetOpenerUrl(SAP_BW_URL_Get() + "&CMD=LDOC&TEMPLATE_ID=NewTemplate");

or in HTML:

New Web report









Web API Reference BW 3.5 241

SAP Online Help 25.02.2005









Closing Windows

Use

JavaScript function for sending commands.



Functions

With this function you can close a window without having to execute a command.







The properties of the output device are taken into consideration. If the output device

does not accept JavaScript, the function pages back by one page.

JavaScript Function SAPBWCloseWindow



Example

Close window

SAPBWCloseWindow();

or in HTML:

Close window









Web API Reference BW 3.5 242

SAP Online Help 25.02.2005









Executing a Form in a New Window

Use

JavaScript function for sending commands.



Functions

The form is executed in a new window (if the output device permits this). You can use this

function to create your own forms for control in a Web template.

JavaScript Function SAPBWWForm

Parameter Description

name Window name

formname Name of form

width Width of the window

height Height of the window



Example

Execute a Form in a New Window

SAPBWWForm("WindowName","FormName",800,600);

or in HTML:

Evaluate form in a

new window









Web API Reference BW 3.5 243

SAP Online Help 25.02.2005









Executing a Form in the Opening Window

Use

JavaScript function for sending commands.



Functions

You can execute a form on the opening window from a new window with this function.







The properties of the output device are taken into consideration.

JavaScript Function SAPBWOpenerSubmitForm

Parameter Description

formname Name of form

close Then close window

true = close, false = leave open



Example

Execute form in the opening window and close window

SAPBWOpenerSubmitForm("FormName",true);

or in HTML:

Execute form and close

window









Web API Reference BW 3.5 244

SAP Online Help 25.02.2005









Enhancing the Context Menu with JavaScript

Use

As well as being able to make entries in the context menu visible, entries in the enhanced menu

visible or entries in the enhanced menu invisible, you can also hang scenario-specific entries in

the menu. There are several options:

• You define the new entries for the Web template properties with the object tag. You can

find additional information under Object Tag for the Properties of Web Templates [Seite

125] and Enhancing Context Menus [Seite 139].

• You hang the new entries in the context menu with a JavaScript function. You can find

additional information under Adding Menu Entries with JavaScript [Seite 246] and

Command Processing [Seite 248].







In both cases you must write a JavaScript function that processes the menu entry

selection.









Web API Reference BW 3.5 245

SAP Online Help 25.02.2005









Adding a Menu Entry using JavaScript

Use

You can add new entries to the context menu either using the Web template property or with a

JavaScript call.



Functions

JavaScript Function SAPBWAddToMenu

Parameter Description

label Labeling text in the menu

func JavaScript function for processing the

command

You implement this function in JavaScript and

use it to execute commands after you have

selected the menu entry.

parameter Free parameter

This parameter is passed to the JavaScript

function ‘func’ and you can evaluate it there as

required. The parameter allows you to use a

function ‘func’ for more than one menu entry.

cell_type Context of the entry

‘ ’ = No restriction If you want the menu entry to appear only in

certain contexts and not in all context menus,

‘CHARACTERISTIC’ = Characteristic

you can define this with ‘cell_type’ and ‘filter’.

‘CHARACTERISTIC_VALUE’ = Characteristic

value

‘STRUCTURE’ = Structure

‘STRUCTURE_MEMBER = Structural

component

‘DATA’ = Data cell

‘EXCEPTIONS’ = Exceptions item

‘CONDITIONS’ = Conditions item

‘DOCUMENT_LIST’ = Document list item









Web API Reference BW 3.5 246

SAP Online Help 25.02.2005





filter Context of the entry

Different values are relevant here, depending

on the value of ‘cell_type’:



‘CHARACTERISTIC’,

‘CHARACTERISTIC_VALUE’, ‘STRUCTURE’,

‘STRUCTURE_VALUE’: Iobjnm

‘EXCEPTIONS’: Exception ID

‘CONDITIONS’: Condition ID

‘DOCUMENT_LIST’: Document ID

See Examples.

visibility Visibility of the entry

‘ ’= Not displayed Here you define if the entry is to appear in the

basic menu or in the enhanced menu.

‘X’= Displayed in the “basic menu”

‘E’= Displayed in the “enhanced menu”

position Position of the entry

‘TOP’ = Before the “normal” entries The entries are inserted in the order in which

they were called. You can choose if the entry is

‘BOTTOM’ = After the “normal” entries

to appear before the “normal” entries or after

them in the menu. You cannot position the

entries in between the “normal” entries.

Data_provider Name of the data provider

Name of the data provider (if the entry is to be

made only for a specific data provider).

Item Name of the Web item

Name of the Web item (if the entry is to be

made only for a specific Web item).



Example

See the examples under Command Processing [Seite 248]









Web API Reference BW 3.5 247

SAP Online Help 25.02.2005









Command Processing

Use

When you enhance the context menu with customer-specific entries (with Web template

properties or JavaScript function 'SAPBWAddToMenu'), you must define a JavaScript function

that is executed when a customer-specific entry is selected. This function is responsible for

processing the command.



Features

The function must support the following interface:

JavaScript Function JavaScript function for processing the

command

Parameter Description

parameter Free parameter

The parameter makes it possible to process

more than one menu entry with one function.

See Examples.

cell_type Context of cell



' ' = No special

‘CHARACTERISTIC’ = Characteristic

‘CHARACTERISTIC_VALUE’ = Characteristic

value

‘STRUCTURE’ = Structure

‘STRUCTURE_VALUE’ = Structure component

value

‘DATA’ = Data cell

'EXCEPTIONS' = Web Item List of Exceptions

'CONDITIONS' = Web Item List of Conditions

'DOCUMENT_LIST' = Web Item List of

Documents

Filters Context of cell

Different values are suitable, depending on the

value of ‘cell_type’:

‘CHARACTERISTIC’,

‘CHARACTERISTIC_VALUE’, ‘STRUCTURE’,

‘STRUCTURE_VALUE’: Iobjnm

‘EXCEPTIONS’: Exception ID

‘CONDITIONS’: Condition ID

‘DOCUMENT_LIST’: Document ID

See Examples.









Web API Reference BW 3.5 248

SAP Online Help 25.02.2005





parameter1 Exact definition of the context of the cell

cell_type = 'CHARACTERISTIC_VALUE': Key

for characteristic value

cell_type = 'STRUCTURE_VALUE':

STRUCTURE_MEMBER_ID_1

parameter2 Exact definition of the context of the cell

cell_type = 'CHARACTERISTIC_VALUE': Node

type for a hierarchy node

cell_type = 'STRUCTURE_VALUE':

STRUCTURE_MEMBER_ID_2

item Name of the Web item on which the menu is

called

dataprovider Name of the data provider for which the

menu is called up

x Cell is on data column x

This parameter is needed especially for the

report/report interface.

Y Cell is on data row y

This parameter is needed especially for the

report/report interface.

You can use all the JavaScript functions that were listed for processing.



Example















Web API Reference BW 3.5 250

SAP Online Help 25.02.2005









Properties of Page Objects

Use

This section lists the JavaScript functions for the properties of Web items and data providers:

• You can access the current attribute value of a Web item. See Web Item Attributes [Seite

252]

• You can determine which characteristics a data provider has. See Data Provider

Characteristics [Seite 253].

• You can specify the properties of a Web template. See Determining Web Template

Properties [Seite 255].









Web API Reference BW 3.5 251

SAP Online Help 25.02.2005









Web Item Attributes

Use

You can access the current attribute values of a Web item using this JavaScript function. For

example, you can specify whether a Web item is visible. This will help you to create a Web

application in which you can switch between two views, for example between a chart and a table,

using a link.



Features

JavaScript Function SAPBWGetItemProp

Parameter Description

Name Logical name of the Web item

Return value Array with Web item properties

The information is stored as follows:

new Array(itemName, new

Array(attributeName1,attributeValue1), new

Array(attributeName2,attributeValue2), ...)







Specifying whether a Web item is visible:















Web API Reference BW 3.5 252

SAP Online Help 25.02.2005









Characteristics for Data Providers

Use

You can use this JavaScript function to determine which characteristics belong to a data provider.

By doing this, you can then, for example, fill a dropdown box for changing drilldowns with the

relevant characteristics and do not have to create a dropdown box manually for each data

provider.

Moreover, this function is language-independent, which means the selections are adjusted

automatically for each language. The texts are shown according to the logon language.



Features

JavaScript Function SAPBWGetDataProviderDimensions

Parameter Description

Name Logical name of the saved query view

Return value Array of characteristics and structures of

the data provider

The individual characteristics and structures

are stored as arrays, as in the example:

new Array(dimArray1, dimArray2, ...)

The individual characteristics and structures

have the following structure:

new Array(iobjnm,is_structure (

,X),hierarchyAssigned( ,X), activeHierarchy(

,X), axis (X,Y, ), filtered ( ,1 (single value),

X(multiple filter values)), caption, unsupported

properties)

There are other properties in addition to those

listed, but these have not yet been officially

released.







Listing characteristics and structures:















Web API Reference BW 3.5 254

SAP Online Help 25.02.2005









Specifying Properties for Web Templates

Use

With this JavaScript function you can specify properties for Web templates. See also Object Tag

for Properties of Web Templates [Seite 125]. For example, you can specify a technical name for

the Web template or decide if dialogs need to be displayed in a new window.



Features

JavaScript Function SAPBWGetProperty

Parameter Description

Name Name of Web Template Property

SUPPORTS_OPEN_WINDOW: Are you

permitted to open new windows? (true, false)

SUPPORTS_DOCUMENTS: Can document

links be displayed? (true, false)

SUPPORTS_EXPORT: Is an export according

to XLS/CSV possible? (true, false)

SUPPORTS_PERSONALIZATION: Is

personalization possible? (true, false)

TEMPLATE_PERSONALIZED: Is the Web

template already personalized? (true, false)

NO_BOOKMARKING_SUPPORTED: Are

bookmarks impossible? (true, false)

SUPPORTS_VARIABLE_SCREEN: Is a

variable screen possible? (true, false)

DATE_FORMAT: Date format (1:

DD.MM.YYYY, 2: MM/DD/YYYY, 3: MM-DD-

YYYY, 4: YYYY.MM.DD, 5: YYYY/MM/DD, 6:

YYYY-MM-DD)

ACCESSIBILITYMODE_ACTIVE: Web

template was called up with parameter

ACCESSIBILITY=X (see also Barrier Freedom

for Web Applications [Extern]) (true, false)

TEMPLATE_ID: Technical name for Web

template

RUNS_AS_IVIEW: Web Application runs as

iView (true, false)

RRI_TARGET_FRAME: Attribute

RRI_DISPLAY_TARGET (see Object Tag for

Properties of Web Templates [Seite 125])

Return value See above









Web API Reference BW 3.5 255

SAP Online Help 25.02.2005









The Web template properties do not have to completely agree with the set

properties in the Web template. Sometimes when the device recognition properties

are switched off, the Web template properties are then activated.



Example

Specifying the technical name of the Web template















Web API Reference BW 3.5 256

SAP Online Help 25.02.2005









Calendar for Date Filter

Use

You can use this JavaScript function to call up a calendar. When you select a value, the system

filters the data characteristic for the specified DataProvider.



Features

JavaScript Function SAPBWSetFilterByCalendar

Parameter Description

dataProvider Logical name of the DataProvider

When the filter operation is only to be applied

to a DataProvider, specify its logical name

here.

dataProviderArray Logical name of data provider

When the filter operation is to be applied to

several data providers, specify their logical

names here, for example, new Array

(“DP1”,“DP2”,“DP3”)

iobjnm Date characteristic

The system is to filter according to this

characteristic.

displayDate (optional) Start date

Date the calendar displays when it appears.

This parameter is optional. The date format has

4 characters for the year, 2 for the month and 2

characters for the day: YYYYMMDD







Filter DP1 according to 0CALDAY



Filter Calday









Web API Reference BW 3.5 257

SAP Online Help 25.02.2005









Logon Language

Use

With this function you can define the logon language and thereby take the different input formats

of the various languages into consideration in JavaScript.



Features

JavaScript Function SAP_BW_Get_Language

Return value Logon Language

For example, EN for English and DE for

German.









Web API Reference BW 3.5 258

SAP Online Help 25.02.2005









Language-Dependent Texts

Definition

By using this BW-specific tag, you can install language-dependent texts in a Web application.



Use

You create text elements for an ABAP report. These can then be translated.

With the help of the SAP_BW_TEXT tag that you insert into a Web template, you can access the

texts as follows:



You can also use language-dependent headings for Web items. You can specify the headings as

parameters either in the object tag of the Web item



Or fill the heading in the Web Application Designer as follows:

SAP_BW_TEXT?PROGRAM=MYREPORT&KEY=001

You can find additional information about language-dependent texts under Creating ABAP

Programs for Maintaining Language-Dependent Texts [Seite 260].









Web API Reference BW 3.5 259

SAP Online Help 25.02.2005









Creating ABAP Programs for Maintaining Language-

Dependent Texts

Use

To make Web applications independent from static texts, you can maintain and translate the text

in an ABAP table. The Web application is then filled with the corresponding texts according to the

logon language.



Prerequisites

You are in the ABAP Editor (transaction SE38)



Procedure

...









1. In the Program field enter the name of the program, for example ZHTML_TEXTS and in the

subobject screen, select Source Code.

2. Choose (Create). You reach the ABAP: Program Properties

Change screen.

3. Enter the title of the program, for example Web Application Texts.

4. Under Type in the Attributes field, choose Executable Program and then Save. You reach

the Create Object Catalog Entry dialog box.

5. In the Attributes field under Package enter $TMP and save the program as a Local Object.

You have created an ABAP report called ZHTML_TEXTS

6. In the menu bar choose Goto → Text Elements → Text Symbols. You reach the ABAP Text

Elements: Display Text Symbols Language English screen. Choose (Create

Change).

Enter your texts in the empty table.

...









a. In the Sym field enter the numerical key of the new text element (0-999), for

example, 001.

b. In the Text field, enter the name of the text element, for example, Credit Memos.

The dLen field is filled automatically with the actual length of the text you entered,

for example, 12 in the case of Credit Memos.

c. In the mLen field, enter the maximum length of the text field.







If the maximum length of the text field (mLen) is smaller than the actual length of the

text field (dLen), the system asks you whether you want the text to be shortened to

the maximum length.

d. When you have entered all your texts, choose (Activate). You reach the ABAP

Text Elements: Change Text Symbols Language English screen.

7. In the menu bar of the ABAP Text Elements: Change Text Symbols Language English,

choose Goto → Translation. You reach the Target Language for Translation screen.

...









a. Select the target language, into which you want to translate the texts, for example,

DE and choose (Continue). You reach the Translation: ABAP Text Pool: ($) from Language to , on which your texts and translation

proposals from the ABAP text pool are displayed. For example, “Credit Memos” is

translated as “Gutschriften”. You can transfer the proposals or edit them as you

wish.







The program generated the text translations from the ABAP text pool if

corresponding entries are available there. For texts without proposals you have to

enter the translation yourself.

b. Choose Save.



Result

In the Web template, you can now insert the following tag for the example text used here

ZHTML_TEXTS: .

The command inserts the text that you maintained with the key 001 in the table, in accordance

with the logon language in the Web template, for example as the table title.











Web API Reference BW 3.5 261

SAP Online Help 25.02.2005









More Complex Examples of Applications

In the following you will find more complex examples of applications that show you how you can

create your own cockpits and execute command sequences in an optimized way with the help of

command URLs and with the JavaScript functions. To understand the examples, you need to

have an understanding of JavaScript and HTML.

The following examples of applications are available:

Dynamically Changing Attributes [Seite 263]

Using Several Tab Pages [Seite 266]

Example Scenario for the Parameter NO_OUTPUT [Seite 270]

XML-Web Item: Data Provider Information [Seite 274]









Web API Reference BW 3.5 262

SAP Online Help 25.02.2005









Dynamically Changing Attributes

A toggle button needs to be activated and deactivated for the alternate table styles. The toggle

button style changes according to the currently set attribute (ALT_STYLES) for the table.

To do this, a toggle button is created in HTML. The style class for the toggle button is set

dynamically.

















DATA_PROVIDER: DATAPROVIDER_1















TEMPLATE PROPERTIES











Example Template 1





























ITEM: TABLE_1











Alternate

Styles







Web API Reference BW 3.5 264

SAP Online Help 25.02.2005





































If you copy the code from the example, make the following changes in the

formatting:

• Remove the space between the character ‘=’ and ‘”’ in the BW object tags.

• Make sure that the character string for HTML comments is set correctly.

Before ‘’ (end of HTML

comments) there should be two minus signs / hyphens (--).









Web API Reference BW 3.5 265

SAP Online Help 25.02.2005









Using Several Tab Pages

In this example, a tab page is to be created. Tab pages can also be created using frameset

technology in which different Web templates are used. This example uses DHTML to create the

tab page; all objects are contained in a Web template.

You cannot work with pure DHTML since the complete page is frequently reloaded for server

requests. Instead, the page status must be transferred back to the server. A dedicated BW

object whose attribute is set or not set to ‘hidden’ is suitable here.

The HTML tags that display the tab pages are accessed via head_TABx. X is a whole number

counting up from 1.

The HTML tags for the actual display area are accessed via TABx. There is a Web item in each

display area (technical name: TABx). Additional Web items can also be added. The technical

names of these Web items must begin with TABx.

When switching the tab pages, a request is sent to the server that sets the hidden attribute of the

appropriate Web item to ‘ ‘. All other Web items are set to hidden=’X’.

The JavaScript function set_actual_tab checks which Web item (TABx) is currently visible. The

respective tab page is marked as selected for this Web item. For other Web items, the associated

display area is switched to hidden.







From Release SAP BW 3.5, you can also work with the Web item Web Template as

an alternative. When you do this, each display area is saved in a subtemplate. The

subtemplates are inserted into the main template using the Web Template Web item

and are made visible or hidden as needed. You can find more information on the

Web Template Web Item under Web Template [Seite 100].

















DATA_PROVIDER: DATAPROVIDER_2

















DATA_PROVIDER: DATAPROVIDER_1













Web API Reference BW 3.5 266

SAP Online Help 25.02.2005











TEMPLATE PROPERTIES











BW Web Application

















Tab 1



Tab 2



























ITEM: TAB1





















ITEM: TAB2

















Web API Reference BW 3.5 268

SAP Online Help 25.02.2005

























If you want to copy the coding from the example, you need to remove the space

between ‘ =’ and ‘ “ ‘ in the BW object tags.









Web API Reference BW 3.5 269

SAP Online Help 25.02.2005









Example Scenario for the Parameter NO_OUTPUT

In the example scenario, you use a frameset with a display area and a control frame. You want to

influence the display area from the control frame. For each structure element of the data provider,

the scaling factor should be set to 1,000. Since, potentially, there could be some structure

elements, it could happen that the sequence of commands becomes to large due to the length

limitations for URLs. For this reason, the commands (SET_VALUE_PROPERTIES) are sent

individually to the display template; the parameter NOT_OUTPUT is used during this process so

that the data are read only after the last command.

The following describes the example scenario for the involved Web templates:



Web Template NOT_OUTPUT_EXAMPLE_FRAMESET







No Output Example Frameset Template









"

name="Top">

" name="display">











Browser doesn’t support frames







The frameset template loads the Web template NO_OUTPUT_FRAME_TOP into the upper frame

and the Web template NO_OUTPUT_FRAME_DISPLAY into the lower frame.







Note that this example can only be edited in text mode due to the use of framesets

in the Web Application Designer. For more information, see Enhanced Editing in

Text Mode [Extern].



Web Template NO_OUTPUT_FRAME_DISPLAY













Web API Reference BW 3.5 270

SAP Online Help 25.02.2005











DATA_PROVIDER: DATAPROVIDER_1















TEMPLATE PROPERTIES











BW Web Application



















ITEM: TABLE_1























ITEM: DROPDOWNBOX_1















Web API Reference BW 3.5 271

SAP Online Help 25.02.2005





In addition to containing the table for data display, the Web template contains the Web item

Dropdown Box, with which the structure elements can be selected. This Web item possesses the

attribute SHOW_LABEL=” “, ONLY_VALUES=X and GENERATE_CAPTION=” “. This leads to

generation of tags only. The Web item can be found within a tag that is switched

to hidden. In order to address the tag, an ID is also assigned.





Web Template NO_OUTPUT_FRAME_TOP















TEMPLATE PROPERTIES









BW Web Application











Set Scaling factor







The complete JavaScript logic is contained in this Web template. If you click on the link Set

Scaling Factor link in the Web application, the JavaScript function set_scaling is called. This

JavaScript function processes the generated tags of the Web item from the Web

template NO_OUTPUT_FRAME_DISPLAY. If a corret tag is found, the tag attribute „value“ is

read. The Unique-ID (UID) of the structure element is found here that is used to change the

scaling factor of the structure element with the help of the Web API command

SET_VALUE_PROPERTIES. The NO_OUTPUT parameter is used so that the data are not yet

read. Once all of the key figures have been processed, a command is sent to the server again

without setting the parameter NO_OUTPUT this time. The data is read and returned.









Web API Reference BW 3.5 273

SAP Online Help 25.02.2005









XML Web Item: Data Provider Information

For clarity we are providing a short example of using the Web item Data Provider Information. In

order to make good use of the XML Web item, you will need JavaScript or XSLT knowledge. In

this example, the internal values of a data provider will be read and displayed in a message box

using the Web item Data Provider - Information [Seite 99]).

















DATA_PROVIDER: DATAPROVIDER_1















TEMPLATE PROPERTIES











BW Web Application

























ITEM: TABLE_1























ITEM: XMLQUERYVIEWDATA_1



Click here to see the internal values of the table









The generated XML is provided here to explain the JavaScript function alert_internal_values:























0000001931710.04800$ 1.931.710,05...









Web API Reference BW 3.5 275

SAP Online Help 25.02.2005





00000115384943115

3.849.431 PC...

...









.

The first lower level node of the start node is the tag . The first lower level node of

this node is the control statement . The second lower level node of the tag is

. Since only the cell data are

of interest for this scenario, the fourth lower level node of the tag is relevant. The

first lower level node of this tag is . The lower level node of this node is then

. Within the , there are individual tags.





In order to get to the internal value (tag ) within the tags, the second lower level

node has to be considered. The content of the tag is an (implicit) text node, thus it is a

lower level node of the tag.









Web API Reference BW 3.5 276

SAP Online Help 25.02.2005









Web Design API for Tables

Purpose

The Web Design Application Programming Interface (Web Design API) is aimed at Web

designers and ABAP programmers that want to create Web applications for highly individual

scenarios, such as BI cockpits, based on BEx Web application design and want to change the

display of tables or navigation blocks to meet their own requirements.

The Web Design API enables you to modify individual cell data (characteristic values, column

headers, value cells, and so on) with relation to content, display and navigation options.

Making good use of the Web Design API for tables depends on the technical design and

economic questions. Thus it does make sense to use the Web Design API for Tables in every

case. Certain modifications in relation to content, display and navigation options can also be

made with the BEx Query Designer [Extern]. Other adaptations can be made with the BW

Stylesheets [Extern].

In this way, many changes to the display can be made using BW stylesheets (for example, color)

or the Query Designer (for example, scaling). This is especially important when all cells of a cell

type (for example, all number values in data cells) are to be changed. When only certain cells of

a cell type are to be changed in their display, the Web Design API for Tables with its own CSS

classes would be useful.

Complex modifications to the content (for example display as symbol) or to the navigation options

(for example, inserting your own links) can usually only be done using the Web Design API for

Tables.



Process Flow

For extensive information on the required creation of the ABAP class for the Web Design API for

Tables, see Creating and Using an ABAP Class [Seite 278].

For extensive information on the options that are available with the Web Design API for Tables for

modification of cell contents and display, see Table Interface [Seite 281].

...









Result

The next time you call up the Web template, your class for adjusting the table contents is called

up.







For test purposes, you can examine the generation of the HTML in the ABAP

debugger. For more information, see Using and Creating ABAP Classes [Seite 278].









Web API Reference BW 3.5 277

SAP Online Help 25.02.2005









Creating and Using ABAP Classes

Use

The Web Design API for Tables enables you to modify individual cell data in relation to content,

display and navigation options. To do this, you create your own ABAP class that inherits the

associated properties and parameters from the class CL_RSR_WWW_MODIFY_TABLE and you

redefine one or more methods for this class.



Prerequisites

You have created a Web application that includes the Web item Table and/or the Web item

Generic Navigation Block.



Procedure

Create ABAP Class

...









1. From the SAP Easy Access screen, choose Tools → ABAP Workbench → Development →

Class Builder (transaction SE24). See also Class Builder [Extern].







You can also use the Object Navigator from the ABAP Workbench (transaction SE

80) to generate a class. See also Object Navigator [Extern].

2. To create a new class, under Object Type, enter a technical name for your class (for

example, ZCL_RSR_WWW_MODIFY_TABLE) and choose (Create). The Create Class

YourClassName dialog box then appears.

3. Save your class. You get to the Object Catalog screen.

4. Depending on the system configuration in regard to changes and the transport of objects,

either choose a package or save your class as a local object. For more information, speak

to your system administrator. The Class Builder: Change Class YOURCLASSNAME

screen.

5. Choose Superclass on the Properties tab page. Under Inherits from, enter

CL_RSR_WWW_MODIFY_TABLE as the superclass.

6. To see all of the inherited properties and methods of the class

CL_RSR_WWW_MODIFY_CLASS in your ABAP class, choose (Save).

7. On the Methods tab page, choose a method (for example, CHARACTERISTIC_CELL or

GET_CELL_INFO) that you want to redefine and choose (Redefine).

8. To change the implementation of the method, call up the method name by double clicking.



9. To get back to the original screen, choose (Back)

10. Save your changes.

11. To activate event linking, choose (Activate).



Using an ABAP Class in a Web Template

To be able to use the ABAP class you created, it must be included in a Web template.

...









Web API Reference BW 3.5 278

SAP Online Help 25.02.2005





1. Open your Web template that contains the Web item Table and/or Generic Navigation

Block in the BEx Web Application Designer.

2. Use the HTML tab page to switch to the HTML view of the Web Application Designer.

3. Navigate to the Object Tag of the Web Item Table and/or the Web Item Generic Navigation

Block (CL_RSR_WW_ITEM_GRID and/or CL_RSR_WWW_ITEM_NAV_BLOCK) and

insert the following parameter line into the HTML:



















4. Save the changes.

5. Execute the Web template in the browser.



Debug ABAP Class

For test purposes, you can debug the ABAP class. By setting breakpoints in the redefined

methods and using the ABAP debugger, you can determine when the individual methods are

called and which information they provide. To better understand the individual methods, you can

redefine the methods for test purposes. You can set a breakpoint on the individual method

without inserting code. You can see all values for the parameters assigned to the method in the

debugger. See also Debugger [Extern].

...









1. From the SAP Easy Access screen, choose Tools → ABAP Workbench → Development →

Class Builder (transaction SE24).

2. Under the object type, enter the name of the ABAP class you created.

3. Choose (Change).

4. Double click on one of the methods in the Methods tab page that you have changed when

creating your ABAP class.

5. To set an external (HTTP) breakpoint in your method, in the menu, choose Utilities →

Breakpoints → Set/Delete.







• Two types of breakpoints exist: External (HTTP) Breakpoints enable

debugging in the Web browser. Session Breakpoints enable debugging

within transactions. BEx Web Applications are usually executed in the Web

browser. The query monitor (RSRT2) transaction allows you to display a BEx

Web application in the SAP GUI. Depending on how you call up your Web

application you can choose the appropriate breakpoint type.

• To be able to set an external breakpoint, you have to set the external

debugging to active. You can set external debugging to active in the menu

under Utilities → Settings... → ABAP Editor → Debugging in the External

Debugging field. .









Web API Reference BW 3.5 279

SAP Online Help 25.02.2005





6. Close all Web browser windows or query monitor instances (RSRT2) before you call the

Web application in which you have included your ABAP class. Otherwise the debugger

could not stop at the set breakpoint.

7. Execute the Web application in the Web browser or in the query monitor transaction. You

reach the ABAP debugger that stops at the breakpoint you set.



Result

You have created an ABAP class and have redefined one or more methods to specifically change

the display of tables and the generic navigation block with the help of the Web Design API for

tables.









Web API Reference BW 3.5 280

SAP Online Help 25.02.2005









Table Interface

Use

The table interface enables you to display tables or navigation blocks in BEx Web applications as

you choose.



Features

Your options include anything from making simple changes to the display to making data-specific

enhancements to the navigation options and display.

The technical realization is done with an ABAP class. For extensive information on creating the

ABAP class and its use in a Web template, see Creating and Using an ABAP Class [Seite 278].

The table interface has the following functions:

• Attributes [Seite 282]

The attributes include the data from the data provider and general information, such as

generation parameters of the table (parameters from the URL), as well as information on

whether navigation links are to be created or whether the use of JavaScript is allowed.

• Events [Seite 292]

The results enable determination of information on various times, such as at the time of

initialization of the table.

• Methods for Manipulation of Cell Contents [Seite 293]

The methods for manipulation of cell contents are central to the table interface. Only

implement (redefine) the methods for the cell types that you want to manipulate. Note that

generally, not all cells of a cell type are manipulated - only specific cells depending on the

characteristic, the key figure and/or the value. These specific cells can be identified using

the importing parameters of methods for manipulation of cell contents.

• Service Methods [Seite 307]

Service methods can be used within methods for manipulation of cell contents or within the

events. Service methods enable you to generate links, insert JavaScript, send messages,

request information on specific cells or on the current navigational state, read the path of

symbol directories in the MIME Repository and to determine specific attributes for the table

interface.









Web API Reference BW 3.5 281

SAP Online Help 25.02.2005









Attributes

Definition

Functional components of the table interface.



Structure

The following instance attributes of the class are filled automatically. They get their values from

the Web application framework.







The attributes are read-only.

Attribute Description

N_ITEM_NAME Logical name of the table

This attribute is needed for command URLs.

You can use this attribute, for example, to

change attributes in the table.

N_GENERATE_LINKS Generate navigation links

If the value = “X”, URLs can be generated.

If the value is blank, the item is for display only.

It is not possible to interact with the item.

N_ALT_STYLES Display zebra list

If the value = “X”, the formatting is the same in

every other row.

N_STATELESS Calling the Web application without

interaction

If the value = “X”, the Web application is called

and the session is dismantled on the

application server. SAP BW 2.0 supports no

further interaction.









Web API Reference BW 3.5 282

SAP Online Help 25.02.2005





N_R_CREATION_PARAMETERS Creation parameters for the table

Using the reference for an instance of the class

CL_RSR_PARAMETER, the system is able to

read the value-name pairs that have been used

in the generation of the table. Methods such as

GET are used to read the values.

The parameters of the start URL and the

name-value pairs specified in the object tag of

the item in the Web template belong to these

name-value pairs.

This means that the start URL or object tag (in

the Web template) can transfer parameters to

the class. This increases the number of times a

class can be reused and the different areas

where the class can be used, for example, by

using customer-specific parameters that

configure the class individually.

N_JAVASCRIPT Using Java Script

If the value = “X”, Java Script functions are

supported. Otherwise, you must not use Java

Script functions, since you cannot be sure that

the requesting Web browser supports Java

Script.

N_DATA_PROVIDER_NAME Logical name of the data provider

Needed in the generation of navigation URLs.

N_NO_DATA No relevant data found

N_NO_AUTHORIZATION No authorization for displaying data

N_R_DATA_SET Data in the data provider







This attribute is needed only for

special applications.

As a rule, the information that is

transferred by the method

interfaces is enough to determine

the cell contents.

For more information see Datasets [Seite 284].









Web API Reference BW 3.5 283

SAP Online Help 25.02.2005









Datasets

Definition

The dataset contains the data for the query view.



Use

Special applications require information that cannot be obtained using the method interfaces. For

some applications you need more information than is contained in the cell contents. For example,

you need the list of available characteristics or the contents of the dynamic filter before you are

able to jump from one report into another.







An understanding of the enhancement described below is not necessary for the use

of the table interface.

You have made sure that the data from the dataset (N_R_DATA_SET) is always up to date. The

N_SX_VERSION_20A_1 attribute, type RSRDS_SX_DATA_SET_20A_1, is filled automatically.

The data consists of both the metadata (a catalog of characteristics (AXIS_INFO) and so on) and

the displayed values (AXIS_DATA and CELL_DATA).



Structure

The instance attribute N_R_DATA_SET → N_SX_VERSION_20A_1 has the following

components:



Component Description

AXIS_INFO [Seite 285] Metadata description of the characteristics,

attributes, and structures on the axes.

AXIS_DATA [Seite 287] Characteristic values, attribute values, and

structural components according to the

sequence they appear in on the axes.

CELL_DATA [Seite 289] Value cells: The cells are arranged by row first,

and then by column.

TXT_SYMBOLS [Seite 291] Text elements for the query









Web API Reference BW 3.5 284

SAP Online Help 25.02.2005









AXIS_INFO

Definition

This component describes the properties of the structures, characteristics, and attributes, and

how they are distributed between the axes.



Structure

The AXIS_INFO is a table of axes (rows, columns, and filters) with the appropriate axes

components.



AXIS_INFO Description

AXIS Axis ID

0 : Columns

1 : Rows

255 : Filters

NCHARS Value cells

The cells are arranged by row first, and then by

column.

NCOORDS Number of objects on the axis (number of

rows / columns / filter values)

CHARS Characteristics with their attributes and

structures on the axis.

The complex table CHARS has the following structure:



CHARS Description

CHANM Name of the characteristic or of the structure

HIENM Hierarchy name, if the hierarchy is active

VERSION Hierarchy version

DATETO Key date for the hierarchy

CAPTION Name of the characteristic or of the

structure

CHAPRSNT Characteristic display

0 : key and text

1 : Text

2 : Key

3 : Text and key

4 : Long text

5 : Medium text

6 : No display

ATTRINM Attributes for this characteristic





Web API Reference BW 3.5 285

SAP Online Help 25.02.2005





ATTRINM is a table of the attributes for the characteristic. It has the following structure:



ATTRINM Description

ATTRINM Name of the attribute

CAPTION Name of the attribute

CHAPRSNT Attribute display

0 : key and text

1 : Text

2 : Key

3 : Text and key

4 : Long text

5 : Medium text









Web API Reference BW 3.5 286

SAP Online Help 25.02.2005









AXIS_DATA

Definition

The component AXIS_DATA describes the contents of the axis.



Structure

AXIS_DATA is a table with the following structure:



AXIS_DATA Description

AXIS Axis ID

0 : Columns

1 : Rows

255 : Filters

SET Axis contents

The complex table SET has the following structure:



SET Description

TUPLE_ORDINAL Number of the entry beginning with 0 on the

axis

CHANM Name of the characteristic or of the

structure

CAPTION Text for the characteristic value

CHAVL Internal key value for the characteristic

value

This is needed, for example, for the filter

operations.

CHAVL_EXT External key value for the characteristic

value

This corresponds with CHAVL after the

application of the conversion exit.

NIOBJNM With hierarchy nodes, this is the name of the

node characteristic (0HIERNODE for text

nodes).

TLEVEL Hierarchy level of the entry

DRILLSTATE Extent to which the entry is expanded (for

an active hierarchy).

L : Hierarchy leaf

- : Expanded node

+ : Collapsed node









Web API Reference BW 3.5 287

SAP Online Help 25.02.2005





OPT Only with filters:

EQ : Single value

LT : Less than

LE : Less than or equal to

GT : Greater than

GE : Greater than or equal to

BL : From-value with intervals (two rows)

BH : To-value with intervals

SIGN I : Include

E : Exclude

ATTRIBUTES Attribute values

ATTRIBUTES is a table with the following structure:



ATTRIBUTES Description

ATTRINM Name of the attribute

CAPTION Text for an attribute value

ATTRIVL Key for the attribute value

This describes the contents of an axis.









Web API Reference BW 3.5 288

SAP Online Help 25.02.2005









CELL_DATA

Definition

The CELL_DATA component describes the value cells.

The number cells of the query view are given as the assigned table of rows for BAPI type

BAPI6111CD. If you display the query view data as a table, the assignment of cells corresponds

to that of the data block, in which the assignment is run first using the rows and then using the

columns.

The index of a specific value is therefore calculated as follows:

Index = Column position + (row position – 1)* number of columns



Structure

The data structure is as follows:



Component Description

CELL_ORDINAL Numbering of the values begins with 0







CELL_ORDINAL is always

smaller by 1 than the index of the

rows

VALUE Value

FORMATTED_VALUE Formatted value

Unit and currency are used already in this field

VALUE_TYPE Value type

The value type accepts the following values:

‘ ’ normal, valid value

‘0’ division by 0

‘1’ value cannot be determined

‘3’ value constructed from different currencies

‘5’ zero value

‘9’ surplus

‘D’ date

‘T’ time

‘A’ no authorization for this value

CURRENCY Currency identifier

UNIT Unit identifier









Web API Reference BW 3.5 289

SAP Online Help 25.02.2005





MWKZ Amount/value key figure

The amount/value key figure accepts the

following values:

'W' value

‘M’ amount

‘P’ price

‘Q’ ratio

‘%’ percentage value

‘C’ counter

‘F’ real number

‘D’ date

‘T’ time

NUM_SCALE Scaling factors

0 for 1, 1 for 10, 2 for 100, 3 for 1000, ...

NUM_PREC Precision of the number in decimal places

CELL_STATUS Not used

BACK_COLOR Not used









Web API Reference BW 3.5 290

SAP Online Help 25.02.2005









TXT_SYMBOLS

Definition

The component TXT_SYMBOLS describes the text elements of the query. The text elements are

available as a table made up of RRX_TXT_SYMBOLS rows.



Structure

The text elements have the following structure (only the most important components):



Component Description

SYM_TYPE Type of text element

‘V’ for variable

‘F’ for filter value

‘C’ for general text element

SYM_NAME Name of the object

With variables this is the variable name, with

filters it is the filter characteristic, and with

general text elements it is the name of the

element.

A list of the names of the general text elements

is stored under Text Elements [Seite 43].

SYM_FS Follow-on record number

A text element can be distributed over several

rows, for example, in intervals. This field gives

you the row number of a component within a

text element. If SYM_FS=0, the text element is

a new text element.

SYM_BEGIN_GROUP New group within a text element







Groups are usually separated by

semicolons (;)

SYM_CAPTION Name of the text element

SYM_VALUE Value of the component of the text element









Web API Reference BW 3.5 291

SAP Online Help 25.02.2005









Events

Definition

Functional components of the table interface.



Use

Events allow you to initialize tables.



Structure

Initialization

Initializing a table: You call this method is before processing. Using the reference from the

dataset, you can analyze metadata for the navigational state as well as the data itself. All

attributes of the class that were listed beforehand are filled at this point.

Method Start



New Rows

You call the following method before starting a new row. You can execute a suitable initialization

for the rows.

Method New_Row

Importing Parameter Description

I_Y New row numbers



Header Completed

The following method is called after you have processed the table header. You can execute a

suitable initialization for the rows.

Method Header_Finished

Importing Parameter Description

I_Y New row numbers



Completion

This method gives you the option of carrying out further operations after you have finished the

table. For example, setting Java Script functions using the method “Set_Javascript_Function”

(see Service Methods [Seite 307]) or cleaning up the table.

Method Finished









Web API Reference BW 3.5 292

SAP Online Help 25.02.2005









Manipulating Cell Contents

Definition

Functional components of the table interface.



Use

You can use a set of methods to manipulate cell contents. Only implement the methods for the

cell types that you want to manipulate. Standard contents will be used for all other cell types.







Standard contents may change between releases/support packages. If you want to

change the contents of a cell, we recommend that you overwrite the contents of, for

example, C_CELL_CONTENT completely and do not process the field with

REPLACE or a similar operation.



Features

You can use the following methods to manipulate cell contents:

• CAPTION_CELL: Headers [Seite 295]

• SCALING_FACTOR_CELL: Scaling Factors [Seite 296]

• CHARACTERISTIC_CELL: Characteristic Values [Seite 297]

• ATTRIBUTE_CELL: Attribute Values [Seite 299]

• STRUCTURE_CELL: Structural Components [Seite 300]

• DATA_CELL: Data Cells [Seite 301]

• ERROR_CELL: Error Cells [Seite 302]

• NAV_BLOCK_LABEL: Label Area of Navigation Block [Seite 303]

• NAV_BLOCK_VALUE: Filter of Navigation Block [Seite 305]

All methods for manipulation of cell contents include Importing and Changing Parameters. The

importing parameters provide cell-specific information such as content, style, coordinates,

characteristic, key figure, value, etc. The importing parameters depend on cell type. You can use

the changing parameters, which provide the standard values, to change the ID of the cell, the cell

content, the style of the cell and the extension of the TD tag. As these parameters are method-

independent, they are listed only once here.

Changing Parameter Description

C_CELL_ID Cell ID

If you leave this parameter empty, the cell has

no ID. The ID is used to process the cell

contents with JavaScript.

C_CELL_CONTENT Cell Contents

The cell contents themselves can be very

simple (for example, a number) or very

complex (for example, for hierarchy nodes:

icons with expanded/collapsed URL and text).









Web API Reference BW 3.5 293

SAP Online Help 25.02.2005





C_CELL_STYLE Style of Cell

The style defines the color, font, font size,

spacing, and so on of the cell. The styles are

defined in the cascading stylesheet. The

cascading stylesheet is assigned to the Web

template.

C_CELL_TD_EXTEND Extension of TD tag

Here you can set the properties such as the

width, height, alignment or color of the cell.

This parameter is not normally set because

many of the properties are already defined

when the style is defined.







The cell contents (C_CELL_CONTENT) corresponds to the inside part of the TD

tag. The extension of the TD tag is inserted into the opening TD tag. The HTML

and is automatically generated by the Web Application Framework:

..._CELL

C_CELL_CONTENT

The changing parameters can be changed depending on the importing parameters. If the

information from the importing parameters is not sufficient, additional information can be found

using the attributes or the service method GET_CELL_INFO (see Information for a Specific Cell

[Seite 311]).

Detailed information about the individual importing parameters can be found in the description of

the methods for the individual cell types. For more information, see the links under “Features”.







You can easily insert MIME objects (images, symbols, logos, etc.) into the contents

of the cells. To do this, enter the relative path as a URL, that is, the path information

is provided without naming the Web protocol, the host name and the port number.

The path should begin with /sap/bw/Mime. This corresponds to the path for service

of the SAP Web Application Server (see the transaction maintenance of the service,

SICF). Extend the path with the path information for the MIME object in the MIME

Repository (transaction SE80) below the /SAP/BW level.

Example:

Path in the MIME Repository: /SAP/BW/BEx/Icons/pixel.gif

Relative path : /asp/bw/Mime/BEx/Icons/pixel.gif

For more information on the use of SAP MIME objects, as well as your own MIME

objects, see Storing Stylesheets and Symbols [Extern].









Web API Reference BW 3.5 294

SAP Online Help 25.02.2005









Headers

Definition

You use the Caption_Cell method to adjust the contents of header cells.



Structure

Method Caption_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_IS_EMPTY Cell is empty

'X' = empty

I_IOBJNM_ROW Characteristic in the rows

In the rows axis, the characteristic, whose

header you want to display in the cell.

I_ATTRINM_ROW Attribute for characteristic in the rows

In the rows axis, the attribute for the

characteristic, whose header you want to

display in the cell.

I_TEXT_ROW Text for characteristic / attribute

I_IOBJNM_COLUMN Characteristic in the columns

In the columns axis, the characteristic, whose

header you want to display in the cell.

I_ATTRINM_COLUMN Attribute for characteristic in the columns

In the columns axis, the attribute for the

characteristic, whose header you want to

display in the cell.

I_TEXT_COLUMN Text for characteristic / attribute

I_ROWSPAN Number of cells that you want to merge

along the rows axis

I_COLSPAN Number of cells that you want to merge

along the columns axis

I_IS_REPETITION Repetition

'X' = cell contents is a repetition









Web API Reference BW 3.5 295

SAP Online Help 25.02.2005









Scaling Factors

Definition

You use the Scaling_Factor_Cell method to adjust the contents of cells that display the scaling

factors.



Structure

Method Scaling_Factor_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_TEXT Scaling text

I_IS_SUM Sum total cell

‘X’ = sum total cell

I_NUM_SCALE Scaling factor

I_CURRENCY Currency

I_UNIT Unit









Web API Reference BW 3.5 296

SAP Online Help 25.02.2005









Characteristic Values

Definition

You use the Characteristic_Cell method to adjust the contents of cells containing values for

characteristics.



Structure

Method Characteristic_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_IOBJNM Name of characteristic

I_AXIS Axis on which the characteristics are

arranged in the drilldown

'X' = columns, 'Y' = rows

I_CHAVL_EXT Characteristic value in external display

Key value of the characteristic value according

to its application in the conversion exit.

I_CHAVL Characteristic value in internal display

Key value of the characteristic value. This is

needed for the filter operations.

I_NODE_IOBJNM Name of the node characteristic

With characteristic nodes and text nodes, you

have to specify the characteristic name

(0HIER_NODE).

I_TEXT Text for characteristic value

I_HRY_ACTIVE Status of the display hierarchy

‘X’ = active

I_DRILLSTATE Extent to which the node is expanded

'E' = expanded, 'C' = collapsed

I_DISPLAY_LEVEL Display hierarchy level of the node / leaf

I_USE_TEXT Cell contents

'X' = text, ' ' = key

I_IS_SUM Sum total cell

‘X’ = sum total cell

I_IS_REPETITION Repetition

'X' = cell contents is a repetition

I_FIRST_CELL First data cell of the characteristic value





Web API Reference BW 3.5 297

SAP Online Help 25.02.2005





I_LAST_CELL Last data cell of the characteristic value

I_CELLSPAN Number of cells that you want to merge

along the drilldown axis

I_CELLSPAN_ORT Number of cells that you want to merge

vertically along the drilldown axis









Web API Reference BW 3.5 298

SAP Online Help 25.02.2005









Attribute Values

Definition

You use the Attribute_Cell method to adjust the contents of the cells containing attribute values.



Structure

Method Attribute_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_IS_EMPTY Cell is empty

'X' = empty

I_IOBJNM Name of characteristic

I_ATTRINM Name of attribute

I_AXIS Axis on which the characteristics are

arranged in the drilldown

'X' = columns, 'Y' = rows

I_CHAVL_EXT Attribute value in external display

Key value of the attribute value according to its

application in the conversion exit.

I_CHAVL Attribute value in internal display

Key value of the attribute value.

I_TEXT Text for attribute value

I_USE_TEXT Cell contents

'X' = text, ' ' = key

I_IS_SUM Sum total cell

‘X’ = sum total cell

I_CELLSPAN Number of cells that you want to merge

along the drilldown axis

I_IS_REPETITION Repetition

'X' = cell contents is a repetition









Web API Reference BW 3.5 299

SAP Online Help 25.02.2005









Structural Components

Definition

You use the Structure_Cell method to adjust the contents of structural components.



Structure

Method Structure_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_IOBJNM Name of the structure

I_AXIS Axis on which the characteristics are

arranged in the drilldown

'X' = columns, 'Y' = rows

I_STRUCTUR_MEMBER Name of the structural component

Key value of the structural component.

I_STRUCTUR_MEMBER_2 Name of the structural component of the

other structure

Key value of the structural component of a

second structure (if a second structure is

available). This is needed, for example, for sort

operations.

I_TEXT Name of the structural component

I_IS_SUM Sum total cell

‘X’ = sum total cell

I_IS_REPETITION Repetition

'X' = cell contents is a repetition

I_CELLSPAN Number of cells that you want to merge

along the drilldown axis

I_CELLSPAN_ORT Number of cells that you want to merge

vertically along the drilldown axis









Web API Reference BW 3.5 300

SAP Online Help 25.02.2005









Data Cells

Definition

You use the Data_Cell method to adjust the contents of data cells.



Structure

Method Data_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_VALUE Values of the cell without scaling

I_DISPLAY_VALUE Values of the cell after scaling

I_NUMERICAL_SCALE Scaling factors

I_NUMERICAL_PRECISION Number of places after the decimal point

I_CURRENCY Currency

Three-character currency ID, for example,

USD, ATS, or DEM.

I_UNIT Unit

Unit according to the application of the three-

character conversion exit.

I_ ALERTLEVEL Alert level

1, 2, 3 = green; 4, 5, 6 = yellow; 7, 8, 9 = red

I_IS_SUM Sum total cell

‘X’ = sum total cell

You can make many changes, for example, choose to display the alerts as icons, or change the

way currencies and units are displayed (units as text, for example).









Web API Reference BW 3.5 301

SAP Online Help 25.02.2005









Error Cells

Definition

You use the Error_Cell method to adjust the contents of error cells.



Structure

Method Error_Cell

Importing Parameter Description

I_X X coordinate of the cell in the table

I_Y Y coordinate of the cell in the table

I_TEXT Error text

I_TYPE Error type (S, E, A, I, W)









Web API Reference BW 3.5 302

SAP Online Help 25.02.2005









Labeling Area of the Navigation Block

Definition

You can adjust the contents of the labeling cells of the navigation block with method

NAV_BLOCK_LABEL.



Structure

The area for labeling can be divided in up to 4 columns.

Method NAV_BLOCK_LABEL

Importing Parameter Description

I_IOBJNM Technical name of the characteristic or

structure

I_IS_STRUCTURE Object is a structure

‘X’ = Yes, ‘ ’ = No

I_AXIS Axis on which the characteristics / structure

are arranged in the drilldown

'X' = columns, 'Y' = rows

I_CAPTION Label text

I_HRY_ACTIVE Status of the display hierarchy

'X' = Active

Changing Parameter Description

C_CELL1_ID ID of cell 1

If you leave this parameter empty, the cell has

no ID. The ID can be used to process the cell

contents with JavaScript.

C_CELL2_ID ID of cell 2

C_CELL3_ID ID of cell 3

C_CELL4_ID ID of cell 4

C_CELL1_CONTENT Cell contents 1

The cell contents themselves can be very

simple (for example only a number) or very

complex (for example for hierarchy nodes:

icons with expanded/collapsed URL and text).

C_CELL2_CONTENT Cell contents 2

C_CELL3_CONTENT Cell contents 3

C_CELL4_CONTENT Cell contents 4









Web API Reference BW 3.5 303

SAP Online Help 25.02.2005





C_CELL1_STYLE Style of cell 1

The style defines the color, font, font size,

distances, etc. of the cell. The styles are

defined in the Cascading Style Sheet. The

Cascading Style Sheet is assigned to the

template.

C_CELL2_STYLE Style of cell 2

C_CELL3_STYLE Style of cell 3

C_CELL4_STYLE Style of cell 4

C_CELL1_TD_EXTEND Extension of TD tag 1

Here you can set the properties such as the

width, height, alignment or color of the cell.

This parameter is not normally set because

many of the properties are already defined

when the style is defined.

C_CELL2_TD_EXTEND Extension of TD tag 2

C_CELL3_TD_EXTEND Extension of TD tag 3

C_CELL4_TD_EXTEND Extension of TD tag 4

C_CELL1_WIDTH Width of column 1

C_CELL2_WIDTH Width of column 2

C_CELL3_WIDTH Width of column 3

C_CELL4_WIDTH Width of column 4









Web API Reference BW 3.5 304

SAP Online Help 25.02.2005









Filter Area of the Navigation Block

Definition

You can adjust the contents of the filter cells of the navigation block with method

NAV_BLOCK_VALUE.



Structure

The area for the filter can be divided in up to 4 columns.

Method NAV_BLOCK_VALUE

Importing Parameter Description

I_IOBJNM Technical name of the characteristic or

structure

I_IS_STRUCTURE Object is a structure

‘X’ = Yes, ‘ ’ = No

I_AXIS Axis on which the characteristics / structure

are arranged in the drilldown

'X' = columns, 'Y' = rows

I_CAPTION Label text

I_HRY_ACTIVE Status of the display hierarchy

'X' = Active

Changing Parameter Description

C_CELL1_ID ID of cell 1

If you leave this parameter empty, the cell has

no ID. The ID can be used to process the cell

contents with JavaScript.

C_CELL2_ID ID of cell 2

C_CELL3_ID ID of cell 3

C_CELL4_ID ID of cell 4

C_CELL1_CONTENT Cell contents 1

The cell contents themselves can be very

simple (for example only a number) or very

complex (for example for hierarchy nodes:

icons with expanded/collapsed URL and text).

C_CELL2_CONTENT Cell contents 2

C_CELL3_CONTENT Cell contents 3

C_CELL4_CONTENT Cell contents 4









Web API Reference BW 3.5 305

SAP Online Help 25.02.2005





C_CELL1_STYLE Style of cell 1

The style defines the color, font, font size,

distances, etc. of the cell. The styles are

defined in the Cascading Style Sheet. The

Cascading Style Sheet is assigned to the

template.

C_CELL2_STYLE Style of cell 2

C_CELL3_STYLE Style of cell 3

C_CELL4_STYLE Style of cell 4

C_CELL1_TD_EXTEND Extension of TD tag 1

Here you can set the properties such as the

width, height, alignment or color of the cell.

This parameter is not normally set because

many of the properties are already defined

when the style is defined.

C_CELL2_TD_EXTEND Extension of TD tag 2

C_CELL3_TD_EXTEND Extension of TD tag 3

C_CELL4_TD_EXTEND Extension of TD tag 4

C_CELL1_WIDTH Width of column 1

C_CELL2_WIDTH Width of column 2

C_CELL3_WIDTH Width of column 3

C_CELL4_WIDTH Width of column 4









Web API Reference BW 3.5 306

SAP Online Help 25.02.2005









Service Methods

Definition

Functional components of the table interface.



Use

Service methods are offered along with methods for manipulating cell contents [Seite 293]. You

need these when creating new cell contents.



Features

You can use the following service methods:

Creating Navigation URLs [Seite 308]

Information on the Navigation Status [Seite 309]

Information on a Specific Cell [Seite 311]

Symbols [Seite 313]

Sending Messages [Seite 314]

JavaScript Functions [Seite 315]

Determining Specific Attributes for the Table Interface [Seite 316]









Web API Reference BW 3.5 307

SAP Online Help 25.02.2005









Creating Navigation URLs

Use

You generate command URLs using the following method. This ensures that the request is sent

to the correct page instance of the current session.



Features

Method GET_URL

Importing parameter Description

I_R_PARAMETER Command parameter

The command parameter is transferred using

instances of the class CL_RSR_PARAMETER.

Use the methods in this class, for example,

ADD, to fill the parameter.

Returning parameter Description



R_URL Command URL



You can also use the following service methods:

Symbols [Seite 313]

Information on the Navigation Status [Seite 309]

Information on a Specific Cell [Seite 311]

Sending Messages [Seite 314]

JavaScript Functions [Seite 315]

Determining Specific Attributes for the Table Interface [Seite 316]









Web API Reference BW 3.5 308

SAP Online Help 25.02.2005









Information on the Navigation Status

Use

This method returns information on the current navigation status. You can call it up at any time.



Features

Method GET_STATE_INFOS

Exporting parameter Description

E_THX_AXIS_INFO Distribution of the structures,

characteristics and attributes on the axes

and their properties

For details about structures, see Dataset [Seite

284] and AXIS_INFO [Seite 285]

E_T_SLICER Dynamic filter

Filter that you can change in navigation and,

for example, see in the navigation block.

For details about tables, see Dataset [Seite

284] and Axis Data [Seite 287]







Unlike in the set, the

ATTRIBUTES component is not

offered.

E_T_TXT_SYMBOLS Query text element

The text element contains general information

(for example, the query key date), information

about the variable values and information for

fixing query filters.

For details about tables, see Dataset [Seite

284] and TXT_SYMBOLS [Seite 291]

In addition, you can use the following service methods:

Creating Navigation URLs [Seite 308]

Information on a Specific Cell [Seite 311]

Symbols [Seite 313]

Sending Messages [Seite 314]

JavaScript Functions [Seite 315]

Determining Specific Attributes for the Table Interface [Seite 316]









Web API Reference BW 3.5 309

SAP Online Help 25.02.2005









Web API Reference BW 3.5 310

SAP Online Help 25.02.2005









Information on a Specific Cell

Use

This method returns details for cells at a specific cell coordinate.



Prerequisites





You cannot call up this method in the START method.



Features

Method GET_CELL_INFO

Importing parameter Description

I_ROW Row co-ordinate of cell in table

I_COLUMN Column co-ordinate of cell in table

Exporting parameter Description

E_AXIS Axis of the cell

0 = on the columns, 1 = on the rows, -1

otherwise

E_DATA_ROW Data row

Row coordinate in data area This information is

important, for example, when jumping from one

report to another.

E_DATA_COLUMN Data column

Column coordinate in data area. This

information is important, for example, when

jumping from one report to another.

E_CELL_TYPE Type of cell

0 = Empty cell

1 = Data cell

2 = Structure component

3 = Characteristic value

4 = Characteristic header

5 = Display attribute value

6 = Display-attribute header

7 = Scaling factor

E_IOBJNM Characteristic/structure name

This parameter is filled only for cells of type 2,

3, 4, 5 and 6.

E_ATTRINM Display-attribute name

This parameter is filled only for cells of type 5

and 6.









Web API Reference BW 3.5 311

SAP Online Help 25.02.2005





E_T_CELL_RESTRICTIONS Cell Restrictions

Restrictions arising from the position of the cell

in the table. For example, there are restrictions

on the display of data cells on the axes.

For details about tables, see Dataset [Seite

T









284] and Axis Data [Seite 287]

T T T









Unlike in the set, the

ATTRIBUTES component is not

offered.

E_S_CELL_DATA Information about data cells

Information about data cells, for example, the

value of the data cell, is available from here.

For details about structures, see Dataset [Seite

T









284] and CELL_DATA [Seite 289]

T T T









You can also use the following service methods:

Creating Navigation URLs [Seite 308]

T T









Information on the Navigation Status [Seite 309]

T T









T Symbols [Seite 313] T









T Sending Messages [Seite 314] T









JavaScript Functions [Seite 315]

T T









T Determining Specific Attributes for the Table Interface [Seite 316] T









Web API Reference BW 3.5 312

SAP Online Help 25.02.2005









Symbols

Use

You use IMG tags in HTML for symbols. To fill the IMG tag attribute SRC, you need the path of

the symbol directory from the MIME Repository or the ITS. The following method returns this

path:



Features

Method GET_ICON_PATH

Returning parameter Description

R_PATH Path to symbol directory

You use this path in the HTML IMG tag for

SRC. You only need to enter the screen name.

You can also use the following service methods:

Creating Navigation URLs [Seite 308]

T T









Information on the Navigation Status [Seite 309]

T T









T Information on a Specific Cell [Seite 311] T









Sending Messages [Seite 314]

T T









JavaScript Functions [Seite 315]

T T









T Determining Specific Attributes for the Table Interface [Seite 316]T









Web API Reference BW 3.5 313

SAP Online Help 25.02.2005









Sending Messages

Use

You use the following method to send messages. These appear as a table at the start of the

HTML page. You mostly use this function to notify users of errors.



Features

Method SEND_MESSAGE

Importing parameter Description

I_CLASS Message class

I_TYPE Message type (I, W, E, A, X)

I_NUMBER Message number

I_MSGV1 Message variable value 1

I_MSGV2 Message variable value 2

I_MSGV3 Message variable value 3

I_MSGV4 Message variable value 4

You can also use the following service methods:

Creating Navigation URLs [Seite 308]

T T









Information on the Navigation Status [Seite 309]

T T









T Information on a Specific Cell [Seite 311]T









Symbols [Seite 313]

T T









T JavaScript Functions [Seite 315] T









T Determining Specific Attributes for the Table Interface [Seite 316]T









Web API Reference BW 3.5 314

SAP Online Help 25.02.2005









JavaScript Functions

Use

The following method enables you to manage JavaScript source code centrally. The source code

is set at the start of the HTML page. You can use this function to construct your own JavaScript

source code and, for example, call up manipulated cells from there.



Features

Methods SET_JAVASCRIPT_FUNCTION

Importing parameter Description

I_NAME Name of the section of source code

This name is unique. Any source code already

stored that has the same name is overwritten.

The name I_NAME is not the name of a

JavaScript function (see I_CODING).

I_CODING JavaScript source code

The source code I_CODING is the inner part of

the HTML tag script and can be the definition of

JavaScript functions (with function) and/or the

T T









definition of JavaScript variables (with var).

T T









The source code of one or more calls of the

method is collected and automatically

positioned at the beginning of the HTML page.

You can also use the following service methods:

Generate a Navigation URL [Seite 308]

T T









Information on the Navigational State [Seite 309]

T T









T Information on a Specific Cell [Seite 311] T









Symbols [Seite 313]

T T









T Sending Messages [Seite 314] T









Determining Specific Attributes for the Table-Interface [Seite 316]

T T









Web API Reference BW 3.5 315

SAP Online Help 25.02.2005









Determining Specific Attributes for the Table

Interface

Use

You need this method if you have defined your own attributes for an object tag for the table

interface. The basic table does not recognize these and are lost when you drilldown on a

bookmark if you do not do anything with them.

To make the Web application suitable for bookmarks, you have to use the following method to

make important attributes for your table interface known to the Web item.







We recommend that you call this method in the initialization (START method).



Features

Method SET_TABLE_INTERFACE_ATTRIBUTE

Importing parameter Description

I_ID Attribute name

I_VALUE Attribute value

You can also use the following service methods:

Creating Navigation URLs [Seite 308]

T T









Information on the Navigation Status [Seite 309]

T T









T Information on a Specific Cell [Seite 311] T









Symbols [Seite 313]

T T









T Sending Messages [Seite 314] T









JavaScript Functions [Seite 315]

T T









Web API Reference BW 3.5 316



Related docs
Other docs by deca50081
How to... Calculate with Attributes
Views: 21  |  Downloads: 0
delete change log BW 35 and BW 7
Views: 20  |  Downloads: 1
HowtoImplementcustomprocesstypes
Views: 0  |  Downloads: 0
wad update
Views: 44  |  Downloads: 1
Track2_session4
Views: 13  |  Downloads: 1
sapnote_0001369294
Views: 394  |  Downloads: 0
Nearline storage SAP BI Netweaver
Views: 35  |  Downloads: 2
DART
Views: 134  |  Downloads: 7