Entering content frameFunction documentation Default Parameter Value Determination Locate the document in its SAP Library structure

Use

This function allows you to predefine parameter symbols for reports with data: the default parameter values. If a report is displayed or printed out, you save time and effort spent on manual data entry. The parameter symbols are divided in Customizing into report symbol groups that group the symbols according to application areas. For the report symbol groups, standard function modules are delivered that are used to determine the default parameter values and that you can modify as required.

You can edit data that was selected by default parameter value determination in report management and in the report information system before generating reports. The edited data is saved temporarily and is then available in the current transaction.

The key values from the corresponding SAP objects must be known for default parameter value determination. The availability of the key values depends on at what point in time or from which SAP component default parameter value determination is called. The default parameter values must be completed at the latest for report shipping.

Example

In the following example, default parameter values are determined step by step:

Prerequisites

To set up default parameter value determination for a new symbol group, you proceed as follows:

In the IMG activity Specify Report Symbol Groups you create a new report symbol group.

The report symbols that are to belong to the new report symbol group can relate to table fields or class characteristics.

    1. Define table fields and class characteristics
    2. Define table fields: In the IMG activity Specify R/3 Tables for Report Symbol Generation enter the required tables. If necessary you can also specify which fields symbol generation should be restricted to.

      Define class characteristics: For more information on creating class characteristics, see Creating Characteristic Fields in EH&S.

    3. Generate symbols
    4. The master data matchup function offers an automatic symbol generation function for report symbols of the report symbol group 02 (see also the IMG activity Create Report Symbols). The parameter symbols in other report symbol groups are delivered with their symbol definition. If you create your own symbol groups you must therefore create the symbols for them manually.

    5. Check and specify reports symbols

In the IMG activity Check and Specify Report Symbols, you check the report symbols and their assignment to the report symbol group.

If you want to output structural interdependencies between parameter objects on the report, proceed as follows:

    1. In the IMG activity Specify Parameter Objects define the required parameter objects.
    2. In the IMG activity Specify Parameter Hierarchies define the required parameter hierarchy for the parameter objects, and assign the required report symbol group to the parameter hierarchy. By means of this assignment you specify which determination function module is used to select the data for the parameter hierarchy.

Program the function module that is to determine the default parameter values for the report symbol group, and enter the key of your determination function module in the IMG activity Specify Report Symbol Groups for the report symbol group (see Default Parameter Value Table for the Structure CVDDP and Interface for Determining Default Parameter Values).

If the report symbol group contains symbols for a particular report application, assign the key for the report application to the report symbol group.

Result

The determined default parameter values can be edited in report management, in the report information system, and in the screen for the Report from Template function (see Editing Default Parameter Values).

Features

Main Program for Determining Default Parameter Values

Assignment of the Determination Function Modules to Report Symbol Groups

The report symbol groups group symbols according to their area of application. The default parameter values are determined differently depending on the report symbol group:

For default parameter value determination, a standard function module is assigned to the relevant report symbol groups.

Identification of the Key Values

The key values that the function module requires for determining the default parameter values are predefined by the OBJECT and ATTRIB fields of a table in the structure CVDDP. The default parameter values determined are also transferred to report generation in the table in the structure CVDDP.

Example

In the case of the report symbol group for determining the material name, the key value is the material number. This is specified by the object ID CVDMAT and the attribute ID MATNR. The material name is selected from the material master using the value of the material number. The selected default parameter value is stored in a table in the structure CVDDP as follows:

Field

Value

OBJECT

CVDMAT

ATTRIB

MATNAM

ORD

1

VALUETYPE

1

VALUE

Gold paint

Assignment of the Default Parameter Values to the Report Symbol

By comparing the combination of OBJECT and ATTRIB values with the symbol definition in Customizing, the default parameter value can be assigned to the correct report symbol during report generation. As a report symbol of the type Parameter is specified either by a table field or by a class characteristic, the OBJECT and ATTRIB information corresponds to the table and field information or the class and characteristic information from the symbol definition.

This graphic is explained in the accompanying text

Example

In the above example, the system finds the table/field combination CVDMAT/MATNAM for the report symbol EHS_MATNAM (see the IMG activity Check and Specify Report Symbols). The selected value is therefore output for the report symbol EHS_MATNAM during report generation.

Indicators in the Structure CVDDP (Parameter Values for Report Shipping)

Using indicators you can specify which of the following are necessary for a default parameter value, for example:

If a suitable default parameter value is found, the system checks first whether the value was changed manually. If this is the case, the Parameter Value Is Used in Report indicator is set and the value is transferred to the return table.

If the Parameter Value Was Changed Manually indicator is not set, the system checks whether the Parameter Value is Temporary Default Parameter Value indicator is set. If this is the case, the value is determined once again.

If the Parameter Value is Temporary Default Parameter Value indicator is not set, the system checks whether the value is initial, depending on the value category. If this is the case, the value is also determined once again. If the value is not initial, the Parameter Value Is Used in Report indicator is set and the value is transferred to the return table.

Division of the Default Parameter Values into Value Categories

The default parameter value can have one of the following value categories:

Value Category

Description of Corresponding Default Parameter Value

1

String (any sequence of characters)

2

SAPscript text key (long text)

3

File name

4

Document from SAP component Document Management (DMS document)

5

Phrase (logical key of a phrase, made up of library key and phrase key (CATPIN-PHRID)

Note

For the value categories 2 (SAPscript text key) and 4 (DMS document), the value comprises a key that is made up of several key fields. In the screen for editing the default parameter values, you can enter these object keys separately using the input help.

An input help also exists for value category 5. The input help for value category 1 depends on whether the underlying data dictionary field has an input help. Value category 3 (file) does not have an input help.

Independent of the value category, the ordinal numbers (ORD field) are displayed for the individual values of parameters that can have multiple values assigned. This ordinal number is at the same time also the sort sequence for the output of the individual values in the report (see also Editing Default Parameter Values).

EH&S Native Language Support

EH&S Native Language Support conversion is performed for the language-dependent default parameter values.

Taking Language and Validity Area into Account

For each symbol, the language and validity area can be transferred from the determination function module to report generation. In the dialog, the language and validity area are displayed for each parameter. An empty language field means that the value is valid for all languages. An empty validity area field means that the value is valid for all validity areas.

The system takes the interdependency of language and validity area into account in the following way:

  1. The system checks whether the required language (report language) and the required validity area based on the generation variant apply for the default parameter value. The check also takes into account the usage check that you can specify for the generation variant.
  2. The system checks whether the validity area applies for the default parameter values that are independent of the language (where no language is specified).
  3. The system checks whether the language applies for the default parameter values that are independent of the validity area.
  4. The system checks whether there are default parameter values that are independent of the language and validity area. Here a value must be found whose table/field information or class/characteristic information corresponds to the OBJECT and ATTRIB information in the CVDDP table.

Parameter Hierarchies

Using parameter hierarchies you can define structural interdependencies between parameter objects.

Parameter Value Screen

The screen comprises header information at the top and a variable section where you display and edit the parameter values.

The header information displays the following data:

The variable section contains the default values that have been determined and transferred to the screen. In addition to the field text and the default parameter value, the sort sequence and the value category, and, if relevant, the validity area and language are displayed for each value.

See also Editing Default Parameter Values.

 

 

 

 

Leaving content frame