SAP ABAP Class CL_HR_PAYROLL_MAIN (Main routine RPCALCx0)
Hierarchy
☛
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
⤷
PY-XX (Application Component) Payroll: General Parts
⤷
PCAL (Package) SAP HR Payroll Application Development
⤷
⤷
Properties
| Class | CL_HR_PAYROLL_MAIN | |
| Short Description | Main routine RPCALCx0 | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | P | SAP Standard Production Program |
| Category | 0 | |
| Package | PCAL | SAP HR Payroll Application Development |
| Created | 20000306 | SAP |
| Last change | 20060208 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_HR_PAYROLL_MAIN has no interface implemented.
Friends
Class CL_HR_PAYROLL_MAIN has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Type reference (TYPE) | D | PN-BEGDA | 20000307 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | MOLGA | Country Grouping | 20050721 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | SY-REPID | Program for country exit | 20000306 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | BONUS_TAB | Table of bonuses | 20041112 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | D | PN-ENDDA (changed by SET_PAYROLL_ENDDA) | 20000307 | |||
| 6 | Constant | Public | Type reference (TYPE) | D | '99991231' | High date | 20000307 | ||
| 7 | Instance attribute | Private | Type reference (TYPE) | BONUS_TAB | Table of bonuses | 20000306 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | ABKRS | Leading payroll area | 20000418 | |||
| 9 | Constant | Public | Type reference (TYPE) | D | '18000101' | Low date | 20000307 | ||
| 10 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_HR_PAYROLL_MAIN | Pointer to main object | 20000317 | |||
| 11 | Instance attribute | Private | Type reference (TYPE) | TIM_P0000_TAB | IT0000 | 20000306 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | P0001_TAB | IT0001 | 20000306 | |||
| 13 | Instance attribute | Private | Type reference (TYPE) | P0003 | IT0003 | 20000306 | |||
| 14 | Instance attribute | Private | Type reference (TYPE) | HRPAY99_P0221 | Table Type for IT0221 | 20041112 | |||
| 15 | Instance attribute | Private | Type reference (TYPE) | PAYDT | Payday | 20000307 | |||
| 16 | Instance attribute | Private | Type reference (TYPE) | PAYID | Payroll identifier | 20000330 | |||
| 17 | Instance attribute | Private | Type reference (TYPE) | D | Payroll Run to | 20000307 | |||
| 18 | Instance attribute | Private | Type reference (TYPE) | PAYTY | Payroll Type | 20000307 | |||
| 19 | Instance attribute | Private | Type reference (TYPE) | HRST0_ABKRS_RANGETAB | PNPABKRS | 20000307 | |||
| 20 | Instance attribute | Private | Type reference (TYPE) | HRPY_TT_RGDIR | Payroll results | 20000306 | |||
| 21 | Instance attribute | Private | Type reference (TYPE) | D | Orginal PN-ENDDA | 20000419 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | Constructor | 20000306 | |
| 2 | Instance method | Private | Method | Determines the start date of an active period | 20000307 | |
| 3 | Instance method | Private | Method | Determines strt/ end date of 1st retr.accnting period ABKRS | 20000307 | |
| 4 | Instance method | Public | Method | Determines the leading payroll area | 20000418 | |
| 5 | Instance method | Private | Method | Determines strt/end date for period of payroll area keydate | 20000308 | |
| 6 | Instance method | Public | Method | Determines the retroactive accounting dates | 20000306 | |
| 7 | Instance method | Private | Method | Import T52RIC and determine SEQNR | 20000307 | |
| 8 | Instance method | Public | Method | Fetch T52RIC entries to be deleted | 20000328 | |
| 9 | Static method | Public | Method | Create instance | 20000317 | |
| 10 | Static method | Public | Method | Determine the greater date | 20000307 | |
| 11 | Static method | Public | Method | Determine the lower date | 20000307 | |
| 12 | Static method | Public | Method | Determine the lower sequence number | 20000404 | |
| 13 | Instance method | Public | Method | Initialization of a personnel number | 20000317 | |
| 14 | Static method | Public | Method | Delete the Main Routine Instance | 20040901 | |
| 15 | Instance method | Private | Method | Set to start date | 20000306 | |
| 16 | Instance method | Public | Method | Determines end dte of last ABKRS to be included in pyrll run | 20000418 |
Events
Class CL_HR_PAYROLL_MAIN has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | BONUS_TAB | Private | See coding | Bonus table | 20000306 | bonus_tab TYPE STANDARD TABLE OF bonus_tab_wa
|
|
| 2 | BONUS_TAB_WA | Private | See coding | Line in bonus table | 20000306 | BEGIN OF bonus_tab_wa.
INCLUDE TYPE t52ric.
TYPES: seqnr TYPE cdseq,
END OF bonus_tab_wa
|
Method Signatures
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_ABKRS | Call by reference | Type reference (TYPE) | HRST0_ABKRS_RANGETAB | Abrechnungskreise | 20000308 | |||
| 2 | IMP_BEGDA | Call by reference | Type reference (TYPE) | D | PN-Begda | 20000307 | |||
| 3 | IMP_ENDDA | Call by reference | Type reference (TYPE) | D | PN-Endda | 20000307 | |||
| 4 | IMP_PAYDT | Call by reference | Type reference (TYPE) | PAYDT | Zahldatum | 20000308 | |||
| 5 | IMP_PAYID | Call by reference | Type reference (TYPE) | PAYID | Abrechnungsidentifikator | 20000330 | |||
| 6 | IMP_PAYTY | Call by reference | Type reference (TYPE) | PAYTY | Abrechnungstyp | 20000308 | |||
| 7 | IMP_PROG | Call by reference | Type reference (TYPE) | SY-REPID | Callback für Länderexit | 20000306 |
Method CONSTRUCTOR on class CL_HR_PAYROLL_MAIN has no exception.
Method DETERMINE_BEGDA_AKTIV_PERIODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_BEGDA | Call by reference | Type reference (TYPE) | D | Anfang des Zeitraum | 20000307 | |||
| 2 | IMP_ENDDA | Call by reference | Type reference (TYPE) | D | Ende des Zeitraums | 20000307 | |||
| 3 | RET_AKTIV_BEGDA | Value transfer | Type reference (TYPE) | D | Begin des aktiven Zeitraums | 20000307 |
Method DETERMINE_BEGDA_AKTIV_PERIODE on class CL_HR_PAYROLL_MAIN has no exception.
Method DETERMINE_EARLIEST_BEGDA_ENDDA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXP_BEGDA | Call by reference | Type reference (TYPE) | D | Beginn der Periode | 20000307 | |||
| 2 | EXP_ENDDA | Call by reference | Type reference (TYPE) | D | Ende der Periode | 20000307 | |||
| 3 | IMP_ABKRS | Call by reference | Type reference (TYPE) | ABKRS | Abrechnungskreis | 20000307 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler beim Tabellen lesen | 20000307 | ||
| 2 | Der Abrechnungskreis ist nicht abrechnungsrelevent | 20000518 | ||
| 3 | Keine Tiefwassermarke für Abrechnungskreis | 20000307 |
Method DETERMINE_LEADING_ABKRS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RET_LEADING_ABKRS | Value transfer | Type reference (TYPE) | ABKRS | Führender Abrechnungskreis | 20000418 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Payroll area could not be determined | 20080822 |
Method DETERMINE_PERIODE_BEGDA_ENDDA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXP_BEGDA | Call by reference | Type reference (TYPE) | D | Beginn der Periode | 20000308 | |||
| 2 | EXP_ENDDA | Call by reference | Type reference (TYPE) | D | Ende der Periode | 20000308 | |||
| 3 | IMP_ABKRS | Call by reference | Type reference (TYPE) | ABKRS | Abrechnungskreis | 20000308 | |||
| 4 | IMP_DATE | Call by reference | Type reference (TYPE) | D | Stichtag | 20000308 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler beim Tabellen lesen | 20000308 | ||
| 2 | Der Abrechnungskreis ist nicht abrechnungsrelevent | 20000518 |
Method DETERMINE_RETRODAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXP_FIRST_BONUS_SEQNR | Call by reference | Type reference (TYPE) | CDSEQ | Nummer eines Infotypsatzes bei gleichem Schlüssel | 20000404 | |||
| 2 | EXP_RETRO_DATE_ALL | Call by reference | Type reference (TYPE) | D | Erster Korrekturabrechnung | 20000306 | |||
| 3 | EXP_RETRO_DATE_BONUS | Call by reference | Type reference (TYPE) | D | Bonusdatum des ersten abzurechnenden Bonus | 20000306 | |||
| 4 | EXP_RETRO_DATE_REGULAR | Call by reference | Type reference (TYPE) | D | Aufsetzpunkt für reguläre Abrechnung | 20000306 | |||
| 5 | IMP_FORCED_RETRO_DATE | Call by reference | Type reference (TYPE) | D | Zwangsrückrechnungdatum | 20000306 | |||
| 6 | IMP_NO_RETRO | Call by reference | Type reference (TYPE) | CHAR1 | Keine Rückrechnung | 20000307 | |||
| 7 | IMP_PGM_TYP | Call by reference | Type reference (TYPE) | PARM1 | Abrechnungstyp z.B. 'ABR' | 20000306 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Customizing | 20000307 |
Method FILL_BONUS_TAB Signature
Method FILL_BONUS_TAB on class CL_HR_PAYROLL_MAIN has no parameter.
Method FILL_BONUS_TAB on class CL_HR_PAYROLL_MAIN has no exception.
Method GET_BONUS_TAB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BONUS_TABLE | Call by reference | Type reference (TYPE) | HRPY_TT_T52RIC | Tabelle der abgerechneten Boni | 20000328 | |||
| 2 | IMP_APER | Call by reference | Type reference (TYPE) | HRPY_APER_TYPE | Tabellentyp für APER | 20030917 |
Method GET_BONUS_TAB on class CL_HR_PAYROLL_MAIN has no exception.
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_ABKRS | Call by reference | Type reference (TYPE) | HRST0_ABKRS_RANGETAB | Abrechnungskreise | 20000317 | |||
| 2 | IMP_BEGDA | Call by reference | Type reference (TYPE) | D | PN-Begda | 20000317 | |||
| 3 | IMP_ENDDA | Call by reference | Type reference (TYPE) | D | PN-Endda | 20000317 | |||
| 4 | IMP_OCNR | Call by reference | Type reference (TYPE) | PAY_OCRSN | Grund für Off-Cycle-Abrechnung | 20000418 | |||
| 5 | IMP_PAYDT | Call by reference | Type reference (TYPE) | PAYDT | Zahldatum | 20000317 | |||
| 6 | IMP_PAYID | Call by reference | Type reference (TYPE) | PAYID | Abrechnungsidentifikator | 20000330 | |||
| 7 | IMP_PAYTY | Call by reference | Type reference (TYPE) | PAYTY | Abrechnungstyp | 20000317 | |||
| 8 | IMP_PROG | Call by reference | Type reference (TYPE) | SY-REPID | Callback für Länderexit | 20000317 | |||
| 9 | RET_MAIN | Value transfer | Object reference (TYPE REF TO) | CL_HR_PAYROLL_MAIN | Singelton | 20000317 |
Method GET_INSTANCE on class CL_HR_PAYROLL_MAIN has no exception.
Method GET_MAXDAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_DATE_1 | Call by reference | Type reference (TYPE) | D | Datum 1 | 20000307 | |||
| 2 | IMP_DATE_2 | Call by reference | Type reference (TYPE) | D | Datum 2 | 20000307 | |||
| 3 | RET_MAX_DATE | Value transfer | Type reference (TYPE) | D | Result | 20000307 |
Method GET_MAXDAT on class CL_HR_PAYROLL_MAIN has no exception.
Method GET_MINDAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_DATE_1 | Call by reference | Type reference (TYPE) | D | Datum 1 | 20000307 | |||
| 2 | IMP_DATE_2 | Call by reference | Type reference (TYPE) | D | Datum 2 | 20000307 | |||
| 3 | RET_MIN_DATE | Value transfer | Type reference (TYPE) | D | Result | 20000307 |
Method GET_MINDAT on class CL_HR_PAYROLL_MAIN has no exception.
Method GET_MINSEQNR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_SEQNR_1 | Call by reference | Type reference (TYPE) | CDSEQ | Datum 1 | 20000404 | |||
| 2 | IMP_SEQNR_2 | Call by reference | Type reference (TYPE) | CDSEQ | Datum 2 | 20000404 | |||
| 3 | RET_MIN_SEQNR | Value transfer | Type reference (TYPE) | CDSEQ | Result | 20000404 |
Method GET_MINSEQNR on class CL_HR_PAYROLL_MAIN has no exception.
Method INIT_MAIN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_CALCMOLGA | Call by reference | Type reference (TYPE) | MOLGA | Ländergruppierung | 20050721 | |||
| 2 | IMP_P0000 | Call by reference | Type reference (TYPE) | TIM_P0000_TAB | IT0000 | 20000317 | |||
| 3 | IMP_P0001 | Call by reference | Type reference (TYPE) | P0001_TAB | IT0001 | 20000317 | |||
| 4 | IMP_P0003 | Call by reference | Type reference (TYPE) | P0003 | IT0003 | 20000317 | |||
| 5 | IMP_P0221 | Call by reference | Type reference (TYPE) | HRPAY99_P0221 | Tabellentyp für IT0221 | 20041112 | |||
| 6 | IMP_PAYROLL_UNTIL | Call by reference | Type reference (TYPE) | D | Calculated to | 20000317 | |||
| 7 | IMP_RGDIR | Call by reference | Type reference (TYPE) | HRPY_TT_RGDIR | Abrechnungsergebnisse | 20000317 |
Method INIT_MAIN on class CL_HR_PAYROLL_MAIN has no exception.
Method RESET_MAIN Signature
Method RESET_MAIN on class CL_HR_PAYROLL_MAIN has no parameter.
Method RESET_MAIN on class CL_HR_PAYROLL_MAIN has no exception.
Method SET_PAYROLL_BEGIN_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMP_END_DATE | Call by reference | Type reference (TYPE) | D | Endedatum | 20000306 | |||
| 2 | IMP_START_DATE | Call by reference | Type reference (TYPE) | D | Anfangsdatum | 20000306 | |||
| 3 | RET_BEGIN_DATE | Value transfer | Type reference (TYPE) | D | Begin der abzurechnenden Periode | 20000306 |
Method SET_PAYROLL_BEGIN_DATE on class CL_HR_PAYROLL_MAIN has no exception.
Method SET_PAYROLL_END_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RET_ENDDA | Value transfer | Type reference (TYPE) | D | Geändertes PN-ENDDA | 20000418 |
Method SET_PAYROLL_END_DATE on class CL_HR_PAYROLL_MAIN has no exception.
History
| Last changed by/on | SAP | 20060208 |
| SAP Release Created in | 46C |