Configuration of commands SAP BI

The commands option within the WAD is not really a Web item, nor is it something that is available on its own. It’s an additional component of a number of different Web items. During the configuration of a particular Web item, such as a Button Group, you would use a command. There are many different commands for both the Web reports and the planning process. There are over 50 of these commands and they are closely connected, but we will focus on just the Web-related commands to see what they can do for us in terms of improving the dashboard’s functionality and final results. In the WAD, the command wizard is the main tool for creating commands from the Web Design API. You can use it tocreate commands easily by following a step-by-step procedure and include them in your Web template, enabling you to create highly individual Web applications with BI content. There are a number of approaches to making a command available in the Web template and dashboard that you are creating:

  • Use the normal button format available.
  • Create a hypertext link to execute a command process.
  • Set up the command to be executed via a context menu.

Fortunately, the command wizard is available to guide you through the process. This means that manual entry of commands into Web templates is not required. In the command wizard, all of the parameters available for each command are listed so that they can also be set directly there. You also see a description for each command and each parameter directly in the command wizard. Many of the commands that are available are duplicates of the functionality that exists either in one of the other templates or in some form on the Web screens already in either a context menu from a right-click or from the standard Web template. Recall that we looked at some commands that are available in the standard template 0ANALYSIS_PATTERN. Here we may go over some similar commands and they will sound redundant but are definitely unique.

1.Integration
The command wizard is part of the WAD and does not require any additional installation. You usually call the command wizard in the WAD from the Web item parameter Action (Command Triggered) (ACTION). You would normally look to use the commands with a Web item such as a Button Group. Within the Button Group you would click the Button configuration and within the Properties tab the Action - Command would be available. Numerous Web items allow you to access the command wizard. For example, if you insert a hyperlink into the Web template, you can also call the command wizard in the dialog box that follows by clicking the button next to the text-entry field.

You can create commands for data providers, planning applications, Web items, and Web templates. The command wizard provides you with two views for working with and creating commands:

  • Favorite Commands Includes all commands that you have marked as favorites.
  • All Commands Includes all commands that are available to you, sorted according to the various command groups.

As mentioned, we will focus on the commands for the Web type area rather than all of them. The configuration is reasonably straightforward, and the best example of this would be the standard default template that controls most of the initial Web Analyzer reports, 0ANALYSIS_PATTERN. We can see just about all of the different commands being used in that one template. We will take a look at one of them to show you the general pattern of setting up commands. Keep in mind that these commands are a bit more basic than the ones you would encounter if you were using the planning commands, where you are actually executing saves to data, calculations to be executed, and so forth. With the BEx reporting commands, we are basically executing a switch in the display of data that is currently available and offering a different view. The next illustration shows the 0ANALYSIS_PATTERN standard business content template, which controls many different reports.

Configuration of commands

This template displays most of the commands that you see in the initial screen for each Web Analyzer report. As a quick example, if you were to execute just one of the basic reports, you would see all the commands on the toolbar, as shown here (and don’t forget about the commands in the filters and settings portion of the report).

Configuration of commands

2.Commands for Web Items
Under Commands for Web Items, all the commands that you can use to change the status of a Web item are displayed. They are all available in numerous locations on the Web report, but the use of the command buttons will allow the business user to just click the button on the screen. There are six different standard commands that you can use and apply to the Web items, described next.

Call Chart Properties Dialog
Using the Call Chart Properties Dialog command (OPEN_ CHART _DIALOG), you can call the Chart Properties dialog box at run time for a Web application. The parameter in Table requires configuration within the process of setting up the command parameters when you insert the command.

Command Parameter for Call Chart Properties Dialog

Command Parameter for Call Chart Properties Dialog

For this first command, I will show you how to configure it. The configuration process for the other commands in the list is very similar, so you can go through and experiment with this process on your own.

Go into the WAD and use the Call Chart Properties Dialog command to display the Chart Properties. The initial step is to have a chart available, so we add a basic chart to this Web template, as shown next.

configuration process for the other commands

Now we can see that we’ve added the button group to include the command above. This can be seen from the next illustration in the Edit Parameter screen.

Edit Parameter screen

In this illustration you will see three dialog boxes, one for the button, one to assign the OPEN_CHART_DIALOG command, and finally the dropdown to attach the CHART_ITEM_1. The end result of this process is that we see the button for the Chart Type when we execute the Web report. This is shown in the following illustration.

button for the Chart Type

Finally, the result of clicking this button is shown in the following illustration. So, rather than having to use the context menu for the Settings area, we can use this button to make the process more transparent and direct for the business user. These are the types of items that will make your dashboards more functional and user-friendly.

types of items that will make your dashboards

Call Properties Dialog
The Call Properties Dialog command (OPEN_DIALOG_PROPERTIES_PANE) allows you to call the Properties dialog box to change the following elements at run time in a Web application: Web item parameters, properties of data providers, conditions, exceptions, characteristic properties, axis, data cells, and structure elements. Table lists and describes the command parameters in the same sequence that they appear in the command wizard when you insert the command.

Parameters of the Call Dialog Properties Command

Parameters of the Call Dialog Properties Command

Setting Web Item Parameters
You use the Set Web Item Parameters command (SET_ITEM_PARAMETERS) to specify the parameters of a Web item at run time of a Web application. Table lists and describes the command parameter in the command wizard when you insert the command.

If you select the Change Object Type (Standard) check box above the Target Web Item parameter, you make it possible at Web application run time to change to another Web item that you have selected under Type of Web Item.

Parameter for the Web Item Parameter Command

Parameter for the Web Item Parameter Command

Back to Initial State
Using the Back to Initial State command (BACK_TO_INITIAL_ITEM_STATE), you can restore a Web item in a Web application to its original state. If you use this command with the Web Template dialog box, the initial state is the display that existed when the dialog box was first opened. Table lists and describes the command parameters in the same sequence that they appear in the command wizard when you insert the command.

Parameters for the Back to Initial State Command

Parameters for the Back to Initial State Command

Back to Previous State
Using the Back to Previous State command (BACK_TO_PREVIOUS_ITEM_STATE), you can return to the last navigation step for a Web item in a Web application. Table lists and describes the command parameters when you insert the command.

Parameters for the Back to Previous State Command

Parameters for the Back to Previous State Command

Set Status of Module
The Set Status of Module Command (SET_MODULE_STATE) allows you to activate or
deactivate a module from Web item Analysis at runtime in a Web application. Depending on the settings in the module, this changes the standard display or the standard behavior of Web item Analysis. The parameters to set up this function are listed and described in Table.

Parameters for Set Status of Module Command

Parameters for Set Status of Module Command

3.Commands for Web Templates
These commands are also found in the standard Web template 0ANALYSIS_PATTERN. There is very little difference between these commands and what you read in the preceding “Commands for Web Items” section. Just as the name conveys, these commands are for the actual Web template, whereas the other commands were for specific parts of the Web items. The commands for Web templates that you can create with the command wizard are listed and described in Table, along with their parameters.

List of Commands for Web Templates

List of Commands for Web Templates

List of Commands for Web Templates

List of Commands for Web Templates

List of Commands for Web Templates

List of Commands for Web Templates

List of Commands for Web Templates

4.Commands for Data Providers
Under the commands for data providers, you can find a summary of all commands you can use to change the status of a data provider. You can use these commands to set filter values, set report-report interface (RRI) filters, reset displays with zero values, or change the navigational state of a data provider. There are over 50 different commands for data providers. We will be using some of them in our dashboards, so we will cover those specific commands in the following chapter when we use them.

Customization Using ABAP Classes
In some cases, the standard Web items and commands will not be sufficient and you will have to resort to creating customized commands and/or Web items. This practice was much more mainstream in the earlier versions of BI such as 2.1 and 3.0 because the Web functionality was very light, but now we have 100 percent more functionality and flexibility, so you should definitely look to use the standard components before you decide to create customized ABAP classes.

If necessary, Web designers and ABAP programmers can use the Custom Extension Web item to realize highly individualized Web applications. This Web item enables the display of information based on the current navigational state or the result set of a data provider. ABAP function modules can be used to read data from other sources and data from other SAP systems can be read using Remote Function Calls (RFC). In addition, the status of a data provider can be used as an input parameter when calling the ABAP function modules. You can use the Custom Extension Web item to render your own HTML, whether based on a data provider or completely freeform. In addition, you can use this Web item to insert JavaScript into Web templates. Some reasons why you would use a customized ABAP class and Web item might be

  • Use of the current navigational state (including any variables) and/or the result set of one or more data providers
  • Use of Web item parameters defined in the Web template; these parameters can be changed using commands
  • Output of all information that can be called using ABAP and Remote Function Calls (RFC), such as information from databases or other SAP systems

Analysis Web Item: Using Parameter Modification
In some cases, you may want to adjust the Analysis Web item for specific formatting instead of using the standard default formatting. This is possible by using the Modification parameter in the Analysis Web item. You can find this option within the Internal Display in the Web Item Parameter screen. You can use the Modification parameter to change the default display and behavior. You can modify the table structure and the table cells. The Modification parameter
provides modules whose use can be controlled using additional parameters. This function enables you to use similar options to those available in earlier releases with the Web Design API for Tables. Unlike the Web Design API for Tables, modifications enable you to make targeted changes to the display and behavior without any programming.

Making modifications to the Analysis Web item has some prerequisites. The main prerequisite is that the modules must be implemented in Java. The SAP Basis infrastructure in SAP NetWeaver 7.0 does not support any customer modifications or extensions to Java coding. Customers are therefore not able to develop their own modules for modifications to the Analysis Web item. In this case, SAP delivers a number of sample modules. You can use parameters to modify the display and behavior of these modules.



Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SAP BI Topics