SAP ABAP Class CL_RSDHA_UT_DATATYPE (Utilities: Datatypes)
Hierarchy
☛
SAP_BW (Software Component) SAP Business Warehouse
⤷
BW-WHM-DST-HAP (Application Component) HANA Analysis Process
⤷
RSDHA (Package) SAP HANA Analysis in BW
⤷
⤷
Properties
| Class | CL_RSDHA_UT_DATATYPE | |
| Short Description | Utilities: Datatypes | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | RSDHA | |
| Program status | ||
| Category | 0 | |
| Package | RSDHA | SAP HANA Analysis in BW |
| Created | 20120815 | SAP |
| Last change | 20140121 | 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) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 3 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... | |
| 4 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... | |
| 5 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... | |
| 6 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... | |
| 7 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_RSDHA_UT_DATATYPE has no interface implemented.
Friends
Class CL_RSDHA_UT_DATATYPE has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | See coding | 20130312 | |||||
| 2 | Constant | Public | See coding | 20120816 | |||||
| 3 | Constant | Public | See coding | TREX types (constants) | 20120816 | ||||
| 4 | Static Attribute | Private | Type reference (TYPE) | C | Dummy character for message text | 20130614 | |||
| 5 | Static Attribute | Private | Type reference (TYPE) | TP_T_TYPE_HIER | Type hierarchy (table) | 20120817 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Create ABAP Type Descriptor (elementary) | 20120815 | |
| 2 | Static method | Public | Method | Create target field according to data type restrictions | 20120815 | |
| 3 | Static method | Public | Method | Get data element details | 20130801 | |
| 4 | Static method | Public | Method | Get RSDINTLEN | 20130801 | |
| 5 | Static method | Public | Method | Is ABAP DDIC type a key figure | 20121008 | |
| 6 | Static method | Public | Method | Is ABAP DDIC type numeric? | 20120917 | |
| 7 | Static method | Public | Method | Map ABAP DDIC type to L type | 20120816 | |
| 8 | Static method | Public | Method | Map SQL-Script Type to ABAP Type | 20130423 | |
| 9 | Static method | Public | Method | Map ABAP DDIC type to internal type | 20120815 | |
| 10 | Static method | Public | Method | Map ABAP DDIC type to TREX/column store type | 20120815 | |
| 11 | Static method | Public | Method | Map internal type to ABAP DDIC type | 20120815 | |
| 12 | Static method | Public | Method | Map L type to ABAP DDIC type | 20120816 | |
| 13 | Static method | Public | Method | Map SQL-Script Type to ABAP Type | 20120921 | |
| 14 | Static method | Public | Method | Move numeric value to string (sign on the left) | 20120815 | |
| 15 | Static method | Private | Method | Add generic type information | 20120816 | |
| 16 | Static method | Private | Method | Convert supported generic types structure | 20120816 | |
| 17 | Static method | Private | Method | Get generic type hierarchy | 20120816 |
Events
Class CL_RSDHA_UT_DATATYPE has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TN_S_GENERIC_TYPE_INFO | Public | See coding | Generic type information | 20120815 | BEGIN OF tn_s_generic_type_info,
any TYPE rs_bool, " any type
numeric TYPE rs_bool, " integer, p, decfloat, f
int TYPE rs_bool, " integer (1, 2 and 4 bytes)
packed TYPE rs_bool, " packed
decfloat TYPE rs_bool, " decfloat16, decfloat32
clike TYPE rs_bool, " character like (c, d, t, n, string)
char TYPE rs_bool, " CHAR
num TYPE rs_bool, " numeric text
xsequence TYPE rs_bool, " x, xstring
END OF tn_s_generic_type_info
|
|
| 2 | TN_S_SUPPORTED_TYPES | Public | See coding | Supported data types (incl. generic types) | 20120817 | BEGIN OF tn_s_supported_types,
s_generic TYPE tn_s_generic_type_info,
t_datatp TYPE tn_t_datatp,
END OF tn_s_supported_types
|
|
| 3 | TN_T_DATATP | Public | See coding | Table of ABAP DDIC types | 20120815 | tn_t_datatp TYPE STANDARD TABLE OF if_rsdha_types=>tn_s_abap_type-datatp WITH DEFAULT KEY
|
|
| 4 | TP_S_TYPE | Private | See coding | Type information (structure) | 20120816 | BEGIN OF tp_s_type,
level TYPE i,
l1 TYPE abap_typekind,
l2 TYPE abap_typekind,
trex_type TYPE string,
s_abap TYPE if_rsdha_types=>tn_s_abap_type,
score TYPE i,
END OF tp_s_type
|
|
| 5 | TP_T_TYPE | Private | See coding | Type information (table) | 20120816 | tp_t_type TYPE STANDARD TABLE OF tp_s_type
|
|
| 6 | TP_T_TYPE_HIER | Private | See coding | Type hierarchy | 20120817 | tp_t_type_hier TYPE STANDARD TABLE OF tp_s_type WITH DEFAULT KEY
|
Method Signatures
Method CREATE_ABAP_ELEMDESCR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120815 | |||
| 2 | I_DECIMALS | Call by reference | Type reference (TYPE) | DECIMALS | Number of Decimal Places | 20120815 | |||
| 3 | I_INTLEN | Call by reference | Type reference (TYPE) | RSDINTLEN | Internal Length of InfoObjects in BW - see Docu | 20120815 | |||
| 4 | R_R_ELEMDESCR | Value transfer | Object reference (TYPE REF TO) | CL_ABAP_ELEMDESCR | ABAP type descriptor | 20120815 |
Method CREATE_ABAP_ELEMDESCR on class CL_RSDHA_UT_DATATYPE has no exception.
Method CREATE_TGT_FIELD_DESCR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_R_SRC_FIELD_DESCR | Call by reference | Object reference (TYPE REF TO) | IF_RSDHAM_FIELD_DESCR | Source Field | 20120815 | |||
| 2 | I_S_TGT_SUPPORTED_TYPES | Call by reference | Type reference (TYPE) | TN_S_SUPPORTED_TYPES | Supported data types (incl. generic types) for target field | 20120817 | |||
| 3 | R_R_TGT_FIELD_DESCR | Value transfer | Object reference (TYPE REF TO) | CL_RSDHAM_FIELD_DESCR | Target Field | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120815 |
Method GET_DD04L_DETAILS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ROLLNAME | Call by reference | Type reference (TYPE) | ROLLNAME | Data element (semantic domain) | 20130801 | |||
| 2 | R_S_DD04L | Value transfer | Type reference (TYPE) | DD04L | Data elements | 20130801 |
Method GET_DD04L_DETAILS on class CL_RSDHA_UT_DATATYPE has no exception.
Method GET_RSDINTLEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATATYPE | Call by reference | Type reference (TYPE) | DATATYPE_D | Data Type in ABAP Dictionary | 20130801 | |||
| 2 | I_LENG | Call by reference | Type reference (TYPE) | DDLENG | Length (No. of Characters) | 20130801 | |||
| 3 | R_RSDINTLEN | Value transfer | Type reference (TYPE) | RSDINTLEN | Internal Length of InfoObjects in BW - see Docu | 20130801 |
Method GET_RSDINTLEN on class CL_RSDHA_UT_DATATYPE has no exception.
Method IS_DATATP_KEYFIGURE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20121008 | |||
| 2 | R_IS_KEYFIGURE | Value transfer | Type reference (TYPE) | RS_BOOL | X: Numeric | 20121008 |
Method IS_DATATP_KEYFIGURE on class CL_RSDHA_UT_DATATYPE has no exception.
Method IS_DATATP_NUMERIC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120917 | |||
| 2 | R_IS_NUMERIC | Value transfer | Type reference (TYPE) | RS_BOOL | X: Numeric | 20120917 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120917 |
Method MAP_ABAP_TYPE_TO_LTYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_LDECIMALS | Call by reference | Type reference (TYPE) | IF_RSDHAR_LLANG_BASIC=>TN_LDECIMALS | Number of decimals (only for Fixed) | 20120816 | |||
| 2 | E_LLENGTH | Call by reference | Type reference (TYPE) | IF_RSDHAR_LLANG_BASIC=>TN_LLENGTH | Length basic L type (only for FixedString) | 20120816 | |||
| 3 | E_LTYPE | Call by reference | Type reference (TYPE) | IF_RSDHAR_LLANG_BASIC=>TN_LTYPE | Name basic L type (Int32, Double, String etc) | 20120816 | |||
| 4 | I_DATATP | Call by reference | Type reference (TYPE) | IF_RSDHA_TYPES=>TN_S_ABAP_TYPE-DATATP | ABAP DDIC type | 20120816 | |||
| 5 | I_DECIMALS | Call by reference | Type reference (TYPE) | IF_RSDHA_TYPES=>TN_S_ABAP_TYPE-DECIMALS | Number of Decimal Places | 20120816 | |||
| 6 | I_DIGITS | Call by reference | Type reference (TYPE) | IF_RSDHA_TYPES=>TN_S_ABAP_TYPE-DIGITS | Digits | 20120816 | |||
| 7 | I_INTLEN | Call by reference | Type reference (TYPE) | IF_RSDHA_TYPES=>TN_S_ABAP_TYPE-INTLEN | Internal Length of InfoObjects in BW - see Docu | 20120816 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120816 |
Method MAP_ABAP_TYPE_TO_SQLTYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_SQL_LENGTH | Call by reference | Type reference (TYPE) | IF_RSDHAR_SQL_LANG_BASIC=>TN_SQL_LENGTH | Length basic SQL-92 type | 20130423 | |||
| 2 | E_SQL_SCALE | Call by reference | Type reference (TYPE) | IF_RSDHAR_SQL_LANG_BASIC=>TN_SQL_SCALE | Number of decimals | 20130423 | |||
| 3 | E_SQL_TYPE | Call by reference | Type reference (TYPE) | IF_RSDHAR_SQL_LANG_BASIC=>TN_SQL_TYPE | Name basic SQL-92 type | 20130423 | |||
| 4 | I_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20130423 | |||
| 5 | I_DECIMALS | Call by reference | Type reference (TYPE) | DECIMALS | Number of Decimal Places | 20130423 | |||
| 6 | I_INTLEN | Call by reference | Type reference (TYPE) | RSDINTLEN | Internal Length of InfoObjects in BW - see Docu | 20130423 | |||
| 7 | I_ROLLNAME | Call by reference | Type reference (TYPE) | ROLLNAME | Data element (semantic domain) | 20130801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20130423 |
Method MAP_DATATP_TO_INTTP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120815 | |||
| 2 | R_INTTP | Value transfer | Type reference (TYPE) | INTTYPE | ABAP data type (C,D,N,...) | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120815 |
Method MAP_DATATP_TO_TREX_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120815 | |||
| 2 | I_IS_KEYFIGURE | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | Field is keyfigure | 20120815 | ||
| 3 | R_TREX_TYPE | Value transfer | Type reference (TYPE) | STRING | TREX Data Type for Calculation Scenarios | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120815 |
Method MAP_INTTP_TO_DATATP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_INTTP | Call by reference | Type reference (TYPE) | INTTYPE | ABAP data type (C,D,N,...) | 20120815 | |||
| 2 | R_DATATP | Value transfer | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120815 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120815 |
Method MAP_LTYPE_TO_ABAP_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120816 | |||
| 2 | E_DECIMALS | Call by reference | Type reference (TYPE) | DECIMALS | Number of Decimal Places | 20120816 | |||
| 3 | E_INTLEN | Call by reference | Type reference (TYPE) | RSDINTLEN | Internal Length of InfoObjects in BW - see Docu | 20120816 | |||
| 4 | I_CS_ATTR_ADJUSTED | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | ABAP DDIC type according to attribute type in CalcScenario | 20120816 | ||
| 5 | I_LDECIMALS | Call by reference | Type reference (TYPE) | IF_RSDHAR_LLANG_BASIC=>TN_LDECIMALS | Number of decimals (only for Fixed) | 20120816 | |||
| 6 | I_LLENGTH | Call by reference | Type reference (TYPE) | IF_RSDHAR_LLANG_BASIC=>TN_LLENGTH | Length basic L type (only for FixedString) | 20120816 | |||
| 7 | I_LTYPE | Call by reference | Type reference (TYPE) | IF_RSDHAR_LLANG_BASIC=>TN_LTYPE | Name basic L type (Int32, Double, String etc) | 20120816 |
Method MAP_LTYPE_TO_ABAP_TYPE on class CL_RSDHA_UT_DATATYPE has no exception.
Method MAP_SQLTYPE_TO_ABAP_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_DATATP | Call by reference | Type reference (TYPE) | DATATYPE_D | ABAP DDIC type | 20120921 | |||
| 2 | E_DECIMALS | Call by reference | Type reference (TYPE) | DECIMALS | Number of Decimal Places | 20120921 | |||
| 3 | E_DIGITS | Call by reference | Type reference (TYPE) | RSDIGITS | Number of Characters in Field | 20121008 | |||
| 4 | E_INTLEN | Call by reference | Type reference (TYPE) | RSDINTLEN | Internal Length of InfoObjects in BW - see Docu | 20120921 | |||
| 5 | I_CS_ATTR_ADJUSTED | Call by reference | Type reference (TYPE) | RS_BOOL | RS_C_FALSE | ABAP DDIC type according to attribute type in CalcScenario | 20120921 | ||
| 6 | I_SQL_LENGTH | Call by reference | Type reference (TYPE) | IF_RSDHAR_SQL_LANG_BASIC=>TN_SQL_LENGTH | Length basic SQL-92 type | 20120921 | |||
| 7 | I_SQL_SCALE | Call by reference | Type reference (TYPE) | IF_RSDHAR_SQL_LANG_BASIC=>TN_SQL_SCALE | Number of decimals | 20120921 | |||
| 8 | I_SQL_TYPE | Call by reference | Type reference (TYPE) | IF_RSDHAR_SQL_LANG_BASIC=>TN_SQL_TYPE | Name basic SQL-92 type | 20120921 |
Method MAP_SQLTYPE_TO_ABAP_TYPE on class CL_RSDHA_UT_DATATYPE has no exception.
Method NUMERIC_VALUE_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_VALUE | Call by reference | Type reference (TYPE) | DATA | Numeric Value | 20120815 | |||
| 2 | R_STRING | Value transfer | Type reference (TYPE) | STRING | String with numeric value | 20120815 |
Method NUMERIC_VALUE_TO_STRING on class CL_RSDHA_UT_DATATYPE has no exception.
Method P_ADD_GENERIC_TYPE_INFO Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_S_TYPE | Call by reference | Type reference (TYPE) | TP_S_TYPE | Type information (structure) | 20120816 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120816 |
Method P_CONVERT_SUPPORTED_GENERIC_TY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_T_TGT_TYPE | Call by reference | Type reference (TYPE) | TP_T_TYPE | 20120816 | ||||
| 2 | I_TGT_SUPPORTED_GENERIC_TYPES | Call by reference | Type reference (TYPE) | TN_S_GENERIC_TYPE_INFO | Supported generic ABAP for target field | 20120816 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception with generic message | 20120816 |
Method P_GET_TYPE_HIER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_T_TYPE_HIER | Value transfer | Type reference (TYPE) | TP_T_TYPE_HIER | Type hierarchy (table) | 20120817 |
Method P_GET_TYPE_HIER on class CL_RSDHA_UT_DATATYPE has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 731 |