SAP Program RPU31HXX - HR: Fill New Currency Fields

Description

General description
Report program RPU31HXX makes person-related currency adjustments inall clients except '000' for the following infotypes:

  • PA0037

  • PA0045

  • PA0078

  • In release 3.1H, a new currency field has been added to the aboveinfotypes. Program RPU31HXX fills the new currency field in theseinfotypes with the company code currency which is valid for the personin question.
    Note:
    When you run the program, existing currency fields are changed in theinfotypes.

    Internal report description
    Program RPU31HXX executes the following actions for all clients in T000except '000'.
    The program fills the internal tables BUKRS_PERNR and BUKRS_WAERS withentries from PA0001 and T001 respectively.
    BUKRS_PERNR: All personnel numbers and relevant company codes.
    BUKRS_WAERS: All company codes and relevant currencies.
    These two tables are then used to set up the internal tableWAERS_PERNR. The program recognizes and outputs the following errors:

    • A personnel number which has been assigned an invalid company code (no
    • entry in table T001).
      • A personnel number which has been assigned several company codes with
      • different currencies. The personnel number is stored in the tableWAERS_PERNR with only the first (in alphabetical order) currency.
        WAERS_PERNR: All personnel numbers and relevant currencies.
        The RANGE table RANGE_PERNR is then filled for each currency in theWAERS_PERNR. The RANGE table contains all personnel numbers for thiscurrency.
        RANGE_PERNR: All personnel numbers for a currency.
        The RANGE table RANGE_PERNR then fills all the infotypes to beconverted with the current currency ACT_WAERS = WAERS_PERNR-WAERS.

        Output
        The report program outputs the following log messages:

        • "Start XPRA RPU31HXX in client:" "mmm" " " " "

        • (Information message)
          Program RPU31HXX will begin processing client mmm.
          • Invalid company code "xxxx"

          • (Error message)
            In the client it has just processed, the program has found personnelnumbers which are assigned to company code xxxx. No entry exists intable T001 for this company code. Following this message, the programoutputs a log listing all relevant personnel numbers.
            • "-> Invalid company code (xxxx) for pers. no.:" "pppppppp" " " " "


            • (Error message)
              Personnel number pppppppp has no valid company codes. Infotype recordswhich may exist for this personnel number are not filled with the newcurrency.
              • Different company code currencies for one personnel number

              • (Error message)
                In the client it has just processed, the program has found personnelnumbers in several company codes with different currencies. Followingthis message, the program outputs a log listing all relevant personnelnumbers.
                • "-> Different company code currencies for pers.no.:" "pppppppp"
                • "c1" "c2"
                  (Error message)
                  Personnel number pppppppp is assigned several company codes withdifferent currencies (c1 and c2). The program uses the first (inalphabetical order) currency (c1) for conversion.
                  • "x entries converted (table, currency):" "PAnnnn" "ccc" " "

                  • (Success message)
                    In infotype PAnnnn, x records were converted to the currency ccc.