SAP ABAP Class RS_BCT_PBPC_CONTROLLER (BBPC: Main controller class for planning functions)
Hierarchy
☛
BI_CONT (Software Component) Business Intelligence Content
⤷
BW-BCT-PSM (Application Component) Public Sector Management
⤷
UPYC_EN (Package) BW: Content BPS for Public Sector Management (English)
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_RSPLFA_SRVTYPE_IMP_EXEC_REF | Planning Function Type: Impl. Execution (with Ref. Data) | 20051124 |
Properties
| Class | RS_BCT_PBPC_CONTROLLER | |
| Short Description | BBPC: Main controller class for planning functions | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | RSBCT_PBPC | |
| Program status | ||
| Category | 0 | |
| Package | UPYC_EN | BW: Content BPS for Public Sector Management (English) |
| Created | 20051118 | SAP |
| Last change | 20141101 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_RSPLFA_SRVTYPE_IMP_EXEC_REF | Planning Function Type: Impl. Execution (with Ref. Data) | 20051124 |
Friends
Class RS_BCT_PBPC_CONTROLLER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | CHAR1 | 'D' | Update type = DELETED | 20051118 | ||
| 2 | Instance attribute | Public | Type reference (TYPE) | RSPBPC_UPDATE_MISSING | '2' | Raise error on update if missing rows for planning update | 20051222 | ||
| 3 | Constant | Public | Type reference (TYPE) | CHAR1 | 'I' | Update type = INSERTED | 20051118 | ||
| 4 | Instance attribute | Public | Type reference (TYPE) | RSPBPC_UPDATE_MISSING | '1' | Create row on update if missing rows for planning update | 20051222 | ||
| 5 | Instance attribute | Public | Type reference (TYPE) | RSPBPC_UPDATE_MISSING | '0' | No action on update if missing rows for planning update | 20051222 | ||
| 6 | Constant | Protected | Type reference (TYPE) | BOOLE_D | 'X' | Constant TRUE | 20051118 | ||
| 7 | Constant | Public | Type reference (TYPE) | RSD_IOBJNM | '0PSM_PBPCSC' | Infoobject 0PSM_PBPCSC | 20080423 | ||
| 8 | Constant | Public | Type reference (TYPE) | CHAR1 | 'U' | Update type = UPDATED | 20051118 | ||
| 9 | Constant | Public | Type reference (TYPE) | CHAR1 | 'S' | Update requested but value unchanged | 20051205 | ||
| 10 | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_CONTROLLER_BRF | BRF Controller | 20051118 | |||
| 11 | Instance attribute | Public | Object reference (TYPE REF TO) | RS_BCT_PBPC_ADD_DATA_SVC | PBPC: Special Data Functions | 20080423 | |||
| 12 | Instance attribute | Protected | Object reference (TYPE REF TO) | RSBCT_PBPC_BADI_CTRL | BAdI instance | 20051216 | |||
| 13 | Instance attribute | Public | Object reference (TYPE REF TO) | RS_BCT_PBPC_SCEN_DB | Data provider for scenario config | 20051124 | |||
| 14 | Instance attribute | Protected | Object reference (TYPE REF TO) | DATA | One row of subset data for unrestricted value | 20051118 | |||
| 15 | Instance attribute | Public | Object reference (TYPE REF TO) | DATA | Reference to ct_th_data | 20051209 | |||
| 16 | Instance attribute | Public | Object reference (TYPE REF TO) | DATA | Reference to reference data table | 20051209 | |||
| 17 | Instance attribute | Protected | Object reference (TYPE REF TO) | DATA | Subset of TH data | 20051118 | |||
| 18 | Instance attribute | Protected | Object reference (TYPE REF TO) | DATA | Subset data before BRF | 20051118 | |||
| 19 | Instance attribute | Protected | Type reference (TYPE) | RSBCT_PBPC_T_TH_FIELD | List of fields for flat structure processing | 20051209 | |||
| 20 | Instance attribute | Protected | Type reference (TYPE) | RSPLF_T_KEYFNM | List of key figures of the infoprovider | 20051208 | |||
| 21 | Instance attribute | Protected | Type reference (TYPE) | RSPLF_T_MSG | Message table | 20051209 | |||
| 22 | Instance attribute | Protected | Type reference (TYPE) | TY_PBPC_EVENT_TAB | List/references of BRF events to call | 20051213 | |||
| 23 | Instance attribute | Protected | Type reference (TYPE) | BRF_APPLCLASS | BRF Application Group | 20051118 | |||
| 24 | Instance attribute | Public | Type reference (TYPE) | RSPBPC_CALC_VARIANT | Calculation variant for PBPC | 20051125 | |||
| 25 | Instance attribute | Protected | Type reference (TYPE) | RSCALYEAR | Planning function parameter value | 20051130 | |||
| 26 | Instance attribute | Private | Type reference (TYPE) | INT4 | Natural number | 20080423 | |||
| 27 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | Indicator: planning function has reference data | 20051130 | |||
| 28 | Instance attribute | Protected | Type reference (TYPE) | RSINFOPROV | Infoprovider for the planning function | 20051128 | |||
| 29 | Instance attribute | Protected | Type reference (TYPE) | CHAR100 | For MESSAGE .... INTO | 20051118 | |||
| 30 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | Infoobject 0PSM_PBPCSC exist in planning cube | 20080423 | |||
| 31 | Instance attribute | Public | Type reference (TYPE) | BOOLE_D | Flag: called by parallel processing | 20051209 | |||
| 32 | Instance attribute | Private | Type reference (TYPE) | INT4 | Nbr of completed RFC tasks | 20051209 | |||
| 33 | Instance attribute | Public | Type reference (TYPE) | RSPBPC_SCEN_ID | PBPC Scenario ID | 20051124 | |||
| 34 | Instance attribute | Protected | Type reference (TYPE) | TIMESTAMPL | Start of INIT_EXECUTION | 20051223 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Add message from system data | 20051209 | |
| 2 | Instance method | Public | Method | Run calculation from RFC function call | 20051209 | |
| 3 | Instance method | Protected | Method | Execute the call for a parallel processing batch | 20051212 | |
| 4 | Static method | Public | Method | Convert one TH row to a string for RFC processing | 20051209 | |
| 5 | Static method | Public | Method | Convert one TH row to a string for RFC processing | 20051209 | |
| 6 | Instance method | Protected | Method | Create list of fields in flat structure for RFC | 20051209 | |
| 7 | Instance method | Protected | Method | Create dynamic data references for planning data | 20051118 | |
| 8 | Instance method | Protected | Method | Perform the calculation | 20051209 | |
| 9 | Instance method | Public | Method | Get BRF controller | 20080423 | |
| 10 | Instance method | Protected | Method | Instantiate BRF Controller and Event objects | 20051118 | |
| 11 | Instance method | Public | Method | Get reference to subset data table | 20051118 | |
| 12 | Instance method | Public | Method | Get line of subset data for unrestricted values | 20051118 | |
| 13 | Instance method | Protected | Method | Write TH data to flat string for RFC processing | 20051209 | |
| 14 | Instance method | Protected | Method | Process a data subset through BRF | 20051118 | |
| 15 | Instance method | Public | Method | Receive result from asynch RFC call | 20051209 | |
| 16 | Instance method | Public | Method | Update one row of subset data | 20051205 | |
| 17 | Instance method | Public | Method | Update subset table with values from BRF processing | 20051129 | |
| 18 | Instance method | Protected | Method | Write TH data to flat string for RFC processing | 20051209 |
Events
Class RS_BCT_PBPC_CONTROLLER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_PBPC_EVENT | Protected | See coding | 20051213 | BEGIN OF ty_pbpc_event,
event TYPE brf_event,
r_event TYPE REF TO cl_event_base_brf,
END OF ty_pbpc_event
|
||
| 2 | TY_PBPC_EVENT_TAB | Protected | See coding | 20051213 | ty_pbpc_event_tab TYPE STANDARD TABLE OF ty_pbpc_event
|
Method Signatures
Method ADD_MSG Signature
Method ADD_MSG on class RS_BCT_PBPC_CONTROLLER has no parameter.
Method ADD_MSG on class RS_BCT_PBPC_CONTROLLER has no exception.
Method CALCULATE_FROM_RFC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_TH_DATA | Call by reference | Type reference (TYPE) | HASHED TABLE | Planning data | 20051209 | |||
| 2 | ET_MESSAGES | Call by reference | Type reference (TYPE) | RSPLF_T_MSG | Messages issued while processing | 20051209 | |||
| 3 | IT_KEYFNM | Call by reference | Type reference (TYPE) | RSPLF_T_KEYFNM | Table of Key Figures | 20051209 | |||
| 4 | IT_SORT_FIELDS | Call by reference | Type reference (TYPE) | ABAP_SORTORDER_TAB | Table for SORT itab BY (ABAP_SORTORDER_TAB) | 20051209 | |||
| 5 | I_BRF_APPLCLASS | Call by reference | Type reference (TYPE) | BRF_APPLCLASS | BRF: Application Class | 20051209 | |||
| 6 | I_CALC_VARIANT | Call by reference | Type reference (TYPE) | RSPBPC_CALC_VARIANT | Calculation variant for PBPC | 20051209 | |||
| 7 | I_SCEN_ID | Call by reference | Type reference (TYPE) | RSPBPC_SCEN_ID | Personnel Budget Calculator Scenario ID | 20051209 |
Method CALCULATE_FROM_RFC on class RS_BCT_PBPC_CONTROLLER has no exception.
Method CALL_RFC_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_TH_SUBSET | Call by reference | Type reference (TYPE) | STANDARD TABLE | Subset of data to process in task | 20051212 | |||
| 2 | C_SENT_TASKS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20051212 | |||
| 3 | IT_SORT_FIELDS | Call by reference | Type reference (TYPE) | ABAP_SORTORDER_TAB | Table for SORT itab BY (ABAP_SORTORDER_TAB) | 20051212 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Failed to start RFC tast | 20051212 |
Method CONVERT_FLAT_ROW_TO_TH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_IS_REF_DATA | Call by reference | Type reference (TYPE) | BOOLE_D | Did this row come from reference data? | 20051212 | |||
| 2 | E_TH | Call by reference | Type reference (TYPE) | ANY | Data in regular TH structure | 20051209 | |||
| 3 | IT_FIELDS | Call by reference | Type reference (TYPE) | RSBCT_PBPC_T_TH_FIELD | List of fields in TH | 20051209 | |||
| 4 | I_STRING | Call by reference | Type reference (TYPE) | STRING | Data as a flat string | 20051209 |
Method CONVERT_FLAT_ROW_TO_TH on class RS_BCT_PBPC_CONTROLLER has no exception.
Method CONVERT_TH_ROW_TO_FLAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_STRING | Call by reference | Type reference (TYPE) | STRING | 20051209 | ||||
| 2 | IT_FIELDS | Call by reference | Type reference (TYPE) | RSBCT_PBPC_T_TH_FIELD | List of fields in TH | 20051209 | |||
| 3 | I_TH | Call by reference | Type reference (TYPE) | ANY | 20051209 |
Method CONVERT_TH_ROW_TO_FLAT on class RS_BCT_PBPC_CONTROLLER has no exception.
Method CREATE_FIELD_LIST_TAB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_TH_COMBINED | Call by reference | Type reference (TYPE) | STANDARD TABLE | 20051209 |
Method CREATE_FIELD_LIST_TAB on class RS_BCT_PBPC_CONTROLLER has no exception.
Method CREATE_SUBSET_ITAB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_TH_DATA | Call by reference | Type reference (TYPE) | HASHED TABLE | Data passed to planning function | 20051118 |
Method CREATE_SUBSET_ITAB on class RS_BCT_PBPC_CONTROLLER has no exception.
Method DO_CALCULATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_TH_DATA | Call by reference | Type reference (TYPE) | HASHED TABLE | Planning data | 20051209 | |||
| 2 | IT_SORT_FIELDS | Call by reference | Type reference (TYPE) | ABAP_SORTORDER_TAB | Table for SORT itab BY (ABAP_SORTORDER_TAB) | 20051209 | |||
| 3 | IT_TH_COMBINED | Call by reference | Type reference (TYPE) | STANDARD TABLE | Combined reference and TH data | 20051209 |
Method DO_CALCULATION on class RS_BCT_PBPC_CONTROLLER has no exception.
Method GET_BRF_CONTROLLER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RE_BRF_CONTROLLER | Value transfer | Object reference (TYPE REF TO) | IF_CONTROLLER_BRF | BRF: Controller | 20080423 |
Method GET_BRF_CONTROLLER on class RS_BCT_PBPC_CONTROLLER has no exception.
Method GET_BRF_CONTROLLER_EVENT Signature
Method GET_BRF_CONTROLLER_EVENT on class RS_BCT_PBPC_CONTROLLER has no parameter.
Method GET_BRF_CONTROLLER_EVENT on class RS_BCT_PBPC_CONTROLLER has no exception.
Method GET_SUBSET_TABLE_REF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ER_SUBSET | Value transfer | Object reference (TYPE REF TO) | DATA | Subset data table reference | 20051118 | |||
| 2 | IR_EVENT | Call by reference | Object reference (TYPE REF TO) | IF_EVENT_BRF | BRF Event | 20051118 |
Method GET_SUBSET_TABLE_REF on class RS_BCT_PBPC_CONTROLLER has no exception.
Method GET_UNRESTRICTED_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ER_DATA | Call by reference | Type reference (TYPE) | ANY | Unrestricted values line | 20051118 | |||
| 2 | IR_EVENT | Call by reference | Object reference (TYPE REF TO) | IF_EVENT_BRF | BRF Event | 20051118 |
Method GET_UNRESTRICTED_VALUE on class RS_BCT_PBPC_CONTROLLER has no exception.
Method LOAD_TH_FROM_FLAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_TH_DATA | Call by reference | Type reference (TYPE) | HASHED TABLE | TH Data | 20051209 | |||
| 2 | IT_TH_STRING | Call by reference | Type reference (TYPE) | RSBCT_PBPC_T_STRING | TH Data as table of strings | 20051209 |
Method LOAD_TH_FROM_FLAT on class RS_BCT_PBPC_CONTROLLER has no exception.
Method PROCESS_SUBSET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_TH_DATA | Call by reference | Type reference (TYPE) | HASHED TABLE | Data passed to planning function | 20051118 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during BRF processing | 20051125 |
Method RECEIVE_RFC_RESULT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TASK | Call by reference | Type reference (TYPE) | CLIKE | 20051209 |
Method RECEIVE_RFC_RESULT on class RS_BCT_PBPC_CONTROLLER has no exception.
Method UPDATE_SUBSET_ROW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_CHA_CHANGED | Call by reference | Type reference (TYPE) | BOOLE_D | Change in Characteristic value? | 20051223 | |||
| 2 | C_KF_CHANGED | Call by reference | Type reference (TYPE) | BOOLE_D | Change in Key Figure value? | 20051223 | |||
| 3 | C_SUBSET | Call by reference | Type reference (TYPE) | ANY | Subset table line | 20051223 | |||
| 4 | I_IS_KEYFIGURE | Call by reference | Type reference (TYPE) | BOOLE_D | Is the infoobject a Key Figure | 20051205 | |||
| 5 | I_IS_NEW_ROW | Call by reference | Type reference (TYPE) | BOOLE_D | Are we inserting a new row | 20051222 | |||
| 6 | I_NEW_VALUE | Call by reference | Type reference (TYPE) | ANY | Value calculated by BRF | 20051205 | |||
| 7 | I_TARGET_IOBJNM | Call by reference | Type reference (TYPE) | RSIOBJNM | InfoObject | 20051205 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Infoobject to update does not exist | 20051223 |
Method UPDATE_SUBSET_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_EXPRESSIONS | Call by reference | Type reference (TYPE) | RSBCT_PBPC_APRM_RUNTIME_T | Update target/value expressions | 20051129 | |||
| 2 | I_RESTRICT_EXPR | Call by reference | Type reference (TYPE) | RSBCT_PBPC_APRM_RESULT | Expression data for restrction expression | 20051222 | |||
| 3 | I_UPDATE_SETTINGS | Call by reference | Type reference (TYPE) | RSBCT_PBPC_AUPD | Update Action settings for BRF | 20051222 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Action definition requests error when row does not exist | 20051223 | ||
| 2 | Invalid parameter values | 20051129 |
Method WRITE_TH_TO_FLAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_TH_STRING | Call by reference | Type reference (TYPE) | RSBCT_PBPC_T_STRING | TH data in string table | 20051209 | |||
| 2 | IT_TH_COMBINED | Call by reference | Type reference (TYPE) | STANDARD TABLE | Input itab in normal structure | 20051209 |
Method WRITE_TH_TO_FLAT on class RS_BCT_PBPC_CONTROLLER has no exception.
History
| Last changed by/on | SAP | 20141101 |
| SAP Release Created in | 703 |