SAP ABAP Class CL_TREX_CHAR_UTILITY (Tools for manipulating character based data.)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-TRX-API (Application Component) TREX ABAP + JAVA API
⤷ STREX (Package) TREX ABAP client
⤷ BC-TRX-API (Application Component) TREX ABAP + JAVA API
⤷ STREX (Package) TREX ABAP client
Properties
Class | CL_TREX_CHAR_UTILITY | |
Short Description | Tools for manipulating character based data. | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | STREX | TREX ABAP client |
Created | 20050817 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ABAP | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_TREX_CHAR_UTILITY has no interface implemented.
Friends
Class CL_TREX_CHAR_UTILITY has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | C_ABAP_VALID_CHARS | Constant | Public | Type reference (TYPE) | STRING | 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789#$%&*-/;<=>?@^{|}' | 20120928 | ||
2 | C_CLASS_NAME | Constant | Private | Type reference (TYPE) | STRING | 'CL_TREX_CHAR_UTILITY=>' | 20050909 | ||
3 | UTF8_CONV_IN | Static Attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_CONV_IN_CE | Code Page and Endian Conversion (External -> System Format) | 20060523 | ||
4 | UTF8_CONV_OUT | Static Attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_CONV_OUT_CE | Code Page and Endian Conversion (System Format -> External) | 20060523 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CHAR_TO_INT | Static method | Public | Method | Convert character to integer. | 20100319 |
2 | CONVERT_FROM_UTF8 | Static method | Public | Method | Codepage conversion from UTF8 to a system codepage. | 20050817 |
3 | CONVERT_TO_STRING | Static method | Public | Method | Convert data to string. | 20100318 |
4 | CONVERT_TO_UTF8 | Static method | Public | Method | Codepage conversion from a system codepage to UTF8. | 20050817 |
5 | ENCLOSE_WITH_DOUBLE_QUOT | Static method | Public | Method | enclose value with double quotation | 20100324 |
6 | ENCLOSE_WITH_SINGLE_QUOT | Static method | Public | Method | enclose value with single quotation | 20100324 |
7 | GENERATE_TEST_DATA | Static method | Public | Method | Generate GUID based test data. | 20070823 |
8 | INSERT_ESCAPE | Static method | Public | Method | insert escape characters | 20121121 |
9 | INT_TO_CHAR | Static method | Public | Method | Convert integer to character. | 20100319 |
10 | IS_NUMERIC_ONLY | Static method | Public | Method | check if the value contains only numeric characters | 20120327 |
11 | REMOVE_ENCLOSED_DOUBLE_QUOTES | Static method | Public | Method | remove enclosed double quotation | 20120520 |
12 | REMOVE_ENCLOSED_SINGLE_QUOTES | Static method | Public | Method | remove enclosed single quotation | 20120520 |
13 | REMOVE_LEADING_NULL | Static method | Public | Method | Remove leading NULLs from character based data. | 20070422 |
14 | REMOVE_LEADING_ZERO | Static method | Public | Method | Remove leading '0's from numeric character values. | 20050817 |
15 | REMOVE_TRAILING_NULL | Static method | Public | Method | Remove trailing NULLs from character based data. | 20070418 |
16 | REMOVE_TRAILING_ZERO | Static method | Public | Method | Remove trailing '0's from numeric character values. | 20050817 |
17 | REPLACE_ABAP_INVALID_CHARS | Static method | Public | Method | replace characters which are invalid in abap comp. | 20120928 |
18 | REPLACE_SPACE_WITH_UNDERSCORE | Static method | Public | Method | Replace space with underscore (but not for trailing spaces). | 20070926 |
19 | SPLIT_TEXT | Static method | Public | Method | Split a long text by specified length. | 20080930 |
20 | SPLIT_TEXT_INTO_ITAB | Static method | Public | Method | Split a long text and store into itab. | 20121002 |
Events
Class CL_TREX_CHAR_UTILITY has no event.
Types
Class CL_TREX_CHAR_UTILITY has no local type.
Method Signatures
Method CHAR_TO_INT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | CHAR_VAL | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20100319 | ||
2 | Returning | INT_VAL | Value transfer | Type reference (TYPE) | I | 20100319 |
Method CHAR_TO_INT on class CL_TREX_CHAR_UTILITY has no exception.
Method CONVERT_FROM_UTF8 Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EX_CHAR_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Konvertierter String | 20050906 | ||
2 | Importing | IM_UTF8_STRING | Call by reference | Type reference (TYPE) | XSEQUENCE | UTF8-String | 20050817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_SY_CONVERSION_CODEPAGE | Fehler gefunden und Nachricht erzeugt | 20050822 |
Method CONVERT_TO_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RVAL | Value transfer | Type reference (TYPE) | STRING | 20100318 | |||
2 | Importing | VALUE | Call by reference | Type reference (TYPE) | ANY | 20100318 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TREX_UNEXPECTED_DATA_TYPE | Unexpected data type received. | 20100318 |
Method CONVERT_TO_UTF8 Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EX_UTF8_STRING | Call by reference | Type reference (TYPE) | XSEQUENCE | UTF8-String | 20050906 | ||
2 | Importing | IM_CHAR_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Zeichen-String | 20050817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_SY_CONVERSION_CODEPAGE | Fehler gefunden und Nachricht erzeugt | 20050822 |
Method ENCLOSE_WITH_DOUBLE_QUOT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | FORCE_MODE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | X: enclose without check | 20101108 | |
2 | Returning | RVAL | Value transfer | Type reference (TYPE) | STRING | 20100324 | |||
3 | Importing | VALUE | Call by reference | Type reference (TYPE) | CLIKE | 20100324 |
Method ENCLOSE_WITH_DOUBLE_QUOT on class CL_TREX_CHAR_UTILITY has no exception.
Method ENCLOSE_WITH_SINGLE_QUOT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | FORCE_MODE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | X: enclose without check | 20101108 | |
2 | Returning | RVAL | Value transfer | Type reference (TYPE) | STRING | 20100324 | |||
3 | Importing | VALUE | Call by reference | Type reference (TYPE) | CLIKE | 20100324 |
Method ENCLOSE_WITH_SINGLE_QUOT on class CL_TREX_CHAR_UTILITY has no exception.
Method GENERATE_TEST_DATA Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | DATA | Value transfer | Type reference (TYPE) | XSTRING | 20070823 | |||
2 | Importing | LENGTH | Call by reference | Type reference (TYPE) | I | 1024 | data length (must be a multiple of 32) | 20070823 |
Method GENERATE_TEST_DATA on class CL_TREX_CHAR_UTILITY has no exception.
Method INSERT_ESCAPE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | ESCAPED_CHAR | Call by reference | Type reference (TYPE) | CLIKE | '''' | character which needs to be escaped | 20121121 | |
2 | Importing | ESCAPE_CHAR | Call by reference | Type reference (TYPE) | CLIKE | '''' | escaping character | 20121121 | |
3 | Importing | ORG_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | 20121121 | |||
4 | Returning | RVAL | Value transfer | Type reference (TYPE) | STRING | 20121121 |
Method INSERT_ESCAPE on class CL_TREX_CHAR_UTILITY has no exception.
Method INT_TO_CHAR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | CHAR_VAL | Value transfer | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20100319 | ||
2 | Importing | INT_VAL | Call by reference | Type reference (TYPE) | I | 20100319 |
Method INT_TO_CHAR on class CL_TREX_CHAR_UTILITY has no exception.
Method IS_NUMERIC_ONLY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | VAL | Call by reference | Type reference (TYPE) | CLIKE | 20120327 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TREX_BAD_REQUEST | Unexpected data received from application. | 20120327 |
Method REMOVE_ENCLOSED_DOUBLE_QUOTES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RVAL | Value transfer | Type reference (TYPE) | STRING | 20120520 | |||
2 | Importing | VALUE | Call by reference | Type reference (TYPE) | CLIKE | 20120520 |
Method REMOVE_ENCLOSED_DOUBLE_QUOTES on class CL_TREX_CHAR_UTILITY has no exception.
Method REMOVE_ENCLOSED_SINGLE_QUOTES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RVAL | Value transfer | Type reference (TYPE) | STRING | 20120520 | |||
2 | Importing | VALUE | Call by reference | Type reference (TYPE) | CLIKE | 20120520 |
Method REMOVE_ENCLOSED_SINGLE_QUOTES on class CL_TREX_CHAR_UTILITY has no exception.
Method REMOVE_LEADING_NULL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Changing | VAL | Call by reference | Type reference (TYPE) | CLIKE | 20070422 |
Method REMOVE_LEADING_NULL on class CL_TREX_CHAR_UTILITY has no exception.
Method REMOVE_LEADING_ZERO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IM_NUMERIC_VALUE | Call by reference | Type reference (TYPE) | CLIKE | Beliebige Länge nummerischer Werte (char oder string) | 20050817 | ||
2 | Returning | RT_NUMERIC_STRING | Value transfer | Type reference (TYPE) | STRING | Zeichenbasierte nummerische Daten | 20050817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_SY_ARG_OUT_OF_DOMAIN | Fehler gefunden und Nachricht erzeugt | 20050822 |
Method REMOVE_TRAILING_NULL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Changing | VAL | Call by reference | Type reference (TYPE) | CLIKE | 20070418 |
Method REMOVE_TRAILING_NULL on class CL_TREX_CHAR_UTILITY has no exception.
Method REMOVE_TRAILING_ZERO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IM_NUMERIC_VALUE | Call by reference | Type reference (TYPE) | CLIKE | Beliebige Länge nummerischer Werte (char oder string) | 20050817 | ||
2 | Returning | RT_NUMERIC_STRING | Value transfer | Type reference (TYPE) | STRING | Zeichenbasierte nummerische Daten | 20050817 |
Method REMOVE_TRAILING_ZERO on class CL_TREX_CHAR_UTILITY has no exception.
Method REPLACE_ABAP_INVALID_CHARS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Changing | DATA | Call by reference | Type reference (TYPE) | CSEQUENCE | 20120928 | |||
2 | Importing | REPLACEMENT_CHAR | Call by reference | Type reference (TYPE) | CHAR1 | '#' | Single-Character Flag | 20120928 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TREX_BAD_REQUEST | Unexpected data received from application. | 20121001 |
Method REPLACE_SPACE_WITH_UNDERSCORE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Changing | VAL | Call by reference | Type reference (TYPE) | CLIKE | 20070926 |
Method REPLACE_SPACE_WITH_UNDERSCORE on class CL_TREX_CHAR_UTILITY has no exception.
Method SPLIT_TEXT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | REST | Call by reference | Type reference (TYPE) | STRING | Text which exceeds 200 characters will be stored here. | 20080930 | ||
2 | Importing | SPLIT_LENGTH | Call by reference | Type reference (TYPE) | I | 50 | Character length for each split text | 20080930 | |
3 | Exporting | SPLIT_TEXT_V1 | Call by reference | Type reference (TYPE) | CLIKE | Split text 1 | 20080930 | ||
4 | Exporting | SPLIT_TEXT_V2 | Call by reference | Type reference (TYPE) | CLIKE | Split text 2 | 20080930 | ||
5 | Exporting | SPLIT_TEXT_V3 | Call by reference | Type reference (TYPE) | CLIKE | Split text 3 | 20080930 | ||
6 | Exporting | SPLIT_TEXT_V4 | Call by reference | Type reference (TYPE) | CLIKE | Split text 4 | 20080930 | ||
7 | Importing | TEXT | Call by reference | Type reference (TYPE) | CLIKE | Source text | 20080930 |
Method SPLIT_TEXT on class CL_TREX_CHAR_UTILITY has no exception.
Method SPLIT_TEXT_INTO_ITAB Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | SPLIT_LENGTH | Call by reference | Type reference (TYPE) | I | 50 | 20121002 | ||
2 | Exporting | SPLIT_TEXTS | Call by reference | Type reference (TYPE) | TREXT_STRING | Table of STRINGs | 20121002 | ||
3 | Importing | TEXT | Call by reference | Type reference (TYPE) | CLIKE | 20121002 |
Method SPLIT_TEXT_INTO_ITAB on class CL_TREX_CHAR_UTILITY has no exception.
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 710 |