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
⤷ 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 | MC_ACCP | Constant | Private | Type reference (TYPE) | DATATYPE_D | 'ACCP' | 20121012 | ||
2 | MC_COMMA | Constant | Private | Type reference (TYPE) | CHAR1 | ',' | Single-Character Flag | 20121004 | |
3 | MC_DECIMAL_FORMAT_COMMA_DOT | Constant | Private | Type reference (TYPE) | XUDCPFM | 'X' | 20121016 | ||
4 | MC_DECIMAL_FORMAT_DOT_COMMA | Constant | Private | Type reference (TYPE) | XUDCPFM | ' ' | 20121016 | ||
5 | MC_DECIMAL_FORMAT_SPACE_COMMA | Constant | Private | Type reference (TYPE) | XUDCPFM | 'Y' | 20121016 | ||
6 | MC_DOT | Constant | Private | Type reference (TYPE) | CHAR1 | '.' | Single-Character Flag | 20120922 | |
7 | MC_NUMC | Constant | Private | Type reference (TYPE) | DATATYPE_D | 'NUMC' | Data Type in ABAP Dictionary | 20120918 | |
8 | MC_REGEX_SEPARATORS | Constant | Private | Type reference (TYPE) | STRING | ',|.|[ ]' | Character field of length 6 | 20121016 | |
9 | MC_SPACE | Constant | Private | Type reference (TYPE) | CHAR1 | ' ' | Single-Character Flag | 20121016 | |
10 | MC_STRLEN_BLOCK_WIDTH | Constant | Private | Type reference (TYPE) | I | 3 | Length of decimal block width | 20121008 | |
11 | MO_IMPORT_CONFIG | Instance attribute | Private | Object reference (TYPE REF TO) | CL_MASS_SPREADSHEET_IMP_CONF | General configuration for spreadsheet import | 20120927 | ||
12 | MT_CONVEXIT_INFO | Instance attribute | Private | Type reference (TYPE) | T_CONVEXIT_INFO | 20121018 | |||
13 | MV_DATE_FORMAT | Instance attribute | Private | Type reference (TYPE) | XUDATFM | Date format | 20121011 | ||
14 | MV_DECIMAL_FORMAT | Instance attribute | Private | Type reference (TYPE) | XUDCPFM | Decimal Format | 20121011 | ||
15 | MV_IMPORT_LANGUAGE | Instance attribute | Private | Type reference (TYPE) | MASS_SPSH_IMPORT_LANGUAGE | Language of Imported Texts | 20121011 | ||
16 | MV_STRLEN_INPUT | Instance attribute | Private | Type reference (TYPE) | I | Length of input string | 20121005 | ||
17 | MV_STRLEN_INPUT_DECIMALS | Instance attribute | Private | Type reference (TYPE) | I | Length of decimal part of input string | 20121005 | ||
18 | MV_TIME_FORMAT | Instance attribute | Private | Type reference (TYPE) | XUTIMEFM | Time Format (12-/24-Hour Specification) | 20121011 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CALL_CONVERSION_EXIT | Instance method | Private | Method | Call the conversion-exit to a data type | 20121011 |
2 | CHECK_NUMBER_OF_DECIMALS | Instance method | Private | Method | Check if input decimals part fitts to output decimal part | 20121005 |
3 | CONSTRUCTOR | Instance method | Public | Constructor | CONSTRUCTOR | 20120919 |
4 | CONVERT_INPUT_ACCP | Instance method | Private | Method | Convert input of data type posting period (ACCP) | 20121011 |
5 | CONVERT_INPUT_DECIMAL | Instance method | Private | Method | Convert input of data type decimal | 20121016 |
6 | CONVERT_INPUT_INTEGER | Instance method | Private | Method | Convert input of data type integer | 20121011 |
7 | CONVERT_STRING_TO_ANY | Instance method | Public | Method | Data type main conversion method (from string to any type) | 20120920 |
8 | GET_CONFIGURATION_PARAMETERS | Instance method | Private | Method | Read date, time, decimal format and import language | 20121011 |
9 | GET_DATATYPE_DESCRIPTION | Instance method | Public | Method | Get datatype description | 20121002 |
10 | GET_IMPORT_CONFIG | Instance method | Public | Method | Get import configuration | 20120919 |
11 | MODIFY_INPUT_DECIMAL | Instance method | Private | Method | Modify the input string with respect to the decimal separato | 20121016 |
12 | RAISE_CONVERSION_ERROR | Instance method | Private | Method | Launch conversion error | 20121016 |
13 | SET_IMPORT_CONFIG | Instance method | Public | Method | Set import configuration | 20120919 |
14 | VALIDATE_DECIMAL_FORMAT | 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 | Changing | CV_INPUT | Call by reference | Type reference (TYPE) | ANY | Character 1024 | 20121011 | ||
2 | Importing | IS_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121011 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 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 | Importing | IS_RESULT_TAB_END | Call by reference | Type reference (TYPE) | MATCH_RESULT | Match with Regular Expression | 20121005 | ||
2 | Importing | IV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Input Character | 20121005 | ||
3 | Importing | IV_STRLEN_DATA_DECIMALS | Call by reference | Type reference (TYPE) | NUM6 | Length of Decimal Section of Data (DFIES) | 20121005 | ||
4 | Importing | 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 | CX_MASS_SPSH_TYPECONV_ERROR | Error during type conversion | 20121005 |
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | 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 | Changing | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Character 1024 | 20121011 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 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 | Changing | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Character 1024 | 20121016 | ||
2 | Importing | IS_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121016 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 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 | Changing | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Character 1024 | 20121011 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 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 | Changing | CV_OUTPUT | Call by reference | Type reference (TYPE) | ANY | 20120920 | |||
2 | Importing | IS_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121016 | ||
3 | Importing | IV_STRING | Call by reference | Type reference (TYPE) | STRING | 20120920 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 20120920 |
Method GET_CONFIGURATION_PARAMETERS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | 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 | Exporting | ES_DFIES | Call by reference | Type reference (TYPE) | DFIES | DD Interface: Table Fields for DDIF_FIELDINFO_GET | 20121002 | ||
2 | Importing | IV_DATA | Call by reference | Type reference (TYPE) | ANY | 20121002 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 20121002 |
Method GET_IMPORT_CONFIG Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | 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 | Changing | CT_RESULT_TAB | Call by reference | Type reference (TYPE) | MATCH_RESULT_TAB | Result Tab | 20121016 | ||
2 | Changing | CV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Input Character String | 20121016 | ||
3 | Changing | CV_STRLEN_INPUT | Call by reference | Type reference (TYPE) | INT4 | Length of Input String | 20121016 | ||
4 | Importing | IV_LINES | Call by reference | Type reference (TYPE) | INT4 | Number of Lines in Result Tab | 20121016 | ||
5 | Importing | IV_STRLEN_INPUT_DECIMALS | Call by reference | Type reference (TYPE) | INT4 | Length of Input Decimal String | 20121016 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 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 | Importing | IS_TEXTID | Call by reference | Type reference (TYPE) | SCX_T100KEY | 20121016 | |||
2 | Importing | IV_MSGVAR1 | Call by reference | Type reference (TYPE) | ANY | 20121016 | |||
3 | Importing | IV_MSGVAR2 | Call by reference | Type reference (TYPE) | ANY | 20121016 | |||
4 | Importing | IV_MSGVAR3 | Call by reference | Type reference (TYPE) | ANY | 20121016 | |||
5 | Importing | IV_MSGVAR4 | Call by reference | Type reference (TYPE) | ANY | 20121016 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | 20121016 |
Method SET_IMPORT_CONFIG Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | 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 | Importing | IS_RESULT_TAB_END | Call by reference | Type reference (TYPE) | MATCH_RESULT | Match with Regular Expression | 20121004 | ||
2 | Importing | IT_RESULT_TAB | Call by reference | Type reference (TYPE) | MATCH_RESULT_TAB | Table with Search Results | 20121004 | ||
3 | Importing | IV_DECIMAL_SEPARATOR_EXP | Call by reference | Type reference (TYPE) | CHAR1 | Separator for Decimal Point | 20121004 | ||
4 | Importing | IV_INPUT | Call by reference | Type reference (TYPE) | CHAR1024 | Input | 20121004 | ||
5 | Importing | IV_NON_DECIMAL_SEPARATOR_EXP | Call by reference | Type reference (TYPE) | CHAR1 | Separator for non-Decimal Point | 20121004 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_MASS_SPSH_TYPECONV_ERROR | Error during type conversion | 20121004 |
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 740 |