SAP ABAP Class CL_KKAG_TRANS_CURRENCY_SERVICE (CL_KKAG_TRANS_CURRENCY_SERVICE)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM-CIC (Application Component) Interaction Center WinClient
     KKAG (Package) Period costing individual case
Properties
Class CL_KKAG_TRANS_CURRENCY_SERVICE  
Short Description    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class KJ    
Program status     
Category 0   
Package KKAG   Period costing individual case 
Created 20080211   SAP 
Last change 20100310   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 TKKAG Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_KKAG_TRANS_CURRENCY_SERVICE has no interface implemented.
Friends
Class CL_KKAG_TRANS_CURRENCY_SERVICE has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_ABKAT_DEFERRED_REV Constant Private Type reference (TYPE) ABKAT '69' ABKAT Revenue Surplus 20080229
2 GC_ABKAT_DEF_DOWN_PAYMENT_REV Constant Private Type reference (TYPE) ABKAT '80' ABKAT Down Payment Surplus 20081106
3 GC_ABKAT_RECOGNIZED_REV Constant Private Type reference (TYPE) ABKAT '67' ABKAT Realized Revenue 20080229
4 GC_ABKAT_UNBILLED_REV Constant Private Type reference (TYPE) ABKAT '68' ABKAT Revenue in Excess of Billings 20080229
5 GC_ABKAT_UNB_REV_REDUCTN_DPAYM Constant Private Type reference (TYPE) ABKAT '79' ABKAT Unbilled Revenue Reduction by Down Payment 20081106
6 GC_WAERS_PLAN_ERL_TBK_DIR Constant Private Type reference (TYPE) KKA_WAERS_PLAN_ERL 'H' 20080229
7 GC_WAERS_PLAN_ERL_TBK_DIR_CRM Constant Private Type reference (TYPE) KKA_WAERS_PLAN_ERL 'I' 20080229
8 GC_WAERS_PLAN_ERL_TBK_PER Constant Private Type reference (TYPE) KKA_WAERS_PLAN_ERL 'C' 20080229
9 GC_WAERS_PLAN_ERL_TBK_PER_CRM Constant Private Type reference (TYPE) KKA_WAERS_PLAN_ERL 'D' 20080229
10 GC_WAERS_PLAN_ERL_TM_OPT Constant Private Type reference (TYPE) KKA_WAERS_PLAN_ERL 'E' 20080229
11 GC_WAERS_PLAN_ERL_TM_OPT_CRM Constant Private Type reference (TYPE) KKA_WAERS_PLAN_ERL 'F' 20080229
12 GC_WRTTP_RA_SERVICES Constant Private Type reference (TYPE) CO_WRTTP '33' Value Type of Results Analysis Data in Transaction Currency 20080229
13 MS_ACTUAL_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Actual Revenue 20080229
14 MS_CURRENT_PERIOD Instance attribute Public Type reference (TYPE) KKAE_PERIODE Current Period 20080229
15 MS_DOWN_PAYMENT_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Down Payment Received 20081106
16 MS_NEW_DEFERRED_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Recalculated: Revenue Surplus 20080229
17 MS_NEW_DEF_DOWN_PAYMENT_REV Instance attribute Private Type reference (TYPE) GSTY_VALUES Recalculated: Down Payment Surplus 20081106
18 MS_NEW_RECOGNIZED_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Recalculated: Realized Revenue 20080229
19 MS_NEW_UNBILLED_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Recalculated: Revenue in Excess of Billings 20080229
20 MS_NEW_UNB_REV_REDUCTION_DPAYM Instance attribute Private Type reference (TYPE) GSTY_VALUES Recalculated: Unbilled Revenue Reduction by Down Payment 20081106
21 MS_OLD_DEFERRED_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Previous Value: Revenue Surplus 20080229
22 MS_OLD_DEF_DOWN_PAYMENT_REV Instance attribute Private Type reference (TYPE) GSTY_VALUES Previous Value: Down Payment Surplus 20081106
23 MS_OLD_RECOGNIZED_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Previous Value: Realized Revenue 20080229
24 MS_OLD_UNBILLED_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Previous Value: Revenue in Excess of Billings 20080229
25 MS_OLD_UNB_REV_REDUCTION_DPAYM Instance attribute Private Type reference (TYPE) GSTY_VALUES Previous Value: Unbilled Revenue Reduction by Down Payment 20081106
26 MS_PLAN_REVENUE Instance attribute Private Type reference (TYPE) GSTY_VALUES Planned Revenue 20080229
27 MT_BUFFER Instance attribute Private Type reference (TYPE) GTTY_BUFFER Total Float 20080229
28 MT_COBK Instance attribute Private Type reference (TYPE) TTCOBK Header Table for MT_COEPB 20080229
29 MT_COEPB Instance attribute Private Type reference (TYPE) GTTY_COEPB Table with CO Line Itmes to be Updated 20080229
30 MT_COSBA Instance attribute Private Type reference (TYPE) GTTY_COSBA Contents of DB Table COSB for Results Analysis Object 20080229
31 MT_COSPA Instance attribute Private Type reference (TYPE) GTTY_COSPA Contents of DB Table COSP for Results Analysis Object 20080229
32 MT_OBJECTS Instance attribute Public Type reference (TYPE) GTTY_OBJECTS Dependent Objects for Results Analysis Object 20080229
33 MT_VALUE_CHANGES Instance attribute Private Type reference (TYPE) GTTY_VALUE_CHANGES Table with Value Changes 20080229
34 MV_CURRENCY_REVENUE_STRATEGY Instance attribute Public Type reference (TYPE) KKA_WAERS_PLAN_ERL Strategy of Currency Treatment of Revenues 20080229
35 MV_KOKRS Instance attribute Public Type reference (TYPE) KOKRS Controlling Area 20080229
36 MV_POC Instance attribute Public Type reference (TYPE) F Percentage of Compl. 20080229
37 MV_RESULTS_ANALYSIS_OBJECT Instance attribute Public Type reference (TYPE) J_OBJNR Results analysis object 20080229
38 MV_RESULTS_ANALYSIS_VERSION Instance attribute Public Type reference (TYPE) VERSN Results Analysis Version 20080229
39 MV_TRANSACTION_CURRENCY Instance attribute Public Type reference (TYPE) TWAER Transaction Currency 20080229
Methods
# Method Level Visibility Method type Description Created on
1 ACTUAL_REVENUE_KUM Instance method Public Method Cumulative Actual Revenue 20080229
2 ADD_TO_BUFFER Instance method Private Method Add Results to the Buffer 20080229
3 CONSTRUCTOR Instance method Public Constructor 20080229
4 CREATE_LINE_ITEMS Instance method Private Method Create CO Line Items 20080229
5 CREATE_LINE_ITEMS_HEADER Instance method Private Method Create Header Table for the CO Line Items 20080229
6 DEFERRED_REVENUE_KUM Instance method Public Method Cumulative Revenue Surplus 20080229
7 DEFERRED_REVENUE_PER Instance method Public Method Period Change for Revenue Surplus 20080229
8 DEF_DOWN_PAYMENT_REV_PER Instance method Public Method Period Change for Down Payment Surplus 20081107
9 DO_REVENUE_RECOGNITION Instance method Private Method Carry Out the Calculation 20080229
10 EXECUTE_REVENUE_RECOGNITION Instance method Public Method Carry Out the Calculation Including Data Management 20080229
11 GET_ACTUAL_REVENUE Instance method Private Method Calculate Actual Revenue 20080229
12 GET_DOWN_PAYMENT_REVENUE Instance method Private Method Calculate Down Payment Received 20081106
13 GET_OLD_DEFERRED_REVENUE Instance method Private Method Calculate Previous Revenue Surplus 20080229
14 GET_OLD_DEF_DOWN_PAYMENT_REV Instance method Private Method Calculate Previous Down Payment Surplus 20081106
15 GET_OLD_RECOGNIZED_REVENUE Instance method Private Method Calculate Previous Realized Revenue 20080229
16 GET_OLD_UNBILLED_REVENUE Instance method Private Method Calculate Previous Revenue in Excess of Billings 20080229
17 GET_OLD_UNB_REV_REDUCTN_DPAYM Instance method Private Method Calculate Prev. Unbilled Revenue Reduction by Down Payment 20081106
18 GET_PLAN_REVENUE Instance method Private Method Calculate Planned Revenue 20080229
19 GET_TRANSACTION_CURRENCY Instance method Private Method Calculate Transaction Currency 20080229
20 PLAN_REVENUE_KUM Instance method Public Method Cumulated Plan Revenue/ Overall Plan Revenue 20080229
21 READ_RESULTS_ANALYSIS_VALUES Instance method Private Method Read Results Analysis Values from the Database 20080229
22 READ_REVENUE_VALUES Instance method Private Method Read Revenue Values from the Database 20080229
23 RECOGNIZED_REVENUE_KUM Instance method Public Method Cumulative Realized Revenue 20080229
24 RECOGNIZED_REVENUE_PER Instance method Public Method Period Change for Realized Revenue 20080229
25 RETRIEVE_FROM_BUFFER Instance method Private Method Read Data from the Buffer 20080229
26 SET_CURRENT_PERIOD Instance method Private Method Set Current Period 20080229
27 UNBILLED_REVENUE_KUM Instance method Public Method Cumulative Revenue in Excess of Billings 20080229
28 UNBILLED_REVENUE_PER Instance method Public Method Period Change for Revenue in Excess of Billings 20080229
29 UNB_REV_REDUCTN_DPAYM_PER Instance method Public Method Period Change: Unbilled Revenue Reduction by Down Payment 20081107
30 UPDATE_REVENUE_RECOGNITION Instance method Public Method Write Changed Data to the Database 20080229
Events
Class CL_KKAG_TRANS_CURRENCY_SERVICE has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GSTY_BUFFER Private See coding 20080229 begin of GSTY_BUFFER, period type KKAE_PERIODE, recognized_rev type GSTY_VALUES, unbilled_rev type GSTY_VALUES, deferred_rev type GSTY_VALUES, poc type f, actual_revenue type GSTY_VALUES, plan_revenue type GSTY_VALUES, DEF_DOWN_PAYMENT_REV type GSTY_VALUES, "H1266108 UNB_REV_REDUCTION_DPAYM type GSTY_VALUES, "H1266108 DOWN_PAYMENT_REVENUE type GSTY_VALUES, "H1266108 end of GSTY_BUFFER
2 GSTY_VALUES Private See coding 20080229 begin of GSTY_VALUES, wtgkum type WTGXXX, wtgjhr type WTGXXX, wtgper type WTGXXX, end of GSTY_VALUES
3 GSTY_VALUE_CHANGE Private See coding 20080229 begin of GSTY_VALUE_CHANGE, period type KKAE_PERIODE, recognized_rev_wtgbtr type wtgxxx, unbilled_rev_wtgbtr type wtgxxx, deferred_rev_wtgbtr type wtgxxx, def_dpaym_rev_wtgbtr type wtgxxx, "H1266108 unb_rev_reductn_dpaym_wtgbtr type wtgxxx, "H1266108 end of GSTY_VALUE_CHANGE
4 GTTY_BUFFER Private See coding 20080229 GTTY_BUFFER type standard table of GSTY_BUFFER with key period
5 GTTY_COEPB Private See coding 20080229 GTTY_COEPB type standard table of coepb with default key
6 GTTY_COSBA Private See coding 20080229 GTTY_COSBA type standard table of cosba with default key
7 GTTY_COSPA Private See coding 20080229 GTTY_COSPA type standard table of COSPA with default key
8 GTTY_OBJECTS Public See coding 20080229 GTTY_OBJECTS type standard table of kkaobj
9 GTTY_VALUE_CHANGES Private See coding 20080229 GTTY_VALUE_CHANGES type table of GSTY_VALUE_CHANGE with key period
Method Signatures

Method ACTUAL_REVENUE_KUM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method ACTUAL_REVENUE_KUM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method ADD_TO_BUFFER Signature

Method ADD_TO_BUFFER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method ADD_TO_BUFFER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_OBJECTS Call by reference Type reference (TYPE) GTTY_OBJECTS 20080229
2 Importing IV_CURRENCY_REVENUE_STRATEGY Call by reference Type reference (TYPE) KKA_WAERS_PLAN_ERL 20080229
3 Importing IV_KOKRS Call by reference Type reference (TYPE) KOKRS 20080229
4 Importing IV_RESULTS_ANALYSIS_OBJECT Call by reference Type reference (TYPE) J_OBJNR 20080229
5 Importing IV_RESULTS_ANALYSIS_VERSION Call by reference Type reference (TYPE) VERSN 20080229
# Exception Resumable Description Created on
1 ERROR_OCCURRED 20080229

Method CREATE_LINE_ITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CE_DEFERRED_REV Call by reference Type reference (TYPE) KSTAR 20080229
2 Importing IV_CE_DEF_DPAYM_REV Call by reference Type reference (TYPE) KSTAR 20081106
3 Importing IV_CE_RECOGNIZED_REV Call by reference Type reference (TYPE) KSTAR 20080229
4 Importing IV_CE_UNBILLED_REV Call by reference Type reference (TYPE) KSTAR 20080229
5 Importing IV_CE_UNB_REV_REDUCTN_DPAYM Call by reference Type reference (TYPE) KSTAR 20081106

Method CREATE_LINE_ITEMS on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method CREATE_LINE_ITEMS_HEADER Signature

Method CREATE_LINE_ITEMS_HEADER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method CREATE_LINE_ITEMS_HEADER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method DEFERRED_REVENUE_KUM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method DEFERRED_REVENUE_KUM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method DEFERRED_REVENUE_PER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method DEFERRED_REVENUE_PER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method DEF_DOWN_PAYMENT_REV_PER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20081107

Method DEF_DOWN_PAYMENT_REV_PER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method DO_REVENUE_RECOGNITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DOWN_PAYMENT Call by reference Type reference (TYPE) OBLIGO Obligo in der Ergebnisermittlung berücksichtigen 20081107

Method DO_REVENUE_RECOGNITION on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method EXECUTE_REVENUE_RECOGNITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CURRENT_PERIOD Call by reference Type reference (TYPE) KKAE_PERIODE 20080229
2 Importing IV_BASIS Call by reference Type reference (TYPE) ABGR_BASIS Bewertungsbasis für die Ergebnisermittlung 20080305
3 Importing IV_DOWN_PAYMENT Call by reference Type reference (TYPE) OBLIGO Anzahlungen in der Ergebnisermittlung berücksichtigen 20081106
4 Importing IV_FINAL Call by reference Type reference (TYPE) ENDABGR 20080229
5 Importing IV_POC Call by reference Type reference (TYPE) F 20080229
# Exception Resumable Description Created on
1 ERROR_OCCURRED 20080229

Method GET_ACTUAL_REVENUE Signature

Method GET_ACTUAL_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_ACTUAL_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_DOWN_PAYMENT_REVENUE Signature

Method GET_DOWN_PAYMENT_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_DOWN_PAYMENT_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_OLD_DEFERRED_REVENUE Signature

Method GET_OLD_DEFERRED_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_OLD_DEFERRED_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_OLD_DEF_DOWN_PAYMENT_REV Signature

Method GET_OLD_DEF_DOWN_PAYMENT_REV on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_OLD_DEF_DOWN_PAYMENT_REV on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_OLD_RECOGNIZED_REVENUE Signature

Method GET_OLD_RECOGNIZED_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_OLD_RECOGNIZED_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_OLD_UNBILLED_REVENUE Signature

Method GET_OLD_UNBILLED_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_OLD_UNBILLED_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_OLD_UNB_REV_REDUCTN_DPAYM Signature

Method GET_OLD_UNB_REV_REDUCTN_DPAYM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_OLD_UNB_REV_REDUCTN_DPAYM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_PLAN_REVENUE Signature

Method GET_PLAN_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method GET_PLAN_REVENUE on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method GET_TRANSACTION_CURRENCY Signature

Method GET_TRANSACTION_CURRENCY on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
# Exception Resumable Description Created on
1 MULTI_TRANSACT_CURRENCY_ERROR 20080229

Method PLAN_REVENUE_KUM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method PLAN_REVENUE_KUM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method READ_RESULTS_ANALYSIS_VALUES Signature

Method READ_RESULTS_ANALYSIS_VALUES on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method READ_RESULTS_ANALYSIS_VALUES on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method READ_REVENUE_VALUES Signature

Method READ_REVENUE_VALUES on class CL_KKAG_TRANS_CURRENCY_SERVICE has no parameter.
Method READ_REVENUE_VALUES on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method RECOGNIZED_REVENUE_KUM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method RECOGNIZED_REVENUE_KUM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method RECOGNIZED_REVENUE_PER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method RECOGNIZED_REVENUE_PER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method RETRIEVE_FROM_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DATA_RETRIEVED Value transfer Type reference (TYPE) BOOLE_D 20080229
2 Importing IS_CURRENT_PERIOD Call by reference Type reference (TYPE) KKAE_PERIODE 20080229

Method RETRIEVE_FROM_BUFFER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method SET_CURRENT_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CURRENT_PERIOD Call by reference Type reference (TYPE) KKAE_PERIODE 20080229
# Exception Resumable Description Created on
1 PERIOD_SEQUENCING_ERROR 20080229

Method UNBILLED_REVENUE_KUM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method UNBILLED_REVENUE_KUM on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method UNBILLED_REVENUE_PER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20080229

Method UNBILLED_REVENUE_PER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method UNB_REV_REDUCTN_DPAYM_PER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning WTGWRT Value transfer Type reference (TYPE) WTGXXX 20081107

Method UNB_REV_REDUCTN_DPAYM_PER on class CL_KKAG_TRANS_CURRENCY_SERVICE has no exception.

Method UPDATE_REVENUE_RECOGNITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MODIFY Call by reference Type reference (TYPE) BOOLE_D 20080229
# Exception Resumable Description Created on
1 ERROR_OCCURRED 20080229
History
Last changed by/on SAP  20100310 
SAP Release Created in 605