SAP ABAP Class CL_RSR_RRK0_STOCK_COVER (Stock Coverage calculation)
Hierarchy
SAP_BW (Software Component) SAP Business Warehouse
   BW-BEX-OT (Application Component) OLAP Technology
     RSROA_RT (Package) OLAP: Kernel Runtime
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_RSR_RRK0_SERVICE_BASE Basis for RRK0 Service Classes 20121218
Properties
Class CL_RSR_RRK0_STOCK_COVER  
Short Description Stock Coverage calculation    
Super Class CL_RSR_RRK0_SERVICE_BASE Basis for RRK0 Service Classes 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package RSROA_RT   OLAP: Kernel Runtime 
Created 20121218   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CL_RSR_RRK0_BDATA Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
2 IF_RSR_RRK0_DATA_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
3 RRK0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
4 RSD Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_RSR_RRK0_STOCK_COVER has no interface implemented.
Friends
Class CL_RSR_RRK0_STOCK_COVER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 P_TS_CONV_FACTOR Instance attribute Private Type reference (TYPE) PT_TS_FACTOR 20130301
Methods
# Method Level Visibility Method type Description Created on
1 ADJUST_VALEXCP Instance method Public Method 20130808
2 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20121218
3 COVER_DEMAND Instance method Public Method 20130205
4 ENHANCE_TS_WANZ Instance method Public Method enhance table of BNR with stock and demand BNRs 20130129
5 FILTER_WGR_BY_SCTSID Instance method Public Method filter WGR by stock cover time 20121218
6 GET_CONVERSION_FACTOR Instance method Public Method 20130301
7 GET_SCTSID_START Instance method Public Method determine first period for which stock needs to cover demand 20130710
8 INIT_BDATA Instance method Public Method 20130208
9 IS_EXTRA_PERIOD Instance method Private Method 20130321
10 SET_FIXUNIT_IN_BDATA Instance method Public Method 20130228
11 TOBJ_SHIFT_SID Instance method Private Method Incrementing/Decrementing of the SID for a Time Char 20121219
Events
Class CL_RSR_RRK0_STOCK_COVER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 PT_S_FACTOR Private See coding 20130301 BEGIN OF pt_s_factor, bnr TYPE rrbnr, factor TYPE rsroa_df, END OF pt_s_factor
2 PT_TS_FACTOR Private See coding 20130301 pt_ts_factor TYPE SORTED TABLE OF pt_s_factor WITH UNIQUE KEY bnr
Method Signatures

Method ADJUST_VALEXCP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_S_BDATA_STOCK_COVER Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_S_BDATA 20130808

Method ADJUST_VALEXCP on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_QUERY_RUNTIME Call by reference Object reference (TYPE REF TO) CL_RSR_RRK0_QUERY_RUNTIME 20121218

Method CONSTRUCTOR on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method COVER_DEMAND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_S_BDATA_STOCK Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_S_BDATA 20130208
2 Changing C_S_BDATA_STOCK_COVER Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_S_BDATA 20130205
3 Exporting E_CONTINUE_CALCULATION Call by reference Type reference (TYPE) RS_BOOL continue calculation with next period 20130208
4 Exporting E_SCTSID_NEXT Call by reference Type reference (TYPE) RSSID Master data ID 20130208
5 Importing I_R_AGGRGEN Call by reference Object reference (TYPE REF TO) CL_RSR_RRK0_AGGRGEN Generic Aggregation 20130305
6 Importing I_SCTSID Call by reference Type reference (TYPE) RSSID Master data ID 20130208
7 Importing I_S_BDATA_DEMAND Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_S_BDATA 20130205
8 Importing I_S_STOCK_COVER Call by reference Type reference (TYPE) RRO01_S_STOCK_COVER Stock Coverage 20130208

Method COVER_DEMAND on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method ENHANCE_TS_WANZ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_TS_WANZ Call by reference Type reference (TYPE) RRSI_TS_SID SID (or Integer) Table 20130129

Method ENHANCE_TS_WANZ on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method FILTER_WGR_BY_SCTSID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_R_WGR Call by reference Object reference (TYPE REF TO) DATA 20121218
2 Importing I_SCTSID Call by reference Type reference (TYPE) RSSID stock cover time 20121218
3 Importing I_SX_WGR Call by reference Type reference (TYPE) RRO01_SX_WGR Description of Storage and Aggregation Table 20121218
4 Importing I_WGR Call by reference Type reference (TYPE) DATA 20121218

Method FILTER_WGR_BY_SCTSID on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method GET_CONVERSION_FACTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_BNR Call by reference Type reference (TYPE) RRBNR Absolute Number of the SP Storage Location 20130301
2 Returning R_CONVERSION_FACTOR Value transfer Type reference (TYPE) RSROA_DF Decimal Float Value 20130301

Method GET_CONVERSION_FACTOR on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method GET_SCTSID_START Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_SCTSID_START Call by reference Type reference (TYPE) RSSID first period for which stock needs to cover demand 20130710
2 Importing I_SCTSID_STOCK Call by reference Type reference (TYPE) RSSID Master data ID 20130710
3 Importing I_S_STOCK_COVER Call by reference Type reference (TYPE) RRO01_S_STOCK_COVER Stock Coverage 20130710

Method GET_SCTSID_START on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method INIT_BDATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_S_BDATA_STOCK_COVER Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_S_BDATA 20130208
2 Importing I_R_BDATA Call by reference Object reference (TYPE REF TO) CL_RSR_RRK0_BDATA bdata table (bnr values per setxx char value combination) 20130228
3 Importing I_SCTSID_STOCK Call by reference Type reference (TYPE) RSSID Master data ID 20130318
4 Importing I_S_BDATA_STOCK Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_S_BDATA 20130208
5 Importing I_S_STOCK_COVER Call by reference Type reference (TYPE) RRO01_S_STOCK_COVER Stock Coverage 20130318

Method INIT_BDATA on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method IS_EXTRA_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_SCTSID Call by reference Type reference (TYPE) RSSID Master data ID 20130321
2 Importing I_S_STOCK_COVER Call by reference Type reference (TYPE) RRO01_S_STOCK_COVER Stock Coverage 20130321
3 Returning R_EXTRA_PERIOD Value transfer Type reference (TYPE) RS_BOOL Boolean 20130321

Method IS_EXTRA_PERIOD on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method SET_FIXUNIT_IN_BDATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_TS_BDATA Call by reference Type reference (TYPE) IF_RSR_RRK0_DATA_TYPES=>TN_T_BDATA 20130228

Method SET_FIXUNIT_IN_BDATA on class CL_RSR_RRK0_STOCK_COVER has no exception.

Method TOBJ_SHIFT_SID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_TIMSID Call by reference Type reference (TYPE) RSD_SID Value After Shift 20121219
2 Importing I_EXTRA_PERIOD Call by reference Type reference (TYPE) RS_BOOL Boolean 20121219
3 Importing I_SHIFT Call by reference Type reference (TYPE) I Shift (Pos. or Neg.) 20121219
4 Importing I_TIMNM Call by reference Type reference (TYPE) RSDIOBJ-IOBJNM Name of Time Characteristic 20121219
5 Importing I_TIMSID Call by reference Type reference (TYPE) RSD_SID Value of Time Characteristic 20121219

Method TOBJ_SHIFT_SID on class CL_RSR_RRK0_STOCK_COVER has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 740