Ansicht
Dokumentation

H99_PRESORT_PERNR - Presorting (for Example by Country and Postcode) for Subsequent Report

H99_PRESORT_PERNR - Presorting (for Example by Country and Postcode) for Subsequent Report

Addresses (Business Address Services)   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

You can use this pre-report to generate lists in the subsequent report that are sorted according to the country and postal code of the relevant employee.

The following subsequent reports, for example, are possible:

  • RPCEDTD0 (Remuneration statements)
  • RPCKTOD0 (Payroll accounts)
  • RPCD3MD0 (DETR Messages)
  • RPCTXMD0 (Employment tax statements)
  • RPCAVAD0 (BAV Value of entitlements)
  • and so on

Description

The settings options of a report that uses the logical database PNP (HR master data) to determine employee data do not usually include sorting according to the postal code of the respective employee.

This pre-report enables this type of sorting as follows:

  1. the addresses of the selected employees are determined
  2. the personnel numbers are sorted (for example by country and postal code)
  3. the subsequent report is accessed by this sorted personnel number list

Prerequisites

You need a variant for the subsequent report (for example, to restrict employees to a particular payroll area). However, this variant may not have a search help.

Features

For multiple address types (permanent residence, temporary residence, and so on), the feature ADDRS determines a sequence in which the employee addresses used for sorting are searched for.

The report can also be installed in a Process model of the process manager instead of the subsequent report. However, the personnel number sorting is only valid for the respective subsequent report. Additional reports in the process manager must, where necessary, also be replaced by appropriately accessing the pre-report.

Selection

In the Parameters group box, make the necessary settings.

Report Name

Enter the subsequent report whose output is to be sorted according to country and postal code (for example, the remuneration statement RPCEDTD0).

Variant Name

Enter a subsequent report variant (for example, for choosing the form in the remuneration statement) directly, or use the Maintain Variant pushbutton to create a new subsequent report variant.

If you directly enter a variant, all the variants of the subsequent report to be accessed are available in an input help.

You can also use the Maintain Variant pushbutton to access the subsequent report (with the selected variant) to look at the additional variant data, to maintain to check it.

After ending the subsequent report you return to the pre-report.

Sort Sequence

Sorting by reports that use the logical database PNP is usually in ascending order according to personnel numbers or also according to data from the Organizational Assignment infotype (PS0001). You can use this parameter to also use the fields of the Addresses infotype (PS0006) for sorting. You can use the Change pushbutton to change the sort sequence.

Sorting specified in the subsequent report variant is also taken into account, but only after the sort sequence in the pre-report. Sorting according to ascending personnel numbers is always last, even if this is not specified.

Example:
The pre-report has the sort sequence 'LAND1/PSTLZ' and sorting according to employee subgroup is specified in the subsequent report variant. The list is then sorted in ascending order according to country, postal code, employee subgroup and personnel number, in this sequence.

Output Device

For accessing in the batch, the output device is chosen according to the user profile of the user in which the job was started. You can use this parameter to override this.

Key Date (Optional)

The address valid on the key date is searched for. If there is no entry in this field, the current date is used (SY-DATUM).

Report Category

You can enter the Report Categorythat is used in the ADDRS feature to differentiate between various subtype sequences for formatting addresses. The report category name is usually composed of characters 3-6 of the respective report name.

Example:
Remuneration statement RPCEDTD0 => report category CEDT

You can use the Maintain Feature pushbutton to maintain the ADDRS feature.

Error Messages

Unpermitted Recursive Call
The report cannot access itself as the subsequent report.
Report $ Not Found (TRDIR).
Check the spelling. Can you use transaction SA38 to execute the report?
Report $ Cannot Be Executed
For example, includes cannot be accessed as a subsequent report.
Report $ Does Not Use Database PNP
As the logical database PNP Vise used for presorting, it is not useful to access a report that does not use the same database.
Specify Variant
Even if in particular cases no variant is required for the subsequent report, a variant must be specified in the pre-report.
Search Help Not Permitted in Variant $
The subsequent report has a search help entered in its variant. Therefore the pre-report sorting is invalidated. Remove the search help from the respective variant.
Sort Field $ Unknown.
Check the entry for typing errors. Usually, only fields from the infotypes 0006 (Address) and 0001 (Organizational Assignment ) are permitted.
Variant $ Unknown or Incorrect
Check the variant. It is possibly obsolete or written incorrectly.





BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 6666 Date: 20240531 Time: 062020     sap01-206 ( 121 ms )