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

Purpose
You can use this pre-report to generate lists in the subsequent reportthat are sorted according to the country and postal code of the relevantemployee.

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 (HRmaster data) to determine employee data do not usually include sortingaccording to the postal code of the respective employee.
    This pre-report enables this type of sorting as follows:
    the addresses of the selected employees are determined
    the personnel numbers are sorted (for example by country and postal code
    )
    the subsequent report is accessed by this sorted personnel number list

    Prerequisites
    You need a variant for the subsequent report (for example, to restrictemployees to a particular payroll area). However, this variant may nothave a search help.

    Features
    For multiple address types (permanent residence, temporary residence,and so on), the featureADDRS determinesa sequence in which the employee addresses used for sorting are searchedfor.
    The report can also be installed in a Process model of theprocess manager instead of the subsequent report. However, thepersonnel number sorting is only valid for the respective subsequentreport. 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 tocountry and postal code (for example, the remuneration statementRPCEDTD0).

    Variant Name
    Enter a subsequent report variant (for example, for choosing the form inthe remuneration statement) directly, or use the Maintain Variantpushbutton to create a new subsequent report variant.
    If you directly enter a variant, all the variants of the subsequent repo
    rt to be accessed are available in an input help.
    You can also use the Maintain Variant pushbutton to access thesubsequent report (with the selected variant) to look at the additionalvariant 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 inascending order according to personnel numbers or also according to datafrom the Organizational Assignment infotype (PS0001). You can usethis parameter to also use the fields of the Addresses infotype(PS0006) for sorting. You can use the Change pushbutton to changethe sort sequence.
    Sorting specified in the subsequent report variant is also taken intoaccount, but only after the sort sequence in the pre-report. Sortingaccording to ascending personnel numbers is always last, even if this isnot specified.
    Example:
    The pre-report has the sort sequence 'LAND1/PSTLZ' and sorting accordingto employee subgroup is specified in the subsequent report variant. Thelist is then sorted in ascending order according to country, postalcode, employee subgroup and personnel number, in this sequence.

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

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

    Report Category
    You can enter the Report Categorythat is used in theADDRS feature todifferentiate between various subtype sequences for formatting addresses
    . The report category name is usually composed of characters 3-6 of therespective report name.
    Example:
    Remuneration statement RPCEDTD0 => report category CEDT
    You can use the Maintain Feature pushbutton to maintain theADDRS 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 usefulto access a report that does not use the same database.
    Specify Variant
    Even if in particular cases no variant is required for the subsequentreport, 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. Therefor
    e the pre-report sorting is invalidated. Remove the search help from therespective variant.
    Sort Field $ Unknown.
    Check the entry for typing errors. Usually, only fields from theinfotypes 0006 (Address) and 0001 (Organizational Assignment ) arepermitted.
    Variant $ Unknown or Incorrect
    Check the variant. It is possibly obsolete or written incorrectly.