Ansicht
Dokumentation

RPUCTPM0 - Generation of Transfer Dates for Special Payroll

RPUCTPM0 - Generation of Transfer Dates for Special Payroll

CL_GUI_FRONTEND_SERVICES - Frontend Services   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Description

Relevance to the payroll process:

If you run payroll, that is program RPCALCx0 or HxxCALC0, the payroll area is transferred as a selection parameter and the current payroll period is determined from the control record. If validation of the control record is not active in the schema in a test system, you must also specify the payroll period and the year on the selection screen. These two parameters, the payroll area and the payroll period, must now be used to determine the actual date of the period. The infotypes are read, for example, based on the actual date of the payroll period.

The actual date is determined using the information in the following tables:

In T549A, a period parameter and a date modifier is assigned to each payroll area. The period parameter determines whether you run payroll monthly, twice monthly, weekly, or every few weeks. You can choose which values are selected for the parameter, with one exception; 01 is predefined for monthly periods. Each period parameter you use must be assigned to a time unit in table T549R. The values for the time units are fixed (monthly, twice monthly, weekly, every two weeks, every four weeks, annually).

Table T549Q must contain the start and end dates for each period parameter for all payroll periods.

In addition, table T549S must contain one or more date specifications for all payroll periods. The date specifications are distinguished by date identifiers (date ID). In each case, the date ID 01 represents the payday of the payroll period.
As a minimum requirement, you must have maintained this date for each payroll period.

You use program RPUCTP00 to generate the entries in table T549Q and T549S automatically. Depending on the period parameter, the program determines all periods that fall within the specified time interval, with start and end dates. The payday is also determined, using a rule that you also enter as a parameter.

The tables T549Q and T549S are extended to include these entries: in T549Q the new periods are inserted with their start and end dates and in T549S the payday, with the date identifier 01, is generated for each period.

If you run the program, you must enter the following parameters on the selection screen:

User parameter for the country grouping, if this has not already been maintained. If you do not enter a value, the program terminates.

Period parameter and date identifier: Modifiers for the payroll periods for which table entries are being generated.

Start date: Date on which the first period to be generated begins. For a monthly period parameter, this is normally the first day of the month. You can specify any other date, however, which applies in particular for weekly periods.

Final year: Entries are generated up to the last period in the year you specify here.

Start of tax year: This parameter specifies the day of the year on which the tax year begins. For the majority of country groupings, 0101 is proposed as the default value because January 1 is the most usual date. For Great Britain, 0406 is proposed because the tax year begins on April 6. In South Africa the tax year begins on March 1, in New Zealand on April 1, and in Australia on July 1. These values are also proposed as defaults.

Payday rule, Number of days: These fields determine how the payday for the period is calculated. You can choose from the following payday rules:

"1" : The number of days is added to the start date of the period.

"2" : The number of days is deducted from the end date of the period.

"3" : The number of days is added to the end date of the period.

"4" : For monthly periods only. The number of days represents the calendar date for the payday.

Tax year identification: This parameter is only displayed for Great Britain. The tax year continues after the start of a new calendar year, which means you must specify whether the first or second calendar year identifies the payroll period. You can enter one of the following:

"1" : The first year is used for identification

"2" : The second year is used for identification

For more information, see the field help for this parameter on the selection screen.

Determine period number: You can use this field to determine which date in the payroll period is used to calculate the period number. You can enter one of the following:

" " = Period number is determined according to date of payday

"1" = Period number is determined according to START date of period

"2" : Period number is determined according to END date of period

These three alternatives produce particularly different results if the the payday falls outside the payroll period. Example: The monthly period begins on 01.01.1996 and ends on 31.01.1996, and the payday falls three days after the end date, on 03.02.1996. If the period number is determined based on the payday, the period is assigned number 02 because the payday is in February, that is in the second month. If the start or end date of the period is used to calculate the period number, number 01 is assigned.

Carry out table change: The tables are only extended to include the new entries if you select this option. Otherwise the program performs a test run.

To ensure the complete maintenance of tables T549Q and T549S, the program must be run once for each combination of period parameter and date modifier in table T549A and, optimally, for a few years in advance. Since the majority of countries only use monthly periods, the period parameter 01 and the date modifier 00 are proposed as default values. You must only run the program once for these countries.

The views V_T549A, V_T549Q, V_T549S, and V_T549R exist for these tables. You can call them using transaction SM30.

Requirements

All the payroll areas used in payroll must be entered in table T549A and assigned a period parameter and date modifier.

Each period parameter you use must be entered in table T549R, which enables it to be assigned a time unit.

Output

For the modifiers entered as selection parameters, the program generates one entry in tables T549Q and T549S for each period in the selected time interval. T549Q stores the start and end dates of the periods. T549S stores the payday of the period.

The output list displays the new, generated date specifications for the payroll periods.

If you do not select the option for carrying out the table change, the output list is displayed but the new entries are not inserted in tables T549Q and T549S.

Example

You want to generate payroll periods for the years 1995 to 1999 for period parameter 01 (monthly) and date modifier 00. You want the payday to fall 3 days before the end of the period and the period number to be calculated based on the end date of the period.

You must enter the following data for the parameters:

Period parameter 01

Date modifier 00

Start date 01.01.1995

Final year 1999

Start of tax year 0101

Payday rule 2

Number of days 3

Determine period number 2






General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 7709 Date: 20240601 Time: 161816     sap01-206 ( 151 ms )