SAP ABAP Class CL_MASS_SPSH_TYPECONVERSION (Data type conversion from string to any data type)
Hierarchy
☛
SAP_ABA (Software Component) Cross-Application Component
⤷
CA-GTF-MS (Application Component) Cross-Application Mass Maintenance
⤷
MASS (Package) Mass Maintenance Tool: Generic Part
⤷
⤷
Properties
| Class | CL_MASS_SPSH_TYPECONVERSION | |
| Short Description | Data type conversion from string to any data type | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | MASS_SPSH | |
| Program status | ||
| Category | 0 | |
| Package | MASS | Mass Maintenance Tool: Generic Part |
| Created | 20120914 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_MASS_SPSH_TYPECONVERSION has no forward declaration.
Interfaces
Class CL_MASS_SPSH_TYPECONVERSION has no interface implemented.
Friends
Class CL_MASS_SPSH_TYPECONVERSION has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | DATATYPE_D | 'ACCP' | 20121012 | |||
| 2 | Constant | Private | Type reference (TYPE) | CHAR1 | ',' | Single-Character Flag | 20121004 | ||
| 3 | Constant | Private | Type reference (TYPE) | XUDCPFM | 'X' | 20121016 | |||
| 4 | Constant | Private | Type reference (TYPE) | XUDCPFM | ' ' | 20121016 | |||
| 5 | Constant | Private | Type reference (TYPE) | XUDCPFM | 'Y' | 20121016 | |||
| 6 | Constant | Private | Type reference (TYPE) | CHAR1 | '.' | Single-Character Flag | 20120922 | ||
| 7 | Constant | Private | Type reference (TYPE) | DATATYPE_D | 'NUMC' | Data Type in ABAP Dictionary | 20120918 | ||
| 8 | Constant | Private | Type reference (TYPE) | STRING | ',|.|[ ]' | Character field of length 6 | 20121016 | ||
| 9 | Constant | Private | Type reference (TYPE) | CHAR1 | ' ' | Single-Character Flag | 20121016 | ||
| 10 | Constant | Private | Type reference (TYPE) | I | 3 | Length of decimal block width | 20121008 | ||
| 11 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_MASS_SPREADSHEET_IMP_CONF | General configuration for spreadsheet import | 20120927 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | T_CONVEXIT_INFO | 20121018 | ||||
| 13 | Instance attribute | Private | Type reference (TYPE) | XUDATFM | Date format | 20121011 | |||
| 14 | Instance attribute | Private | Type reference (TYPE) | XUDCPFM | Decimal Format | 20121011 | |||
| 15 | Instance attribute | Private | Type reference (TYPE) | MASS_SPSH_IMPORT_LANGUAGE | Language of Imported Texts | 20121011 | |||
| 16 | Instance attribute | Private | Type reference (TYPE) | I | Length of input string | 20121005 | |||
| 17 | Instance attribute | Private | Type reference (TYPE) | I | Length of decimal part of input string | 20121005 | |||
| 18 | Instance attribute | Private | Type reference (TYPE) | XUTIMEFM | Time Format (12-/24-Hour Specification) | 20121011 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Call the conversion-exit to a data type | 20121011 | |
| 2 | Instance method | Private | Method | Check if input decimals part fitts to output decimal part | 20121005 | |
| 3 | Instance method | Public | Constructor | CONSTRUCTOR | 20120919 | |
| 4 | Instance method | Private | Method | Convert input of data type posting period (ACCP) | 20121011 | |
| 5 | Instance method | Private | Method | Convert input of data type decimal | 20121016 | |
| 6 | Instance method | Private | Method | Convert input of data type integer | 20121011 | |
| 7 | Instance method | Public | Method | Data type main conversion method (from string to any type) | 20120920 | |
| 8 | Instance method | Private | Method | Read date, time, decimal format and import language | 20121011 | |
| 9 | Instance method | Public | Method | Get datatype description | 20121002 | |
| 10 | Instance method | Public | Method | Get import configuration | 20120919 | |
| 11 | Instance method | Private | Method | Modify the input string with respect to the decimal separato | 20121016 | |
| 12 | Instance method | Private | Method | Launch conversion error | 20121016 | |
| 13 | Instance method | Public | Method | Set import configuration | 20120919 | |
| 14 | Instance method | Private | Method | Validate input string with decimal number | 20121004 |
Events
Class CL_MASS_SPSH_TYPECONVERSION has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | S_CONVEXIT_INFO | Private | See coding | 20121018 | begin of s_convexit_info.
types convexit type convexit.
types language_param_exits type abap_bool.
types end of s_convexit_info
|
||
| 2 | T_CONVEXIT_INFO | Private | See coding | 20121018 | t_convexit_info type hashed table of s_convexit_info
with unique key convexit
|
Method Signatures
Method CALL_CONVERSION_EXIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_INPUT | Call by reference | Type reference (TYPE) | ANY | Character 1024 | 20121011 | |||
| 2 | IS_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121011 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121011 |
Method CHECK_NUMBER_OF_DECIMALS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_RESULT_TAB_END | Call by reference | Type reference (TYPE) | MATCH_RESULT | Match with Regular Expression | 20121005 | |||
| 2 | IV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Input Character | 20121005 | |||
| 3 | IV_STRLEN_DATA_DECIMALS | Call by reference | Type reference (TYPE) | NUM6 | Length of Decimal Section of Data (DFIES) | 20121005 | |||
| 4 | IV_STRLEN_INPUT_DECIMALS | Call by reference | Type reference (TYPE) | INT4 | Length of Decimal Section of Input Character | 20121005 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121005 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_IMPORT_CONFIG | Call by reference | Object reference (TYPE REF TO) | CL_MASS_SPREADSHEET_IMP_CONF | General configuration for spreadsheet import | 20120920 |
Method CONSTRUCTOR on class CL_MASS_SPSH_TYPECONVERSION has no exception.
Method CONVERT_INPUT_ACCP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Character 1024 | 20121011 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121011 |
Method CONVERT_INPUT_DECIMAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Character 1024 | 20121016 | |||
| 2 | IS_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121016 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121016 |
Method CONVERT_INPUT_INTEGER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Character 1024 | 20121011 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121011 |
Method CONVERT_STRING_TO_ANY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_OUTPUT | Call by reference | Type reference (TYPE) | ANY | 20120920 | ||||
| 2 | IS_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121016 | |||
| 3 | IV_STRING | Call by reference | Type reference (TYPE) | STRING | 20120920 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20120920 |
Method GET_CONFIGURATION_PARAMETERS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_IMPORT_CONFIG | Call by reference | Object reference (TYPE REF TO) | CL_MASS_SPREADSHEET_IMP_CONF | 20121019 |
Method GET_CONFIGURATION_PARAMETERS on class CL_MASS_SPSH_TYPECONVERSION has no exception.
Method GET_DATATYPE_DESCRIPTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121002 | |||
| 2 | IV_DATA | Call by reference | Type reference (TYPE) | ANY | 20121002 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121002 |
Method GET_IMPORT_CONFIG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_IMPORT_CONFIG | Value transfer | Object reference (TYPE REF TO) | CL_MASS_SPREADSHEET_IMP_CONF | 20120920 |
Method GET_IMPORT_CONFIG on class CL_MASS_SPSH_TYPECONVERSION has no exception.
Method MODIFY_INPUT_DECIMAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_RESULT_TAB | Call by reference | Type reference (TYPE) | MATCH_RESULT_TAB | Result Tab | 20121016 | |||
| 2 | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Input Character String | 20121016 | |||
| 3 | CV_STRLEN_INPUT | Call by reference | Type reference (TYPE) | INT4 | Length of Input String | 20121016 | |||
| 4 | IV_LINES | Call by reference | Type reference (TYPE) | INT4 | Number of Lines in Result Tab | 20121016 | |||
| 5 | IV_STRLEN_INPUT_DECIMALS | Call by reference | Type reference (TYPE) | INT4 | Length of Input Decimal String | 20121016 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121016 |
Method RAISE_CONVERSION_ERROR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_TEXTID | Call by reference | Type reference (TYPE) | SCX_T100KEY | 20121016 | ||||
| 2 | IV_MSGVAR1 | Call by reference | Type reference (TYPE) | ANY | 20121016 | ||||
| 3 | IV_MSGVAR2 | Call by reference | Type reference (TYPE) | ANY | 20121016 | ||||
| 4 | IV_MSGVAR3 | Call by reference | Type reference (TYPE) | ANY | 20121016 | ||||
| 5 | IV_MSGVAR4 | Call by reference | Type reference (TYPE) | ANY | 20121016 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20121016 |
Method SET_IMPORT_CONFIG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_IMPORT_CONFIG | Call by reference | Object reference (TYPE REF TO) | CL_MASS_SPREADSHEET_IMP_CONF | Configuration for importing a spreadsheet in form of excel | 20120920 |
Method SET_IMPORT_CONFIG on class CL_MASS_SPSH_TYPECONVERSION has no exception.
Method VALIDATE_DECIMAL_FORMAT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_RESULT_TAB_END | Call by reference | Type reference (TYPE) | MATCH_RESULT | Match with Regular Expression | 20121004 | |||
| 2 | IT_RESULT_TAB | Call by reference | Type reference (TYPE) | MATCH_RESULT_TAB | Table with Search Results | 20121004 | |||
| 3 | IV_DECIMAL_SEPARATOR_EXP | Call by reference | Type reference (TYPE) | CHAR1 | Separator for Decimal Point | 20121004 | |||
| 4 | IV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Input | 20121004 | |||
| 5 | IV_NON_DECIMAL_SEPARATOR_EXP | Call by reference | Type reference (TYPE) | CHAR1 | Separator for non-Decimal Point | 20121004 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during type conversion | 20121004 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 740 |