SAP ABAP Class CL_SAWE_ENHANCED_FORECAST_OBJ ((EhP6)Util-Class for Enhanced Forecast Object)
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
Properties
Class CL_SAWE_ENHANCED_FORECAST_OBJ  
Short Description (EhP6)Util-Class for Enhanced Forecast Object    
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 20100803   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 CL_SAWE_ENHANCED_FORECAST_OBJ Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 IF_SAWE_SA_CONSTANTS Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
4 IF_WE_ENGAGEMENT Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
5 IF_WE_ENGAGEMENT_CALLBACK Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_SAWE_ENHANCED_FORECAST_OBJ has no interface implemented.
Friends
Class CL_SAWE_ENHANCED_FORECAST_OBJ has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_ENH_FC_AUTH Constant Private See coding 20101011
2 MO_CUST_INSTANCE Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_CUSTOMIZING Util-Class for Customizing 20100920
3 MO_EMP_INSTANCE Instance attribute Private Object reference (TYPE REF TO) CL_SAWE_EMPLOYEE Util-Class for Employee functions 20100922
4 MO_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_SAWE_ENHANCED_FORECAST_OBJ Util-Class for Enhanced Forecast Objects 20100803
5 MT_ENHANCED_FC_DB Instance attribute Private Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100825
6 MT_FORECAST_OBJ_KEYS Instance attribute Private Type reference (TYPE) IF_WE_ENGAGEMENT_CALLBACK=>OBJECT_KEYS 20100803
Methods
# Method Level Visibility Method type Description Created on
1 AUTHORITY_CHECK_ENH_FC Instance method Public Method Authority Check for Enhanced Forecast 20100921
2 AUTHORITY_CHECK_TRANSACTION Instance method Public Method Authority Check for View Cluster for Enhanced Forecast 20100921
3 CHECK_PERIOD_OVERLAP Instance method Private Method Check if periods are overlapping 20100922
4 CONSTRUCTOR Instance method Private Constructor CONSTRUCTOR 20100920
5 DELETE_ENHANCED_FC Instance method Private Method Delete Non Existing Forecast Objects 20100804
6 GET_BY_ENH_FC_ATTRIBUTES Instance method Public Method Get Enhanced Forecast by its Atributes 20101220
7 GET_ENHANCED_FC_DB Instance method Private Method Get Enhanced Forecast Objects from database 20100803
8 GET_ENH_FC_FOR_CCODE_CATS_FLAG Instance method Public Method Get Enhanced Forecast based on Company Code and CATS flag 20100930
9 GET_ENH_FC_FOR_COMPANY_CODE Instance method Public Method Get Enhanced Forecast Objects based on Company Code 20100830
10 GET_ENH_FC_FOR_EMPLOYEE Instance method Public Method Get Enhanced Forecast Objects for an Employee 20100922
11 GET_ENH_FC_FOR_EMPLOYEE_LIST Instance method Public Method Get Enhanced Forecast Objects for an Employee List 20101028
12 GET_FORECAST_OBJ Instance method Private Method Get Forecast Objects for company code 20100803
13 GET_INSTANCE Static method Public Method Returns Singleton 20100803
14 INSERT_ENHANCED_FC Instance method Private Method Insert Enhanced Forecast Objects 20100920
15 LOAD_ENHANCED_FC Instance method Public Method Load Enhanced Forecast Objects for View Cluster 20100921
16 SET_ENHANCED_FC Instance method Private Method Set Buffer on Read (Combination of FC Objs and Enh FCs) 20100804
Events
Class CL_SAWE_ENHANCED_FORECAST_OBJ has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_BUKRS_RANGE Public See coding 20101220 ty_bukrs_range TYPE RANGE OF bukrs
2 TY_CATS_RELEVANT_RANGE Public See coding 20101220 ty_cats_relevant_range TYPE RANGE OF sawe_cats_relevant
3 TY_COST_CENTRE_RANGE Public See coding 20101220 ty_cost_centre_range TYPE RANGE OF kostl
4 TY_EXTERNAL_ID_RANGE Public See coding 20101220 ty_external_id_range TYPE RANGE OF sawe_external_id
5 TY_FC_OBJECT_RANGE Public See coding 20101220 ty_fc_object_range TYPE RANGE OF sawe_forecast_obj
6 TY_FC_OBJ_TYPE_RANGE Public See coding 20101220 ty_fc_obj_type_range TYPE RANGE OF we_engagement_type
7 TY_INTERNAL_KEY_RANGE Public See coding 20101220 ty_internal_key_range TYPE RANGE OF sawe_guid
8 TY_OBJECT_ID_RANGE Public See coding 20101220 ty_object_id_range TYPE RANGE OF swo_objid
9 TY_ORG_UNIT_RANGE Public See coding 20101220 ty_org_unit_range TYPE RANGE OF orgeh
10 TY_PERNR_ENH_FC Public See coding 20101220 BEGIN OF ty_pernr_enh_fc, pernr TYPE pernr_d, enh_fc TYPE sawe_s_enhanced_fc, END OF ty_pernr_enh_fc
11 TY_PERNR_ENH_FCS Public See coding 20101220 ty_pernr_enh_fcs TYPE STANDARD TABLE OF ty_pernr_enh_fc
Method Signatures

Method AUTHORITY_CHECK_ENH_FC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_AUTHORIZED Value transfer Type reference (TYPE) BOOLEAN Boolean Variable (X=True, Space=False) 20100921
2 Importing IV_ACTIVITY Call by reference Type reference (TYPE) ACTIV_AUTH Activity 20100921

Method AUTHORITY_CHECK_ENH_FC on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method AUTHORITY_CHECK_TRANSACTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_AUTHORIZED Call by reference Type reference (TYPE) BOOLE_D Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') 20100921
2 Importing IV_TCODE Call by reference Type reference (TYPE) TSTC-TCODE Transaction Code 20100921

Method AUTHORITY_CHECK_TRANSACTION on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method CHECK_PERIOD_OVERLAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_PERIOD1_BEGIN Call by reference Type reference (TYPE) DATUM Begin of 1st period 20100922
2 Importing IV_PERIOD1_END Call by reference Type reference (TYPE) DATUM End of 1st period 20100922
3 Importing IV_PERIOD2_BEGIN Call by reference Type reference (TYPE) DATUM Begin of 2nd period 20100922
4 Importing IV_PERIOD2_END Call by reference Type reference (TYPE) DATUM End of 2nd period 20100922
5 Returning RV_FLG_OVERLAP Value transfer Type reference (TYPE) BOOLE_D Do periods overlap? 20100922

Method CHECK_PERIOD_OVERLAP on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method CONSTRUCTOR Signature

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

Method DELETE_ENHANCED_FC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGES Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20100920
2 Exporting EV_ERROR_EXISTS Call by reference Type reference (TYPE) BOOLE_D Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') 20100922
3 Importing IT_ENH_FC_DB Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100920
4 Importing IT_FORECAST_OBJ_KEYS Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT_CALLBACK=>OBJECT_KEYS 20100920

Method DELETE_ENHANCED_FC on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_BY_ENH_FC_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENHANCED_FC Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20101220
2 Importing IT_BUKRS_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_BUKRS_RANGE 20101220
3 Importing IT_CATS_RELEVANT_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_CATS_RELEVANT_RANGE 20101220
4 Importing IT_COST_CENTRE_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_COST_CENTRE_RANGE 20101220
5 Importing IT_EXTERNAL_ID_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_EXTERNAL_ID_RANGE 20101220
6 Importing IT_FC_OBJECT_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_FC_OBJECT_RANGE 20101220
7 Importing IT_FC_OBJ_TYPE_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_FC_OBJ_TYPE_RANGE 20101220
8 Importing IT_INTERNAL_KEY_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_INTERNAL_KEY_RANGE 20101220
9 Importing IT_OBJECT_ID_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_OBJECT_ID_RANGE 20101220
10 Importing IT_ORG_UNIT_RANGE Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_ORG_UNIT_RANGE 20101220
11 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20101220
12 Importing IV_CATS_RELEVANT Call by reference Type reference (TYPE) SAWE_CATS_RELEVANT Staff Assignment: CATS-Relevant 20101220
13 Importing IV_COST_CENTRE Call by reference Type reference (TYPE) KOSTL Cost Center 20101220
14 Importing IV_EXTERNAL_ID Call by reference Type reference (TYPE) SAWE_EXTERNAL_ID Staff Assignment External ID 20101220
15 Importing IV_FC_OBJECT Call by reference Type reference (TYPE) SAWE_FORECAST_OBJ Forecast Object 20101220
16 Importing IV_FC_OBJ_TYPE Call by reference Type reference (TYPE) WE_ENGAGEMENT_TYPE Assignment Obj. Type 20101220
17 Importing IV_INTERNAL_KEY Call by reference Type reference (TYPE) SAWE_GUID GUID Generated Internally 20101220
18 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) SWO_OBJID Object ID 20101220
19 Importing IV_ORG_UNIT Call by reference Type reference (TYPE) ORGEH Organizational Unit 20101220
20 Importing IV_VALIDITY_FROM Call by reference Type reference (TYPE) SAWE_DATE_FROM Start Date of Staff Assignment 20101220
21 Importing IV_VALIDITY_TO Call by reference Type reference (TYPE) SAWE_DATE_TO End Date of Staff Assignment 20101220

Method GET_BY_ENH_FC_ATTRIBUTES on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_ENHANCED_FC_DB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENHANCED_FC Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100920

Method GET_ENHANCED_FC_DB on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_ENH_FC_FOR_CCODE_CATS_FLAG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENHANCED_FC Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100930
2 Importing IV_CHK_CATS_FLAG Call by reference Type reference (TYPE) BOOLE_D ABAP_TRUE Check CATS Flag being set('X' - Check Set, ' ' No Check) 20100930
3 Importing IV_COMPANY_CODE Call by reference Type reference (TYPE) BUKRS Company Code 20100930

Method GET_ENH_FC_FOR_CCODE_CATS_FLAG on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_ENH_FC_FOR_COMPANY_CODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENHANCED_FC Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100830
2 Importing IV_COMPANY_CODE Call by reference Type reference (TYPE) BUKRS Company Code 20100830

Method GET_ENH_FC_FOR_COMPANY_CODE on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_ENH_FC_FOR_EMPLOYEE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENH_FC_OBJS Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100922
2 Exporting ET_OBJECT_KEYS Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT_CALLBACK=>OBJECT_KEYS Forecast Object IDs and types 20100922
3 Exporting ET_PERNR_ENH_FC_OBJS Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_PERNR_ENH_FCS Enhanced Forecats Objects with Employee ID 20101220
4 Importing IV_CHK_CATS_FLAG Call by reference Type reference (TYPE) BOOLE_D ABAP_FALSE CATS Relevant Flag 20100923
5 Importing IV_DATE_FROM Call by reference Type reference (TYPE) SAWE_BEGIN_DATE IF_SAWE_SA_CONSTANTS=>GC_DATE_BEGIN Begin Date 20100922
6 Importing IV_DATE_TO Call by reference Type reference (TYPE) SAWE_END_DATE IF_SAWE_SA_CONSTANTS=>GC_DATE_INFINITY End Date 20100922
7 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20100922

Method GET_ENH_FC_FOR_EMPLOYEE on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_ENH_FC_FOR_EMPLOYEE_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENH_FC_OBJS Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20101028
2 Exporting ET_OBJECT_KEYS Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT_CALLBACK=>OBJECT_KEYS Forecast Object IDs and types 20101028
3 Exporting ET_PERNR_ENH_FC_OBJS Call by reference Type reference (TYPE) CL_SAWE_ENHANCED_FORECAST_OBJ=>TY_PERNR_ENH_FCS Enhanced Forecast Objects with Employee ID 20101220
4 Importing IT_EMPLOYEE_ID_LIST Call by reference Type reference (TYPE) SAWE_T_EMP_ID_LIST Personnel Number 20101028
5 Importing IV_CHK_CATS_FLAG Call by reference Type reference (TYPE) BOOLE_D ABAP_FALSE CATS Relevant Flag 20101028
6 Importing IV_DATE_FROM Call by reference Type reference (TYPE) SAWE_BEGIN_DATE IF_SAWE_SA_CONSTANTS=>GC_DATE_BEGIN Begin Date 20101028
7 Importing IV_DATE_TO Call by reference Type reference (TYPE) SAWE_END_DATE IF_SAWE_SA_CONSTANTS=>GC_DATE_INFINITY End Date 20101028

Method GET_ENH_FC_FOR_EMPLOYEE_LIST on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method GET_FORECAST_OBJ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_OBJECT_KEYS Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT_CALLBACK=>OBJECT_KEYS 20100803
2 Importing IS_FC_OBJ Call by reference Type reference (TYPE) TSAWE_DUMMY_OBJ Definition of forecasting object types 20100804
3 Importing IV_COMPANY_CODE Call by reference Type reference (TYPE) BUKRS Company Code 20100803

Method GET_FORECAST_OBJ on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

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_ENHANCED_FORECAST_OBJ Util-Class for Enhanced Forecast Objects 20100803

Method GET_INSTANCE on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method INSERT_ENHANCED_FC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGES Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20100921
2 Exporting EV_ERROR_EXISTS Call by reference Type reference (TYPE) BOOLE_D Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') 20100922
3 Importing IT_ENH_FC_INS Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100921

Method INSERT_ENHANCED_FC on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method LOAD_ENHANCED_FC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENHANCED_FC Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100921
2 Exporting ET_MESSAGES Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20100921

Method LOAD_ENHANCED_FC on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.

Method SET_ENHANCED_FC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ENH_FC_INS Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100804
2 Importing IS_FC_OBJ Call by reference Type reference (TYPE) TSAWE_DUMMY_OBJ Definition of forecasting object types 20100804
3 Importing IT_ENHANCED_FC_DB Call by reference Type reference (TYPE) SAWE_T_ENHANCED_FC Enhanced Forecast Objects 20100804
4 Importing IT_FC_OBJ_KEYS Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT_CALLBACK=>OBJECT_KEYS 20100804

Method SET_ENHANCED_FC on class CL_SAWE_ENHANCED_FORECAST_OBJ has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 606