SAP ABAP Class CL_SAWE_FORECAST (Util-Class for ForeCast-related methods)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   IS-PRS-LS (Application Component) Lean Staffing
     PSAWE_SA_BL (Package) Staff Assignment Business Layer
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_FPM_CONSTANTS FPM constants 20091021
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_SAWE_SA_CONSTANTS Constants definitions 20091014
3 Interface implementation (CLASS c. INTERFACES i_ref)  IF_SAWE_TIME_PS_CONSTANTS Time Planning Sheet Constants 20091014
Properties
Class CL_SAWE_FORECAST  
Short Description Util-Class for ForeCast-related methods    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PSAWE_SA_BL   Staff Assignment Business Layer 
Created 20091014   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_WE_ENGAGEMENT Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
# Interface Abstract Final Description Created on
1 IF_FPM_CONSTANTS FPM constants 20091021
2 IF_SAWE_SA_CONSTANTS Constants definitions 20091014
3 IF_SAWE_TIME_PS_CONSTANTS Time Planning Sheet Constants 20091014
Friends
Class CL_SAWE_FORECAST has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MO_BS_PERIOD_TOOLSET Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_PERIOD_TOOL Wrapper for Badi bs_period_toolset_context 20091027
2 MO_CA_TIME_SHEET Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_CA_TIME_SHEET Util-Class for Cats 20091015
3 MO_CUSTOMIZING Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_CUSTOMIZING Util-Class for Customizing 20091014
4 MO_DATE Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_DATE Utility Class for Date 20091015
5 MO_EMPLOYEE Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_EMPLOYEE Util-Class for Employee functions 20091014
6 MO_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_SAWE_FORECAST Util-Class for ForeCast-related methods 20091014
Methods
# Method Level Visibility Method type Description Created on
1 CALC_CHECK_PARAMETERS Instance method Private Method Forecasted-Day-Calc: Check-Parameter 20091016
2 CALC_GET_CATS_TARGET_HOURS Instance method Private Method Forecasted-Day-Calc: Get Customizing 20091016
3 CALC_GET_CUSTOMIZING Instance method Private Method Forecasted-Day-Calc: Get Customizing 20091016
4 CALC_MAP_GRANULARITY Instance method Private Method Forecasted-Day-Calc: Map Granularity 20091016
5 CALC_NORMALIZE_PERIOD Instance method Private Method Forecasted-Day-Calc: Normalization 20091016
6 CALC_NORMALIZE_PERIODS Instance method Private Method Forecasted-Day-Calc: Normalization 20091016
7 CALC_SELECT_FORECAST_DB Instance method Private Method Forecasted-Day-Calc: Selected from Forecast DB 20091016
8 CONSTRUCTOR Instance method Private Constructor CONSTRUCTOR 20091014
9 GET_FORECASTED_DAYS Instance method Public Method Returns forecasted hours to an empl/eo/e-Type/period 20091016
10 GET_INSTANCE Static method Public Method Returns Singleton 20091014
Events
Class CL_SAWE_FORECAST has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TYPE_INDEX_ANY Protected See coding 20091016 begin of type_index_any ,kmonth type kmonth ,kweek type kweek ,date type sawe_begin_date ,end of type_index_any
2 TYPE_PERIOD Protected See coding 20091015 begin of type_period ,begin type sawe_begin_date ,end type sawe_end_date ,end of type_period
Method Signatures

Method CALC_CHECK_PARAMETERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_REQUESTED_HOURS Call by reference Type reference (TYPE) SAWE_S_HOURS_ALL Transformation-Struktur 20091016
2 Exporting EV_REQUESTED_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Hours per Month Year TAB 20091016
3 Importing IV_DATE_YEAR_FROM Call by reference Type reference (TYPE) DATS Field of type DATS 20091016
4 Importing IV_DATE_YEAR_TO Call by reference Type reference (TYPE) DATS Field of type DATS 20091016
5 Importing IV_MONTH_YEAR_FROM Call by reference Type reference (TYPE) KMONTH Factory calendar: Month 20091016
6 Importing IV_MONTH_YEAR_TO Call by reference Type reference (TYPE) KMONTH Factory calendar: Month 20091016
7 Importing IV_PLANNING_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016
8 Importing IV_WEEK_YEAR_FROM Call by reference Type reference (TYPE) KWEEK Factory calendar: Week 20091016
9 Importing IV_WEEK_YEAR_TO Call by reference Type reference (TYPE) KWEEK Factory calendar: Week 20091016

Method CALC_CHECK_PARAMETERS on class CL_SAWE_FORECAST has no exception.

Method CALC_GET_CATS_TARGET_HOURS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SELECT_TARGET_HOURS Call by reference Type reference (TYPE) SAWE_T_TARGET_HOURS Sawe: Target hours for employee 20091016
2 Exporting EV_REQUESTED_HOURS_SUM Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091016
3 Exporting EV_SELECT_HOURS_SUM Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091016
4 Importing IS_REQUESTED_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
5 Importing IS_SELECT_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
6 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20091016
# Exception Resumable Description Created on
1 GET_TARGET_HOURS_ERROR CATS returns error during target Hours determination 20091016

Method CALC_GET_CUSTOMIZING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_COMPANY_CODE Call by reference Type reference (TYPE) BUKRS Company Code 20091016
2 Exporting EV_HOURS_PER_WEEKDAY Call by reference Type reference (TYPE) SAWE_HOURS_WORKDAY Staff Assignment Hours per Work Day 20091016
3 Exporting EV_SELECT_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016
4 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20091016

Method CALC_GET_CUSTOMIZING on class CL_SAWE_FORECAST has no exception.

Method CALC_MAP_GRANULARITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_REQUESTED_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
2 Exporting ES_SELECT_HOURS Call by reference Type reference (TYPE) SAWE_S_HOURS_ALL Hours per Any 20091016
3 Exporting ES_SELECT_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
4 Importing IS_REQUESTED_HOURS Call by reference Type reference (TYPE) SAWE_S_HOURS_ALL Hours per Any 20091016
5 Importing IV_PLANNING_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016
6 Importing IV_REQUESTED_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016

Method CALC_MAP_GRANULARITY on class CL_SAWE_FORECAST has no exception.

Method CALC_NORMALIZE_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_SELECT_FORECAST_HOURS Call by reference Type reference (TYPE) SAWE_T_HOURS_ANY Hours per Any TAB 20091229
2 Exporting EV_FORECASTED_HOURS Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091016
3 Importing IS_CALC_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
4 Importing IS_FORECAST_PERIOD Call by reference Type reference (TYPE) TYPE_INDEX_ANY 20091016
5 Importing IS_REQUESTED_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
6 Importing IS_SELECT_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
7 Importing IT_SELECT_TARGET_HOURS Call by reference Type reference (TYPE) SAWE_T_TARGET_HOURS Sawe: Target hours for employee 20091016
8 Importing IV_SELECT_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016

Method CALC_NORMALIZE_PERIOD on class CL_SAWE_FORECAST has no exception.

Method CALC_NORMALIZE_PERIODS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_SELECT_FORECAST_HOURS Call by reference Type reference (TYPE) SAWE_T_HOURS_ANY Hours per Any TAB 20091229
2 Exporting EV_FORECASTED_HOURS Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091016
3 Importing IS_REQUESTED_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
4 Importing IS_SELECT_HOURS Call by reference Type reference (TYPE) SAWE_S_HOURS_ALL Transformation-Struktur 20091016
5 Importing IS_SELECT_PERIOD Call by reference Type reference (TYPE) TYPE_PERIOD 20091016
6 Importing IT_SELECT_TARGET_HOURS Call by reference Type reference (TYPE) SAWE_T_TARGET_HOURS Sawe: Target hours for employee 20091016
7 Importing IV_SELECT_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016

Method CALC_NORMALIZE_PERIODS on class CL_SAWE_FORECAST has no exception.

Method CALC_SELECT_FORECAST_DB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SELECT_FORECAST_HOURS Call by reference Type reference (TYPE) SAWE_T_HOURS_ANY Hours per Any TAB 20091016
2 Importing IS_SELECT_HOURS Call by reference Type reference (TYPE) SAWE_S_HOURS_ALL Hours per Any TAB 20091016
3 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20091016
4 Importing IV_ENGAGEMENT_ID Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT=>ID Assignment Obj. ID 20091016
5 Importing IV_ENGAGEMENT_TYPE Call by reference Type reference (TYPE) WE_ENGAGEMENT_TYPE Assignment Obj. Type 20091016
6 Importing IV_FC_GROUP Call by reference Type reference (TYPE) SAWE_FC_GROUP Forecast Grouping Key 20091130
7 Importing IV_SELECT_GRANULARITY Call by reference Type reference (TYPE) SAWE_PLAN_GRANULARITY Planning Granularity 20091016

Method CALC_SELECT_FORECAST_DB on class CL_SAWE_FORECAST has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_SAWE_FORECAST has no parameter.
Method CONSTRUCTOR on class CL_SAWE_FORECAST has no exception.

Method GET_FORECASTED_DAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_AVAIL_CATS_DAYS Call by reference Type reference (TYPE) SAWE_TIME_AVAIL_CATS Available Days in TimeSheet 20091016
2 Exporting EV_AVAIL_CATS_HOURS Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091023
3 Exporting EV_AVAIL_DAYS Call by reference Type reference (TYPE) SAWE_TIME_AVAIL_SUM Minimal Available Days 20091016
4 Exporting EV_AVAIL_HOURS Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091023
5 Exporting EV_FORECASTED_DAYS Call by reference Type reference (TYPE) SAWE_TIME_FORECASTED Minimal Available Days 20091016
6 Exporting EV_FORECASTED_HOURS Call by reference Type reference (TYPE) ABATTSTD Absence/Attendance hours 20091023
7 Exporting EV_LAST_FORECAST_CHANGE_DATE Call by reference Type reference (TYPE) /BOBF/DATETIME_CH 20091027
8 Importing IV_DATE_YEAR_FROM Call by reference Type reference (TYPE) DATS Field of type DATS 20091016
9 Importing IV_DATE_YEAR_TO Call by reference Type reference (TYPE) DATS Field of type DATS 20091016
10 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20091016
11 Importing IV_ENGAGEMENT_ID Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT=>ID Assignment Obj. ID 20091016
12 Importing IV_ENGAGEMENT_TYPE Call by reference Type reference (TYPE) WE_ENGAGEMENT_TYPE Assignment Obj. Type 20091016
13 Importing IV_FC_GROUP Call by reference Type reference (TYPE) SAWE_FC_GROUP Forecast Grouping Key 20091130
14 Importing IV_MONTH_YEAR_FROM Call by reference Type reference (TYPE) KMONTH Factory calendar: Month 20091016
15 Importing IV_MONTH_YEAR_TO Call by reference Type reference (TYPE) KMONTH Factory calendar: Month 20091016
16 Importing IV_REQUESTED_DAYS Call by reference Type reference (TYPE) SAWE_TIME_AVAIL Minimal Available Days 20091016
17 Importing IV_WEEK_YEAR_FROM Call by reference Type reference (TYPE) KWEEK Factory calendar: Week 20091016
18 Importing IV_WEEK_YEAR_TO Call by reference Type reference (TYPE) KWEEK Factory calendar: Week 20091016
# Exception Resumable Description Created on
1 GET_TARGET_HOURS_ERROR CATS returns error during target Hours determination 20091016
2 PARAMETER_ERROR Wrong Import-Parameter 20091016

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) CL_SAWE_FORECAST Util-Class for Cats 20091014

Method GET_INSTANCE on class CL_SAWE_FORECAST has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 605