Start of Content Area

Procedure documentation Displaying XML  Locate the document in its SAP Library structure

Use

Displaying the XML is the first step in using path replacement to dynamically parameterize commands and Web items.

Prerequisites

To determine a value, the path is to be determined in XML. This requires that the internal XML structure can be viewed. There are three ways in which this can be done (see the following section).

Procedure

...

       1.      Insert the Data Provider - Information Web item for navigational states and result sets

Insert the Data Provider - Information Web item into your Web template to determine the path for the data provider replacement. In the source code for the executed Web application, search for the XML tree starting with <BICS_VIEW>.

       2.      Insert a Web item for the current Web item states

If required, insert the Web item from which you want to determine the dynamic parameter value into your Web template. Set the relevant parameters and take a look at the tree structure in the XHTML view of the Web Application Designer. The XHTML view does not fully comply with the required path notation. Note therefore the examples below.

       3.      Insert the URL parameter &debug=x for all elements

If you insert the URL parameter &debug=x when calling the Web application, the following additional messages are displayed. Select the message "XML path..." to display the long text. The long text contains the internal XML structure.

Using the URL parameter &debug=x is the easiest way of viewing the XML. For the "XML path..." message to be displayed, the Web template must already contain a path query.

Set the following paths in your Web template to ensure that the message with the XML for the relevant element is displayed (DATA_PROVIDER_NAME> and <WEB_ITEM_NAME> are the technical names of the required data provider or Web item):

       For data providers

path="DATA_PROVIDER:<DATA_PROVIDER_NAME>?/BICS_VIEW"

       For Web items

path="ITEM:<WEB_ITEM_NAME>?/ITEM"

       For variables

path="VARIABLE_CONTAINER?/VARIABLES"

       For the page of a Web application

path="PAGE?/PAGE"

For more information about setting paths, see Using Paths.

Note

Every Web item has the parameter description (CAPTION). Simply temporarily replace the value attribute in <bi:CAPTION value="..."> with the path attribute  <bi:CAPTION path="...">.

Using the XML; you can determine the path for the value of a parameter.

Result

You have read and displayed the XML with which you can determine the path for the value of a parameter.

More information:

Determining Paths

 

 

End of Content Area