SAP ABAP Class /RPM/CL_PLAN_DISTRIBUTION (Advanced Distribution for Financial/Capacity Planning)
Hierarchy
CPRXRPM (Software Component) SAP Portfolio and Project Management 6.0
   PPM-PFM (Application Component) Portfolio Management
     /RPM/API (Package) xRPM External Interfaces
Properties
Class /RPM/CL_PLAN_DISTRIBUTION  
Short Description Advanced Distribution for Financial/Capacity Planning    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package /RPM/API   xRPM External Interfaces 
Created 20070216   SAP 
Last change 20141109    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class /RPM/CL_PLAN_DISTRIBUTION has no forward declaration.
Interfaces
Class /RPM/CL_PLAN_DISTRIBUTION has no interface implemented.
Friends
Class /RPM/CL_PLAN_DISTRIBUTION has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 SC_CAPACITY_PLANNING Static Attribute Public Type reference (TYPE) /RPM/TV_FIN_CAP '2' Capacity Planning 20070801
2 SC_DIST_TYPE_CALENDAR_DAYS Static Attribute Public Type reference (TYPE) /RPM/TV_PLAN_DIST '2' Distribution based on Calendar Days 20070323
3 SC_DIST_TYPE_FACTORY_CALENDAR Static Attribute Public Type reference (TYPE) /RPM/TV_PLAN_DIST '1' Distribution based on Factory Calendar Working Days 20070323
4 SC_DIST_TYPE_FIXED_MONTH_DAYS Static Attribute Public Type reference (TYPE) /RPM/TV_PLAN_DIST '3' Distribution based on Fixed Number of Days per Month 20070323
5 SC_DIST_TYPE_MONTHS_IN_PERIOD Static Attribute Public Type reference (TYPE) /RPM/TV_PLAN_DIST '4' Distribution based on Number of Months in a period 20070323
6 SC_FINANCIAL_PLANNING Static Attribute Public Type reference (TYPE) /RPM/TV_FIN_CAP '1' Financial Planning 20070801
Methods
# Method Level Visibility Method type Description Created on
1 ADD_SUB_SET_DISTRIBUTION Static method Public Method Adds, subtracts or sets the required amount or capacity. 20070219
2 ADVANCED_DISTRIBUTION Static method Public Method Perform Advanced distribution for Financial/Capacity Plannin 20070216
3 CALCULATE_NO_OF_DAYS Static method Public Method Calculate number of working days 20070219
4 CALCULATE_NO_OF_WORKDAYS Static method Public Method Calculate number of working days based on a calendar. 20070217
5 CONVERT_DATE_TO_PERIOD Static method Public Method Convert date to start of its period based on breakdown type 20070219
6 DIVIDE_INTEGRATION_DATA Static method Public Method Divides the int data based on distribution type into months 20070604
7 FIND_CALENDAR Static method Public Method Returns calendar id for a bucket or item or what-if. 20070216
8 FIND_CAP_DISTRIBUTION_TYPE Static method Public Method Return the distribution type of a capacity group 20070323
9 FIND_FIN_DISTRIBUTION_TYPE Static method Public Method Return the distribution type of a financial group 20070220
10 GET_LAST_DAY_OF_MONTH Static method Public Method Method for returning the last date of a month. 20070219
11 GET_LAST_DAY_OF_PERIOD Static method Public Method Return the last date of a period based on breakdown type 20070219
12 GET_NUMBER_OF_MONTHS Static method Public Method Gets number of months between start and end dates 20090911
Events
Class /RPM/CL_PLAN_DISTRIBUTION has no event.
Types
Class /RPM/CL_PLAN_DISTRIBUTION has no local type.
Method Signatures

Method ADD_SUB_SET_DISTRIBUTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PLAN Value transfer Type reference (TYPE) /RPM/TT_PLAN_API Plan Data 20070219
2 Exporting ET_MSG Value transfer Type reference (TYPE) /RPM/TT_MESSAGES Table Type for Messages 20070219
3 Importing IT_DIST Value transfer Type reference (TYPE) /RPM/TT_PLAN_DISTRIBUTION Financial/Capacity Planning - Advanced Distribution 20070219
4 Importing IV_ACTION_TYPE Value transfer Type reference (TYPE) /RPM/TV_ACTION_TYPE Action type for Fin/Cap Planning Distribution 20070219
5 Importing IV_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070219
6 Importing IV_PLAN_TYPE Value transfer Type reference (TYPE) /RPM/TV_PLAN_TYPE Plan Type 20070219

Method ADD_SUB_SET_DISTRIBUTION on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method ADVANCED_DISTRIBUTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PLAN Value transfer Type reference (TYPE) /RPM/TT_PLAN_API Plan Data 20070216
2 Exporting ET_MSG Value transfer Type reference (TYPE) /RPM/TT_MESSAGES Table Type for Messages 20070216
3 Importing IV_ACTION Value transfer Type reference (TYPE) /RPM/TV_ACTION_TYPE Action type for Fin/Cap Planning Distribution 20070216
4 Importing IV_AMOUNT Value transfer Type reference (TYPE) RPM_TV_CAPACITY xRPM Capacity Amount 20070216
5 Importing IV_BASE Value transfer Type reference (TYPE) /RPM/TV_CALC_BASE Calculation Base for Fin/Cap Planning Advanced Distribution 20070216
6 Importing IV_CALENDAR Value transfer Type reference (TYPE) SCAL-FCALID Factory Calendar 20070217
7 Importing IV_DIST_TYPE Value transfer Type reference (TYPE) /RPM/TV_PLAN_DIST Distribution Type for Financial/Capacity Planning 20070216
8 Importing IV_FIN_CAP Value transfer Type reference (TYPE) /RPM/TV_FIN_CAP Financial or capacity planning 20080303
9 Importing IV_FY_VARIANT Value transfer Type reference (TYPE) PERIV Fiscal Year Variant 20100601
10 Importing IV_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070216
11 Importing IV_PERIOD_TYPE Value transfer Type reference (TYPE) /RPM/TV_PERIOD_TYPE Period Breakdown 20070216
12 Importing IV_PLAN_TYPE Value transfer Type reference (TYPE) /RPM/TV_PLAN_TYPE Plan Type 20070216
13 Importing IV_VALID_FROM Value transfer Type reference (TYPE) BEGDA Start Date 20070216
14 Importing IV_VALID_TO Value transfer Type reference (TYPE) ENDDA End Date 20070216

Method ADVANCED_DISTRIBUTION on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method CALCULATE_NO_OF_DAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FROM Value transfer Type reference (TYPE) BEGDA Start Date 20070219
2 Importing IV_FY_VARIANT Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20100426
3 Importing IV_PERIOD Value transfer Type reference (TYPE) /RPM/TV_PERIOD_ID xRPM Period ID 20070219
4 Importing IV_PERIOD_TYPE Value transfer Type reference (TYPE) /RPM/TV_PERIOD_TYPE Period Breakdown 20070219
5 Importing IV_TO Value transfer Type reference (TYPE) ENDDA End Date 20070219
6 Returning RV_DAYS Value transfer Type reference (TYPE) I 20070219

Method CALCULATE_NO_OF_DAYS on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method CALCULATE_NO_OF_WORKDAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CALENDAR_ID Value transfer Type reference (TYPE) SCAL-FCALID Factory Calendar 20070217
2 Importing IV_FROM Value transfer Type reference (TYPE) BEGDA Start Date 20070217
3 Importing IV_FY_VARIANT Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20100427
4 Importing IV_PERIOD Value transfer Type reference (TYPE) /RPM/TV_PERIOD_ID xRPM Period ID 20070217
5 Importing IV_PERIOD_TYPE Value transfer Type reference (TYPE) /RPM/TV_PERIOD_TYPE Period Breakdown 20070217
6 Importing IV_TO Value transfer Type reference (TYPE) ENDDA Field of type DATS 20070217
7 Returning RV_DAYS Value transfer Type reference (TYPE) I Number of days 20070217

Method CALCULATE_NO_OF_WORKDAYS on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method CONVERT_DATE_TO_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_PERIOD Value transfer Type reference (TYPE) /RPM/TV_PERIOD_ID xRPM Period ID 20070219
2 Importing IV_DATE Value transfer Type reference (TYPE) DATS Field of type DATS 20070219
3 Importing IV_FY_VARIANT Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20100426
4 Importing IV_PERIOD_TYPE Value transfer Type reference (TYPE) /RPM/TV_PERIOD_TYPE Period Breakdown 20070219

Method CONVERT_DATE_TO_PERIOD on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method DIVIDE_INTEGRATION_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PERIOD_AMOUNTS Value transfer Type reference (TYPE) /RPM/TT_PERIOD_AMOUNT Periods and Distributed amounts 20070606
2 Importing IS_ITEM_ATTRIBUTES Call by reference Type reference (TYPE) /RPM/TS_ITEM_D_API Portfolio Item Attributes; external 20100504
3 Importing IT_SKIP_YEARS Value transfer Type reference (TYPE) /RPM/TT_FYEAR_LIST Table type for fiscal year list 20090811
4 Importing IV_AMOUNT Value transfer Type reference (TYPE) RPM_TV_CAPACITY Currency Amount 20070606
5 Importing IV_CALENDAR_ID Value transfer Type reference (TYPE) SCAL-FCALID Factory Calendar 20070604
6 Importing IV_DIST_TYPE Value transfer Type reference (TYPE) /RPM/TV_PLAN_DIST Distribution Type for Financial/Capacity Planning 20070604
7 Importing IV_END_DATE Value transfer Type reference (TYPE) ENDDA End Date 20070604
8 Importing IV_FIN_DATA Value transfer Type reference (TYPE) RPM_FLAG ' ' Flag 20090824
9 Importing IV_FY_VARIANT Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20100413
10 Importing IV_PERIOD_TYPE Value transfer Type reference (TYPE) RPM_TV_PERTYPE Period Type 20070604
11 Importing IV_START_DATE Value transfer Type reference (TYPE) BEGDA Start Date 20070604

Method DIVIDE_INTEGRATION_DATA on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method FIND_CALENDAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_OBJECT_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070216
2 Importing IV_OBJECT_TYPE Value transfer Type reference (TYPE) /RPM/OBJECT_TYPE Object Type 20070216
3 Returning RV_CALENDAR Value transfer Type reference (TYPE) SCAL-FCALID Factory Calendar 20070323

Method FIND_CALENDAR on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method FIND_CAP_DISTRIBUTION_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CATEGORY_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070323
2 Importing IV_CATEGORY_ID Value transfer Type reference (TYPE) /RPM/TV_CAP_CATG 20070323
3 Importing IV_GROUP_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070323
4 Importing IV_GROUP_ID Value transfer Type reference (TYPE) RPM_TV_EXTID 20070323
5 Importing IV_IS_BUCKET Value transfer Type reference (TYPE) CHAR1 Single-Character Flag 20070323
6 Returning RV_DISTRIBUTION Value transfer Type reference (TYPE) /RPM/TV_PLAN_DIST Distribution Type for Financial/Capacity Planning 20070323

Method FIND_CAP_DISTRIBUTION_TYPE on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method FIND_FIN_DISTRIBUTION_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CATEGORY_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070220
2 Importing IV_CATEGORY_ID Value transfer Type reference (TYPE) /RPM/TV_FIN_CATG 20070220
3 Importing IV_GROUP_GUID Value transfer Type reference (TYPE) RPM_TV_GUID Guid for application objects 20070220
4 Importing IV_GROUP_ID Value transfer Type reference (TYPE) RPM_TV_EXTID 20070220
5 Importing IV_IS_BUCKET Value transfer Type reference (TYPE) CHAR1 Single-Character Flag 20070323
6 Returning RV_DISTRIBUTION Value transfer Type reference (TYPE) /RPM/TV_PLAN_DIST Distribution Type for Financial/Capacity Planning 20070323

Method FIND_FIN_DISTRIBUTION_TYPE on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method GET_LAST_DAY_OF_MONTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LAST_DATE Value transfer Type reference (TYPE) DATS Field of type DATS 20070219
2 Importing IV_DATE Value transfer Type reference (TYPE) DATS Field of type DATS 20070219

Method GET_LAST_DAY_OF_MONTH on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method GET_LAST_DAY_OF_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LAST_DATE Value transfer Type reference (TYPE) DATS Field of type DATS 20070219
2 Importing IV_FY_VARIANT Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20100426
3 Importing IV_PERIOD Value transfer Type reference (TYPE) /RPM/TV_PERIOD_ID xRPM Period ID 20070219
4 Importing IV_PERIOD_TYPE Value transfer Type reference (TYPE) /RPM/TV_PERIOD_TYPE Period Breakdown 20070219

Method GET_LAST_DAY_OF_PERIOD on class /RPM/CL_PLAN_DISTRIBUTION has no exception.

Method GET_NUMBER_OF_MONTHS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE_FROM Call by reference Type reference (TYPE) BEGDA Start Date 20090911
2 Importing IV_DATE_TO Call by reference Type reference (TYPE) ENDDA End Date 20090911
3 Importing IV_FY_VARIANT Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20100601
4 Returning RV_MONTHS Value transfer Type reference (TYPE) I 20090911

Method GET_NUMBER_OF_MONTHS on class /RPM/CL_PLAN_DISTRIBUTION has no exception.
History
Last changed by/on SAP  20141109 
SAP Release Created in 450