SAP ABAP Class CL_TBA_PERIODS_EXAMPLE (Example Implementation of Period BAdI)
Hierarchy
PI_BASIS (Software Component) Basis Plug-In
   CA-GTF-TRB (Application Component) Financial Risk Management Basis
     FTRMP_SFWS_C01S01 (Package) Treasury Basis Objects - Switched Objects EHP7 of EA-FINSERV
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 20130325
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_BADI_TBA_DCS_DYN_PERIODS Interface for BAdI: BADI_TBA_DCS_DYN_PERIODS 20130325
Properties
Class CL_TBA_PERIODS_EXAMPLE  
Short Description Example Implementation of Period BAdI    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package FTRMP_SFWS_C01S01   Treasury Basis Objects - Switched Objects EHP7 of EA-FINSERV 
Created 20130319   SAP 
Last change 20131127   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)
Interfaces
# Interface Abstract Final Description Created on
1 IF_BADI_INTERFACE Tag Interface for BAdIs 20130325
2 IF_BADI_TBA_DCS_DYN_PERIODS Interface for BAdI: BADI_TBA_DCS_DYN_PERIODS 20130325
Friends
Class CL_TBA_PERIODS_EXAMPLE has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CV_MONTHS_IN_ADVANCE Constant Private Type reference (TYPE) INT2 3 2 byte integer (signed) 20130325
2 MO_PERIODS_SERVICES Instance attribute Private Object reference (TYPE REF TO) LIF_PERIODS_SERVICES 20130325
Methods
# Method Level Visibility Method type Description Created on
1 ADD_FUTURES Instance method Private Method Add future periods 20130325
2 ADD_PERIODS Instance method Private Method Add periods 20130325
3 ADD_TEXTS Instance method Private Method Add texts 20130325
4 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20130325
5 CREATE_FUTURE_KEYDATES Instance method Private Method Create list of keydates for futures 20130325
6 MAX Instance method Private Method Get the later of two dates 20130325
7 MIN Instance method Private Method Get the earlier of two dates 20130325
Events
Class CL_TBA_PERIODS_EXAMPLE has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_KEYDATES Private See coding 20130325 TT_KEYDATES TYPE TABLE OF tba_keydate
2 TT_PERIODTYPES Private See coding 20130325 TT_PERIODTYPES TYPE TABLE OF tba_periodtype WITH KEY TABLE_LINE
Method Signatures

Method ADD_FUTURES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PERIODS Call by reference Type reference (TYPE) TBAY_DCS_PERDS DCS Periods 20130325
2 Importing IT_PERIODTYPES Call by reference Type reference (TYPE) TT_PERIODTYPES Period Types 20130325
3 Importing IV_CALENDAR Call by reference Type reference (TYPE) SKALID Factory calendar 20130325
4 Importing IV_DATE_END Call by reference Type reference (TYPE) SYDATUM System Date 20130325
5 Importing IV_DATE_START Call by reference Type reference (TYPE) SYDATUM ABAP-Systemfeld: Aktuelles Datum des Applikationsservers 20130325
6 Importing IV_DCSID Call by reference Type reference (TYPE) TBA_DCSID Derivative Contract Specification ID 20130325
# Exception Resumable Description Created on
1 CX_TBA_CALENDAR_EVALUATION Excepion Class for Calendar Evaluation 20130325

Method ADD_PERIODS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PERIODS Call by reference Type reference (TYPE) TBAY_DCS_PERDS DCS Periods 20130325
2 Importing IV_CALENDAR Call by reference Type reference (TYPE) SKALID Factory calendar 20130325
3 Importing IV_DATE_END Call by reference Type reference (TYPE) SYDATUM System Date 20130325
4 Importing IV_DATE_START Call by reference Type reference (TYPE) SYDATUM System Date 20130325
5 Importing IV_DCSID Call by reference Type reference (TYPE) TBA_DCSID Derivative Contract Specification ID 20130325
6 Importing IV_PERIODTYPE Call by reference Type reference (TYPE) TBA_PERIODTYPE Requested Period Type 20130325
7 Importing IV_PERIODTYPE_EDL Call by reference Type reference (TYPE) TBA_PERIODTYPE Requested Period Type (due to Expiration Date Logic) 20130325
# Exception Resumable Description Created on
1 CX_TBA_CALENDAR_EVALUATION Excepion Class for Calendar Evaluation 20130325
2 CX_TBA_INVALID_PARAMETER Exception thrown when input param invalid 20130325

Method ADD_TEXTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TEXTS Call by reference Type reference (TYPE) TBAY_DCS_KDT Texts for Keydates 20130325
2 Importing IT_PERIODS Call by reference Type reference (TYPE) TBAY_DCS_PERDS DCS Periods 20130325

Method ADD_TEXTS on class CL_TBA_PERIODS_EXAMPLE has no exception.

Method CONSTRUCTOR Signature

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

Method CREATE_FUTURE_KEYDATES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_KEYDATES Call by reference Type reference (TYPE) TT_KEYDATES 20130325
2 Importing IV_CALENDAR Call by reference Type reference (TYPE) SKALID Factory calendar 20130325
3 Importing IV_DATE_END Call by reference Type reference (TYPE) SYDATUM System Date 20130325
4 Importing IV_DATE_START Call by reference Type reference (TYPE) SYDATUM System Date 20130325
# Exception Resumable Description Created on
1 CX_TBA_CALENDAR_EVALUATION Excepion Class for Calendar Evaluation 20130325

Method MAX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE1 Call by reference Type reference (TYPE) DATS Field of type DATS 20130325
2 Importing IV_DATE2 Call by reference Type reference (TYPE) DATS Field of type DATS 20130325
3 Importing IV_DATE3 Call by reference Type reference (TYPE) DATS Field of type DATS 20130325
4 Returning RV_MAX Value transfer Type reference (TYPE) DATS Field of type DATS 20130325

Method MAX on class CL_TBA_PERIODS_EXAMPLE has no exception.

Method MIN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE1 Call by reference Type reference (TYPE) DATS Field of type DATS 20130325
2 Importing IV_DATE2 Call by reference Type reference (TYPE) DATS Field of type DATS 20130325
3 Returning RV_MIN Value transfer Type reference (TYPE) DATS Field of type DATS 20130325

Method MIN on class CL_TBA_PERIODS_EXAMPLE has no exception.
History
Last changed by/on SAP  20131127 
SAP Release Created in