SAP ABAP Class CL_HRPAD_DATE_COMPUTATIONS_UN (NPO: Date Caluculations)
Hierarchy
SAP_HRCUN (Software Component) Sub component SAP_HRCUN of SAP_HR
   PY-NPO (Application Component) Non Profit Organizations
     PBUN (Package) Master Data Non Profit Organizations
Properties
Class CL_HRPAD_DATE_COMPUTATIONS_UN  
Short Description NPO: Date Caluculations    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PBUN   Master Data Non Profit Organizations 
Created 20060807   SAP 
Last change 20071120   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_HRPA_BOOLE_D Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_HRPAD_DATE_COMPUTATIONS_UN has no interface implemented.
Friends
Class CL_HRPAD_DATE_COMPUTATIONS_UN has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 A_REFERENCE_DATE Constant Private Type reference (TYPE) D '19790101' Valid-from date 20060807
2 FALSE Constant Private Type reference (TYPE) BOOLE_D IF_HRPA_BOOLE_D=>FALSE Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") 20060807
3 TRUE Constant Private Type reference (TYPE) BOOLE_D IF_HRPA_BOOLE_D=>TRUE Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") 20060807
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MONTHS_TO_DATE Static method Public Method Adds No. of Months to Date 20060807
2 ADD_WEEKS_TO_DATE Static method Public Method Adfd No. of Weeks to Date 20060807
3 ADD_YEARS_TO_DATE Static method Public Method Adds No. of Years to Date 20060807
4 GET_DAYS_PER_YEAR Static method Private Method Determines No. of Days per Year 20060807
5 GET_FIRST_DAY_CALENDAR_WEEK Static method Public Method Determines First Day of Calendar Week for Particular Year 20060807
6 GET_FIRST_DAY_IN_SHIFTED_WEEK Static method Public Method Determines First Day of Week (Shifted) 20060807
7 GET_FIRST_DAY_IN_WEEK Static method Public Method Determines First Day of a Week 20060807
8 GET_FIRST_DAY_PREVIOUS_MONTH Static method Public Method Determines First Day in Previous Month 20060807
9 GET_LAST_DAY_IN_MONTH Static method Public Method Calculates Last Day of Current Month 20060807
10 GET_LAST_DAY_PREVIOUS_MONTH Static method Public Method Determines Last Day of Previous Month 20060807
11 GET_LAST_WEEKDAY_NUMBER Static method Public Method Determines Number of Last Weekday 20060807
12 GET_SHIFTED_WEEK Static method Public Method Determines Week in Which Date Lies (Shifted) 20060807
13 GET_WEEK Static method Public Method Determines Week in Which Date Lies (Shifted) 20060807
14 GET_WEEKDAY_NUMBER Static method Public Method Determines Number of Weekday 20060807
15 GET_WEEKDAY_NUMBER_SHIFTED Static method Public Method Determines Number of Weekday (Shifted) 20060807
16 SUBTRACT_MONTHS_FROM_DATE Static method Public Method Subtracts No. of Months from Date 20060807
17 SUBTRACT_WEEKS_FROM_DATE Static method Public Method Subtracts No. of Weeks from Date 20060807
18 SUBTRACT_YEARS_FROM_DATE Static method Public Method Subtracts No. of Years from Date 20060807
Events
Class CL_HRPAD_DATE_COMPUTATIONS_UN has no event.
Types
Class CL_HRPAD_DATE_COMPUTATIONS_UN has no local type.
Method Signatures

Method ADD_MONTHS_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Calculated Date 20060807
2 Importing MONTHS Call by reference Type reference (TYPE) I Number of Months 20060807
3 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Date to Which Months Are Added 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20060807

Method ADD_WEEKS_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Calculated Date 20060807
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Date to Which Weeks Are Added 20060807
3 Importing WEEKS Call by reference Type reference (TYPE) I Number of weeks 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20060807

Method ADD_YEARS_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Calculated Date 20060807
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Date to Which Years Are Added 20060807
3 Importing YEARS Call by reference Type reference (TYPE) I Number of Years 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20060807

Method GET_DAYS_PER_YEAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Date of Relevant Year 20060807
2 Returning NUMBER_DAYS Value transfer Type reference (TYPE) I No. of Days in Year 20060807

Method GET_DAYS_PER_YEAR on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_FIRST_DAY_CALENDAR_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting DATE Call by reference Type reference (TYPE) BEGDA Determined date 20060807
2 Exporting IS_OK Call by reference Type reference (TYPE) BOOLE_D Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") 20060807
3 Importing MESSAGE_HANDLER Call by reference Object reference (TYPE REF TO) IF_HRPA_MESSAGE_HANDLER HR Master Data: Messages 20060807
4 Importing WEEK Call by reference Type reference (TYPE) NWEEK Week Whose First Day Is Sought 20060807
5 Importing YEAR Call by reference Type reference (TYPE) NYEAR Relevant Calendar Year 20060807

Method GET_FIRST_DAY_CALENDAR_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_FIRST_DAY_IN_SHIFTED_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Determined date 20060807
3 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Country Grouping 20060807
4 Importing WEEK Call by reference Type reference (TYPE) I 1 Week (1 = Current Week / Nth Subsequent Week) 20060807

Method GET_FIRST_DAY_IN_SHIFTED_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_FIRST_DAY_IN_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Determined date 20060807
3 Importing WEEK Call by reference Type reference (TYPE) I 1 Week (1 = Current Week / Nth Subsequent Week) 20060807

Method GET_FIRST_DAY_IN_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_FIRST_DAY_PREVIOUS_MONTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Determined date 20060807

Method GET_FIRST_DAY_PREVIOUS_MONTH on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_LAST_DAY_IN_MONTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Determined date 20060807

Method GET_LAST_DAY_IN_MONTH on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_LAST_DAY_PREVIOUS_MONTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Determined date 20060807

Method GET_LAST_DAY_PREVIOUS_MONTH on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_LAST_WEEKDAY_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning LAST_DAY_IN_WEEK Value transfer Type reference (TYPE) I Number of Last Day of Week 20060807
2 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Country Grouping 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_PRECONDITION HR: Stammdaten, unerfüllte Vorbedingung 20060807

Method GET_SHIFTED_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Country Grouping 20060807
3 Returning WEEK Value transfer Type reference (TYPE) NWEEK Calendar Week 20060807

Method GET_SHIFTED_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Date 20060807
2 Returning WEEK Value transfer Type reference (TYPE) NWEEK Calendar Week 20060807

Method GET_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_WEEKDAY_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Date for Which Weekday to be Determined 20060807
2 Returning WEEKDAY Value transfer Type reference (TYPE) I Number of Weekday, e.g.: Monday = 1 20060807

Method GET_WEEKDAY_NUMBER on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method GET_WEEKDAY_NUMBER_SHIFTED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Date for Which Weekday to be Determined 20060807
2 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Country Grouping 20060807
3 Returning WEEKDAY Value transfer Type reference (TYPE) I Number of Weekday, e.g.: Monday = 1 20060807

Method GET_WEEKDAY_NUMBER_SHIFTED on class CL_HRPAD_DATE_COMPUTATIONS_UN has no exception.

Method SUBTRACT_MONTHS_FROM_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Calculated Date 20060807
2 Importing MONTHS Call by reference Type reference (TYPE) I Number of Months 20060807
3 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Date From Which Subtracted 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20060807

Method SUBTRACT_WEEKS_FROM_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Calculated Date 20060807
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Date to Which Weeks Are Added 20060807
3 Importing WEEKS Call by reference Type reference (TYPE) I Number of weeks 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20060807

Method SUBTRACT_YEARS_FROM_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Calculated Date 20060807
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Date to Which Added 20060807
3 Importing YEARS Call by reference Type reference (TYPE) I Number of Years 20060807
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20060807
History
Last changed by/on SAP  20071120 
SAP Release Created in