SAP ABAP Class CL_WCCP_CALC_LOSS_OF_TIME_SAMP (Example Implementation)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   PM (Application Component) Plant Maintenance
     PMEX (Package) PM: Extraction of Release-independent Objects
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_BADI_INTERFACE Tag Interface for BAdIs 20110711
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_EX_WCCP_CALC_LOSS_OF_TIME Adjust tasklist on extraction from Orders and Notifs 20110711
Properties
Class CL_WCCP_CALC_LOSS_OF_TIME_SAMP  
Short Description Example Implementation    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PMEX   PM: Extraction of Release-independent Objects 
Created 20110711   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CL_WORKCENTER_CAPACITY Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
# Interface Abstract Final Description Created on
1 IF_BADI_INTERFACE Tag Interface for BAdIs 20110711
2 IF_EX_WCCP_CALC_LOSS_OF_TIME Adjust tasklist on extraction from Orders and Notifs 20110711
Friends
Class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_BEG_DAY Constant Protected Type reference (TYPE) T '000000' 20110711
2 GC_END_DAY Constant Protected Type reference (TYPE) T '240000' 20110711
3 GC_KREUZ Constant Protected Type reference (TYPE) CHAR01 'X' 20110711
4 GC_SEK_DAY Constant Protected Type reference (TYPE) KAPBEGZT 86400 20110711
5 GC_SEK_H Constant Protected Type reference (TYPE) KAPBEGZT 3600 20110711
6 GT_PMWCCP_BW_EXT Instance attribute Protected Type reference (TYPE) T_PMWCCP_BW_EXT 20110711
Methods
# Method Level Visibility Method type Description Created on
1 ASSIGNMENT_BD_TIMES_TO_SHIFTS Instance method Protected Method Assignment of Maintenance Times to Shifts 20110711
2 CALCULATE_LOSS_OF_TIME Instance method Protected Method Main Routine - Preparation and Calculation 20110711
3 CALCULATION Instance method Protected Method Calculation 20110711
4 CORRECT_DOUBLE_USED_SHIFTS Instance method Protected Method Clear Time for Double-Booked and Overlapping Shifts 20110711
5 DET_BREAKS_AND_CALCULATE Instance method Protected Method Determination of Breaks 20110711
6 DET_OVERLAPPING_RECORDS Instance method Protected Method Determine Overlapping Breakdown Times for Next Throughput 20110711
7 FILL_TABLES_EXTENDED_VERSION Instance method Protected Method Fill Internal Tables and Enhance with Date-Time Conversion 20110711
Events
Class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 BREAKDOWNINFO_EXT Protected See coding 20110711 begin of breakdowninfo_ext, ARBPL Type ARBPL, ARBPLWERK Type QARBPWERKS, AUSVN Type AUSVN, AUSBS Type AUSBS, AUZTV Type AUZTV, AUZTB Type AUZTB, URCOD Type URCOD, TPLNR Type TPLNR, EQUNR Type EQUNR, ILOAN Type ILOAN, QMNUM Type QMNUM, PPSID Type PPSID, SWERK Type SWERK, from_bd type f, to_bd type f, end of breakdowninfo_ext
2 PMWCCP_BW_EXT Protected See coding 20110711 begin of pmwccp_bw_ext, ARBPL Type ARBPL, WERKS Type WERKS_D, VERWE Type AP_VERWE, KAPAR Type KAPAR, DATUM Type SYDATUM, WEEK Type SYFWEEK, TAGNR Type CR_TAGNR, WDAY Type KAP_WOTAG, SCHNR Type SCHICHTNR, BREAKDOWN Type NUMC_3, ANZSH Type ANZSCHICHT, TPROG Type KAPTPROG, ANZTG Type DZYKDAU, ANZHL Type KAPANZAHL, BEGZT Type BEGZT, ENDZT Type ENDZT, EINZH Type KAPEINZT_H, KAPEH Type CR_KAPEH, KAPAZ Type KAPAZIT_EH, PAUSE Type KAPPAUZEIT, NGRAD Type NUTZGRAD, KKOPF Type KKOPF, UEBERLAST Type UEBERLAST, TZONE Type TZNZONESYS, URCOD Type URCOD, AUSVN Type AUSVN, AUZTV Type AUZTV, AUSBS Type AUSBS, AUZTB Type AUZTB, LOFFT Type KAPAZIT_EH, TPLNR Type TPLNR, EQUNR Type EQUNR, QMNUM Type QMNUM, from type f, to type f, from_bd type f, to_bd type f, index type sytabix, from_ind type sytabix, to_ind type sytabix, end of pmwccp_bw_ext
3 T_BREAKDOWNINFO_EXT Protected See coding 20110711 t_breakdowninfo_ext type standard table of breakdowninfo_ext
4 T_PMWCCP_BW_EXT Protected See coding 20110711 t_pmwccp_bw_ext type standard table of pmwccp_bw_ext
Method Signatures

Method ASSIGNMENT_BD_TIMES_TO_SHIFTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BREAKDOWNINFO_EXT Call by reference Type reference (TYPE) T_BREAKDOWNINFO_EXT 20110711
2 Changing CT_PMWCCP_BW_EXT Call by reference Type reference (TYPE) T_PMWCCP_BW_EXT 20110711
3 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711

Method ASSIGNMENT_BD_TIMES_TO_SHIFTS on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.

Method CALCULATE_LOSS_OF_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PMWCCP_BW Call by reference Type reference (TYPE) T_PMWCCP_BW 20110711
2 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711
3 Exporting ET_BREAKDOWNINFO_REST Call by reference Type reference (TYPE) T_BREAKDOWNINFO 20110711
4 Importing IT_BREAKDOWNINFO Call by reference Type reference (TYPE) T_BREAKDOWNINFO 20110711
5 Importing IT_TC37A Call by reference Type reference (TYPE) TT_TC37A 20110711
6 Importing IT_WORKCENTER_KALID Call by reference Type reference (TYPE) CL_WORKCENTER_CAPACITY=>T_WORKCENTER_KALID 20110711
7 Importing IV_ARBPL Call by reference Type reference (TYPE) ARBPL 20110711
8 Importing IV_SEL_DATE_FROM Call by reference Type reference (TYPE) DATUV 20110711
9 Importing IV_SEL_DATE_TO Call by reference Type reference (TYPE) DATUB 20110711
10 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D 20110711

Method CALCULATE_LOSS_OF_TIME on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.

Method CALCULATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PMWCCP_BW Call by reference Type reference (TYPE) T_PMWCCP_BW 20110711
2 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711
3 Importing IT_PMWCCP_BW_EXT Call by reference Type reference (TYPE) T_PMWCCP_BW_EXT 20110711
4 Importing IT_TC37A Call by reference Type reference (TYPE) TT_TC37A 20110711
5 Importing IT_WORKCENTER_KALID Call by reference Type reference (TYPE) CL_WORKCENTER_CAPACITY=>T_WORKCENTER_KALID 20110711
6 Importing IV_ARBPL Call by reference Type reference (TYPE) ARBPL 20110711
7 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D 20110711

Method CALCULATION on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.

Method CORRECT_DOUBLE_USED_SHIFTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_RESULT_TABLE Call by reference Type reference (TYPE) T_PMWCCP_BW 20110711
2 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711
3 Importing IV_ARBPL Call by reference Type reference (TYPE) ARBPL 20110711
4 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D 20110711

Method CORRECT_DOUBLE_USED_SHIFTS on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.

Method DET_BREAKS_AND_CALCULATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711
2 Exporting ET_TC37P Call by reference Type reference (TYPE) TT_TC37P 20110711
3 Exporting EV_BREAKS Call by reference Type reference (TYPE) TIMS 20110711
4 Importing IT_TC37A Call by reference Type reference (TYPE) TT_TC37A 20110711
5 Importing IT_WORKCENTER_KALID Call by reference Type reference (TYPE) CL_WORKCENTER_CAPACITY=>T_WORKCENTER_KALID 20110711
6 Importing IV_ARBPL Call by reference Type reference (TYPE) ARBPL 20110711
7 Importing IV_DATUM Call by reference Type reference (TYPE) DATS 20110711
8 Importing IV_KAPAR Call by reference Type reference (TYPE) KAPAR 20110711
9 Importing IV_TIMEFROM Call by reference Type reference (TYPE) BEGZT 20110711
10 Importing IV_TIMETO Call by reference Type reference (TYPE) ENDZT 20110711
11 Importing IV_TPROG Call by reference Type reference (TYPE) TPROG 20110711
12 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D 20110711

Method DET_BREAKS_AND_CALCULATE on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.

Method DET_OVERLAPPING_RECORDS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BREAKDOWNINFO_EXT Call by reference Type reference (TYPE) T_BREAKDOWNINFO_EXT 20110711
2 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711
3 Exporting ET_BREAKDOWNINFO_REST Call by reference Type reference (TYPE) T_BREAKDOWNINFO 20110711
4 Importing IT_PMWCCP_BW_EXT Call by reference Type reference (TYPE) T_PMWCCP_BW_EXT 20110711
5 Importing IV_ARBPL Call by reference Type reference (TYPE) ARBPL 20110711
6 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D 20110711

Method DET_OVERLAPPING_RECORDS on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.

Method FILL_TABLES_EXTENDED_VERSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PMWCCP_BW_EXT Call by reference Type reference (TYPE) T_PMWCCP_BW_EXT 20110711
2 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB 20110711
3 Exporting ET_BREAKDOWNINFO_EXT Call by reference Type reference (TYPE) T_BREAKDOWNINFO_EXT 20110711
4 Exporting ET_PMWCCP_BW_EXT Call by reference Type reference (TYPE) T_PMWCCP_BW_EXT 20110711
5 Importing IT_BREAKDOWNINFO Call by reference Type reference (TYPE) T_BREAKDOWNINFO 20110711
6 Importing IT_PMWCCP_BW Call by reference Type reference (TYPE) T_PMWCCP_BW 20110711
7 Importing IV_ARBPL Call by reference Type reference (TYPE) ARBPL 20110711
8 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D 20110711

Method FILL_TABLES_EXTENDED_VERSION on class CL_WCCP_CALC_LOSS_OF_TIME_SAMP has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 606