Entering content frameFunction documentation Selection and Sorting Locate the document in its SAP Library structure

Use

You use selection to restrict form data.

The Selections tab page enables you to retrieve sort information for InfoDimensions.

Prerequisites

You have used the MetaNet to create the InfoNet with a minimum of one InfoStar. The InfoStar contains a minimum of one InfoDimension.

Scope of Functions

To restrict the selected data still further, you can use the following types of selection:

You use this type of selection to restrict data selected from the logical database for payroll. You select the fields to be displayed on the selection screen of the generated print program. The values of these fields are variable, which means you do not specify these values until you start the print program.

If you position the cursor on the InfoNet node, the Selection Screen tab page appears. On the Selection Screen tab page, you select the required fields by clicking on the icon. Fields marked green appear on the subsequent selection screen, while fields marked red do not.

Example

You want to be able to enter the Payroll Area, Personnel Number, and Personnel Area fields on the print program selection screen.

In the standard system, the Payroll Area and Personnel Number fields are already selected for a new form.

You select the Personnel Area field too.

You use this type of selection to restrict the data of a specific InfoStar.

You use the function in an InfoStar for InfoDimensions and their keys. You fix the field values for the form. These values cannot be changed on the selection screen.

If you position the cursor on an InfoDimension and choose Insert Selection, the Selections tab page appears. You can restrict the key in an InfoStar for an InfoDimension by making a fixed selection.

Example

You want to enter a fixed restriction for the selection of wage types, and you only want to include wage type /101 Total Gross Amount in the InfoStar, rather than all of the wage types from the payroll results. Therefore, you only permit the value /101 in this InfoStar for the WAGETYPE InfoDimension and the WAGETYPE InfoField.

  1. In the overview tree for the InfoNet, select the WAGETYPE InfoDimension within the required InfoStar and then choose Insert Selection.
  2. On the Selections tab page, enter the value for wage type /101. Make sure that the correct key field, namely WAGETYPE, is selected.
  3. Choose This graphic is explained in the accompanying text Save.

Caution

After you have made these changes, you must regenerate the ABAP Dictionary structures and print program.

The Selections tab page also enables you to include sort information for InfoDimensions in the form. Using the Sort column, you enter the required order of entries to be sorted. To sort table entries in the SmartForm, you use the sort fields contained in the ABAP Dictionary structure.

Example

You want to include wage types /101, MA10, and /559 in the PAY_RESULT InfoStar, and then print them on the form in this order.

  1. In the overview tree for the InfoNet, select the WAGETYPE InfoDimension and then choose Insert Selection.
  2. The Selections tab page appears.

  3. Use the Value of column on the Selections tab page to enter wage types /101, MA10, and /559.
  4. Use the Sort column to enter the following values:
  1. Choose This graphic is explained in the accompanying text Save and then the layout function.
  2. In the Smart Form, enter the WAGETYPE_SORT-WAGETYPE field as a sort criterion for the HRDATA_STAR_PAY_RESULT table loop.

 

 

Leaving content frame