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 HRST0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 PYCDC 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 BEGDA Instance attribute Private Type reference (TYPE) D PN-BEGDA 20000307
2 CALCMOLGA Instance attribute Private Type reference (TYPE) MOLGA Country Grouping 20050721
3 CALLBACK_PROG Instance attribute Private Type reference (TYPE) SY-REPID Program for country exit 20000306
4 DEL_52RIC Instance attribute Private Type reference (TYPE) BONUS_TAB Table of bonuses 20041112
5 ENDDA Instance attribute Private Type reference (TYPE) D PN-ENDDA (changed by SET_PAYROLL_ENDDA) 20000307
6 HIGH_DATE Constant Public Type reference (TYPE) D '99991231' High date 20000307
7 I52RIC Instance attribute Private Type reference (TYPE) BONUS_TAB Table of bonuses 20000306
8 LEADING_ABKRS Instance attribute Private Type reference (TYPE) ABKRS Leading payroll area 20000418
9 LOW_DATE Constant Public Type reference (TYPE) D '18000101' Low date 20000307
10 MAIN Static Attribute Private Object reference (TYPE REF TO) CL_HR_PAYROLL_MAIN Pointer to main object 20000317
11 P0000 Instance attribute Private Type reference (TYPE) TIM_P0000_TAB IT0000 20000306
12 P0001 Instance attribute Private Type reference (TYPE) P0001_TAB IT0001 20000306
13 P0003 Instance attribute Private Type reference (TYPE) P0003 IT0003 20000306
14 P0221 Instance attribute Private Type reference (TYPE) HRPAY99_P0221 Table Type for IT0221 20041112
15 PAYDT Instance attribute Private Type reference (TYPE) PAYDT Payday 20000307
16 PAYID Instance attribute Private Type reference (TYPE) PAYID Payroll identifier 20000330
17 PAYROLL_UNTIL Instance attribute Private Type reference (TYPE) D Payroll Run to 20000307
18 PAYTY Instance attribute Private Type reference (TYPE) PAYTY Payroll Type 20000307
19 PNPABKRS Instance attribute Private Type reference (TYPE) HRST0_ABKRS_RANGETAB PNPABKRS 20000307
20 RGDIR Instance attribute Private Type reference (TYPE) HRPY_TT_RGDIR Payroll results 20000306
21 SAVE_ENDDA Instance attribute Private Type reference (TYPE) D Orginal PN-ENDDA 20000419
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Public Constructor Constructor 20000306
2 DETERMINE_BEGDA_AKTIV_PERIODE Instance method Private Method Determines the start date of an active period 20000307
3 DETERMINE_EARLIEST_BEGDA_ENDDA Instance method Private Method Determines strt/ end date of 1st retr.accnting period ABKRS 20000307
4 DETERMINE_LEADING_ABKRS Instance method Public Method Determines the leading payroll area 20000418
5 DETERMINE_PERIODE_BEGDA_ENDDA Instance method Private Method Determines strt/end date for period of payroll area keydate 20000308
6 DETERMINE_RETRODAYS Instance method Public Method Determines the retroactive accounting dates 20000306
7 FILL_BONUS_TAB Instance method Private Method Import T52RIC and determine SEQNR 20000307
8 GET_BONUS_TAB Instance method Public Method Fetch T52RIC entries to be deleted 20000328
9 GET_INSTANCE Static method Public Method Create instance 20000317
10 GET_MAXDAT Static method Public Method Determine the greater date 20000307
11 GET_MINDAT Static method Public Method Determine the lower date 20000307
12 GET_MINSEQNR Static method Public Method Determine the lower sequence number 20000404
13 INIT_MAIN Instance method Public Method Initialization of a personnel number 20000317
14 RESET_MAIN Static method Public Method Delete the Main Routine Instance 20040901
15 SET_PAYROLL_BEGIN_DATE Instance method Private Method Set to start date 20000306
16 SET_PAYROLL_END_DATE 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 Importing IMP_ABKRS Call by reference Type reference (TYPE) HRST0_ABKRS_RANGETAB Abrechnungskreise 20000308
2 Importing IMP_BEGDA Call by reference Type reference (TYPE) D PN-Begda 20000307
3 Importing IMP_ENDDA Call by reference Type reference (TYPE) D PN-Endda 20000307
4 Importing IMP_PAYDT Call by reference Type reference (TYPE) PAYDT Zahldatum 20000308
5 Importing IMP_PAYID Call by reference Type reference (TYPE) PAYID Abrechnungsidentifikator 20000330
6 Importing IMP_PAYTY Call by reference Type reference (TYPE) PAYTY Abrechnungstyp 20000308
7 Importing 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 Importing IMP_BEGDA Call by reference Type reference (TYPE) D Anfang des Zeitraum 20000307
2 Importing IMP_ENDDA Call by reference Type reference (TYPE) D Ende des Zeitraums 20000307
3 Returning 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 Exporting EXP_BEGDA Call by reference Type reference (TYPE) D Beginn der Periode 20000307
2 Exporting EXP_ENDDA Call by reference Type reference (TYPE) D Ende der Periode 20000307
3 Importing IMP_ABKRS Call by reference Type reference (TYPE) ABKRS Abrechnungskreis 20000307
# Exception Resumable Description Created on
1 ERROR_IN_CUSTOMIZING Fehler beim Tabellen lesen 20000307
2 NOT_RELEVANT_FOR_PAYROLL Der Abrechnungskreis ist nicht abrechnungsrelevent 20000518
3 NO_EARLIEST_PERIODE 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 Returning RET_LEADING_ABKRS Value transfer Type reference (TYPE) ABKRS Führender Abrechnungskreis 20000418
# Exception Resumable Description Created on
1 ABKRS_NOT_FOUND 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 Exporting EXP_BEGDA Call by reference Type reference (TYPE) D Beginn der Periode 20000308
2 Exporting EXP_ENDDA Call by reference Type reference (TYPE) D Ende der Periode 20000308
3 Importing IMP_ABKRS Call by reference Type reference (TYPE) ABKRS Abrechnungskreis 20000308
4 Importing IMP_DATE Call by reference Type reference (TYPE) D Stichtag 20000308
# Exception Resumable Description Created on
1 ERROR_IN_CUSTOMIZING Fehler beim Tabellen lesen 20000308
2 NOT_RELEVANT_FOR_PAYROLL 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 Exporting EXP_FIRST_BONUS_SEQNR Call by reference Type reference (TYPE) CDSEQ Nummer eines Infotypsatzes bei gleichem Schlüssel 20000404
2 Exporting EXP_RETRO_DATE_ALL Call by reference Type reference (TYPE) D Erster Korrekturabrechnung 20000306
3 Exporting EXP_RETRO_DATE_BONUS Call by reference Type reference (TYPE) D Bonusdatum des ersten abzurechnenden Bonus 20000306
4 Exporting EXP_RETRO_DATE_REGULAR Call by reference Type reference (TYPE) D Aufsetzpunkt für reguläre Abrechnung 20000306
5 Importing IMP_FORCED_RETRO_DATE Call by reference Type reference (TYPE) D Zwangsrückrechnungdatum 20000306
6 Importing IMP_NO_RETRO Call by reference Type reference (TYPE) CHAR1 Keine Rückrechnung 20000307
7 Importing IMP_PGM_TYP Call by reference Type reference (TYPE) PARM1 Abrechnungstyp z.B. 'ABR' 20000306
# Exception Resumable Description Created on
1 ERROR_IN_CUSTOMIZING 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 Exporting BONUS_TABLE Call by reference Type reference (TYPE) HRPY_TT_T52RIC Tabelle der abgerechneten Boni 20000328
2 Importing 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 Importing IMP_ABKRS Call by reference Type reference (TYPE) HRST0_ABKRS_RANGETAB Abrechnungskreise 20000317
2 Importing IMP_BEGDA Call by reference Type reference (TYPE) D PN-Begda 20000317
3 Importing IMP_ENDDA Call by reference Type reference (TYPE) D PN-Endda 20000317
4 Importing IMP_OCNR Call by reference Type reference (TYPE) PAY_OCRSN Grund für Off-Cycle-Abrechnung 20000418
5 Importing IMP_PAYDT Call by reference Type reference (TYPE) PAYDT Zahldatum 20000317
6 Importing IMP_PAYID Call by reference Type reference (TYPE) PAYID Abrechnungsidentifikator 20000330
7 Importing IMP_PAYTY Call by reference Type reference (TYPE) PAYTY Abrechnungstyp 20000317
8 Importing IMP_PROG Call by reference Type reference (TYPE) SY-REPID Callback für Länderexit 20000317
9 Returning 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 Importing IMP_DATE_1 Call by reference Type reference (TYPE) D Datum 1 20000307
2 Importing IMP_DATE_2 Call by reference Type reference (TYPE) D Datum 2 20000307
3 Returning 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 Importing IMP_DATE_1 Call by reference Type reference (TYPE) D Datum 1 20000307
2 Importing IMP_DATE_2 Call by reference Type reference (TYPE) D Datum 2 20000307
3 Returning 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 Importing IMP_SEQNR_1 Call by reference Type reference (TYPE) CDSEQ Datum 1 20000404
2 Importing IMP_SEQNR_2 Call by reference Type reference (TYPE) CDSEQ Datum 2 20000404
3 Returning 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 Importing IMP_CALCMOLGA Call by reference Type reference (TYPE) MOLGA Ländergruppierung 20050721
2 Importing IMP_P0000 Call by reference Type reference (TYPE) TIM_P0000_TAB IT0000 20000317
3 Importing IMP_P0001 Call by reference Type reference (TYPE) P0001_TAB IT0001 20000317
4 Importing IMP_P0003 Call by reference Type reference (TYPE) P0003 IT0003 20000317
5 Importing IMP_P0221 Call by reference Type reference (TYPE) HRPAY99_P0221 Tabellentyp für IT0221 20041112
6 Importing IMP_PAYROLL_UNTIL Call by reference Type reference (TYPE) D Calculated to 20000317
7 Importing 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 Importing IMP_END_DATE Call by reference Type reference (TYPE) D Endedatum 20000306
2 Importing IMP_START_DATE Call by reference Type reference (TYPE) D Anfangsdatum 20000306
3 Returning 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 Returning 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