SAP ABAP Class CL_EPM_OIA (EPM: Class for HANA Open Items Analytics)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-NWD (Application Component) NetWeaver Demonstration
⤷
S_EPM_HANA (Package) EPM: High-performance analytics (HANA)
⤷
⤷
Properties
| Class | CL_EPM_OIA | |
| Short Description | EPM: Class for HANA Open Items Analytics | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | S_EPM_HANA | EPM: High-performance analytics (HANA) |
| Created | 20120815 | SAP |
| Last change | 20130531 | SAP |
| 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) |
Interfaces
Class CL_EPM_OIA has no interface implemented.
Friends
Class CL_EPM_OIA has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | I | 3 | 20121001 | |||
| 2 | Constant | Public | Type reference (TYPE) | SNWD_CURR_CODE | 'EUR' | 20121219 | |||
| 3 | Constant | Private | Type reference (TYPE) | I | 50000 | 20121220 | |||
| 4 | Constant | Public | Type reference (TYPE) | C | 'P' | 20121219 | |||
| 5 | Static Attribute | Private | See coding | 20121219 | |||||
| 6 | Instance attribute | Private | See coding | 20120815 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | 20121219 | ||
| 2 | Instance method | Private | Method | 20121219 | ||
| 3 | Static method | Public | Constructor | 20121219 | ||
| 4 | Static method | Public | Method | Convert currency | 20121213 | |
| 5 | Instance method | Public | Method | Get average delay for a BP to settle invoices in a period | 20120815 | |
| 6 | Instance method | Public | Method | Get average delay for all BPs to settle invoices in a period | 20120815 | |
| 7 | Instance method | Public | Method | Get the last order placed by a BP | 20120815 | |
| 8 | Instance method | Public | Method | Calculate the rank for a BP (includes BADI call) | 20120815 | |
| 9 | Instance method | Public | Method | Get total orders placed by a BP in a year | 20120815 | |
| 10 | Instance method | Private | Method | 20120815 | ||
| 11 | Instance method | Public | Method | Get a list of unpaid invoices for a BP in a period | 20120815 | |
| 12 | Instance method | Public | Method | Get a list of unpaid invoices for a period | 20120815 | |
| 13 | Instance method | Public | Method | Get the total amount of unpaid invoices | 20120815 | |
| 14 | Instance method | Public | Method | Get the total amount of unpaid invoices for a BP | 20120815 | |
| 15 | Instance method | Private | Method | 20120815 | ||
| 16 | Instance method | Private | Method | Offset a date by the given number of years | 20121002 | |
| 17 | Instance method | Private | Method | 20120815 |
Events
Class CL_EPM_OIA has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TT_AVG_DELAYS | Public | See coding | 20120815 | tt_avg_delays TYPE STANDARD TABLE OF ty_avg_delay WITH DEFAULT KEY
|
||
| 2 | TT_OPEN_ITEMS | Public | See coding | 20120815 | tt_open_items TYPE STANDARD TABLE OF ty_open_item WITH DEFAULT KEY
|
||
| 3 | TY_AMOUNT | Public | See coding | 20120815 | BEGIN OF ty_amount,
currency_code TYPE snwd_so_inv_head-currency_code,
amount TYPE snwd_so_inv_head-gross_amount,
END OF ty_amount
|
||
| 4 | TY_AVG_DELAY | Public | See coding | 20120815 | BEGIN OF ty_avg_delay,
bp_id TYPE snwd_bpa-bp_id,
currency_code TYPE snwd_so_inv_head-currency_code,
gross_amount TYPE snwd_so_inv_head-gross_amount,
delay TYPE i,
END OF ty_avg_delay
|
||
| 5 | TY_BP_OUTSTANDING | Private | See coding | 20120815 | BEGIN OF ty_bp_outstanding,
so_id TYPE snwd_so-so_id,
currency_code TYPE snwd_so_inv_head-currency_code,
gross_amount TYPE snwd_so_inv_head-gross_amount,
bp_id TYPE snwd_bpa-bp_id,
created_at TYPE snwd_so_inv_head-created_at,
END OF ty_bp_outstanding
|
||
| 6 | TY_BP_PAID | Private | See coding | 20120815 | BEGIN OF ty_bp_paid,
so_id TYPE snwd_so-so_id,
currency_code TYPE snwd_so_inv_head-currency_code,
gross_amount TYPE snwd_so_inv_head-gross_amount,
bp_id TYPE snwd_bpa-bp_id,
created_at TYPE snwd_so_inv_head-created_at,
changed_at TYPE snwd_so_inv_head-changed_at,
END OF ty_bp_paid
|
||
| 7 | TY_BP_TYPE | Private | See coding | 20120815 | BEGIN OF ty_bp_type,
bp_id TYPE snwd_bpa-bp_id,
bp_class(1) TYPE c,
END OF ty_bp_type
|
||
| 8 | TY_CURRENCY_RECORD | Public | See coding | 20121214 | BEGIN OF ty_currency_record,
currency_code TYPE snwd_so_inv_head-currency_code,
amount TYPE snwd_so_inv_head-gross_amount,
timestamp TYPE timestampl,
END OF ty_currency_record
|
||
| 9 | TY_OPEN_ITEM | Public | See coding | 20120815 | BEGIN OF ty_open_item,
so_id TYPE snwd_so-so_id,
bp_id TYPE snwd_bpa-bp_id,
currency_code TYPE snwd_so_inv_head-currency_code,
gross_amount TYPE snwd_so_inv_head-gross_amount,
delay TYPE i,
END OF ty_open_item
|
Method Signatures
Method CHECK_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | System Date | 20121219 | |||
| 2 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | System Date | 20121219 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121219 |
Method CHECK_VALUATION_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_VALUATION_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20121219 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121219 |
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_EPM_OIA has no parameter.
Method CLASS_CONSTRUCTOR on class CL_EPM_OIA has no exception.
Method CONVERT_CURRENCY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AMOUNT | Call by reference | Type reference (TYPE) | SNWD_TTL_GROSS_AMOUNT | EPM: Total Gross Amount | 20121213 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | System Date | 20121213 | ||
| 3 | IV_FROM_CURRENCY | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | EPM: Currency Code | 20121213 | |||
| 4 | IV_TO_CURRENCY | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | EPM: Currency Code | 20121213 | |||
| 5 | RV_CONVERTED_AMOUNT | Value transfer | Type reference (TYPE) | SNWD_TTL_GROSS_AMOUNT | EPM: Total Gross Amount | 20121213 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121214 |
Method GET_AVG_DELAY_BP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 2 | IV_CURRENCY_CODE | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | GC_DEFAULT_CURRENCY_CODE | EPM: Currency Code | 20121218 | ||
| 3 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 4 | IV_PAID_ONLY | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20121220 | ||||
| 5 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 | |||
| 6 | RS_AVG_DELAY | Value transfer | Type reference (TYPE) | TY_AVG_DELAY | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121218 |
Method GET_AVG_DELAY_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_AVG_DELAY | Call by reference | Type reference (TYPE) | TT_AVG_DELAYS | 20120815 | ||||
| 2 | IV_CURRENCY_CODE | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | GC_DEFAULT_CURRENCY_CODE | EPM: Currency Code | 20121218 | ||
| 3 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 4 | IV_PAID_ONLY | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20121220 | ||||
| 5 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121218 |
Method GET_BP_LAST_ORDER_VOLUME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_AMOUNT | Call by reference | Type reference (TYPE) | TY_AMOUNT | 20120815 | ||||
| 2 | EV_SUCCESS | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20120815 | ||||
| 3 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 4 | IV_CURRENCY_CODE | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | GC_DEFAULT_CURRENCY_CODE | EPM: Currency Code | 20121217 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121217 |
Method GET_BP_RANK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 2 | IV_BP_TYPE | Call by reference | Type reference (TYPE) | I | 20120815 | ||||
| 3 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 4 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 | |||
| 5 | RV_BP_RANK | Value transfer | Type reference (TYPE) | I | 20120815 |
Method GET_BP_RANK on class CL_EPM_OIA has no exception.
Method GET_BP_SUM_FOR_YEAR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 2 | IV_CURRENCY_CODE | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | GC_DEFAULT_CURRENCY_CODE | EPM: Currency Code | 20121217 | ||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 4 | IV_YTD | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20120815 | |||
| 5 | RS_AMOUNT | Value transfer | Type reference (TYPE) | TY_AMOUNT | 20121220 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121217 |
Method GET_BP_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 2 | RV_BP_TYPE | Value transfer | Type reference (TYPE) | I | 20120815 |
Method GET_BP_TYPE on class CL_EPM_OIA has no exception.
Method GET_OPEN_ITEMS_BP_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_OPEN_ITEMS | Call by reference | Type reference (TYPE) | TT_OPEN_ITEMS | 20120815 | ||||
| 2 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 3 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 4 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121219 |
Method GET_OPEN_ITEMS_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_OPEN_ITEMS | Call by reference | Type reference (TYPE) | TT_OPEN_ITEMS | 20120815 | ||||
| 2 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 3 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121219 |
Method GET_OPEN_ITEMS_TOTAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CURRENCY_CODE | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | GC_DEFAULT_CURRENCY_CODE | EPM: Currency Code | 20121213 | ||
| 2 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 3 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 | |||
| 4 | IV_VALUATION_DATE | Call by reference | Type reference (TYPE) | SYDATUM | System Date | 20121219 | |||
| 5 | RS_TOTAL_OPEN | Value transfer | Type reference (TYPE) | TY_AMOUNT | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121214 |
Method GET_OPEN_ITEMS_TOTAL_BP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BP_ID | Call by reference | Type reference (TYPE) | SNWD_BPA-BP_ID | 20120815 | ||||
| 2 | IV_CURRENCY_CODE | Call by reference | Type reference (TYPE) | SNWD_CURR_CODE | GC_DEFAULT_CURRENCY_CODE | EPM: Currency Code | 20121214 | ||
| 3 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 4 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | SY-DATLO | 20120815 | |||
| 5 | IV_VALUATION_DATE | Call by reference | Type reference (TYPE) | SYDATUM | System Date | 20121219 | |||
| 6 | RS_TOTAL_OPEN | Value transfer | Type reference (TYPE) | TY_AMOUNT | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121214 |
Method MAKE_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 2 | RV_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMPL | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | EPM: OIA exceptions for HANA | 20121227 |
Method OFFSET_DATE_BY_YEAR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20121002 | ||||
| 2 | IV_YEAR_OFFSET | Call by reference | Type reference (TYPE) | I | 20121002 | ||||
| 3 | RV_RESULT | Value transfer | Type reference (TYPE) | SYDATUM | 20121002 |
Method OFFSET_DATE_BY_YEAR on class CL_EPM_OIA has no exception.
Method PREPARE_BP_RANKS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_SUCCESS | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20120815 | ||||
| 2 | IV_FROM_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 | ||||
| 3 | IV_TO_DATE | Call by reference | Type reference (TYPE) | SYDATUM | 20120815 |
Method PREPARE_BP_RANKS on class CL_EPM_OIA has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 740 |