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

⤷

⤷

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 | ![]() |
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 | ![]() |
Constant | Public | Type reference (TYPE) | STRING | 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789#$%&*-/;<=>?@^{|}' | 20120928 | ||
2 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | 'CL_TREX_CHAR_UTILITY=>' | 20050909 | ||
3 | ![]() |
Static Attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_CONV_IN_CE | Code Page and Endian Conversion (External -> System Format) | 20060523 | ||
4 | ![]() |
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 | ![]() |
Static method | Public | Method | Convert character to integer. | 20100319 |
2 | ![]() |
Static method | Public | Method | Codepage conversion from UTF8 to a system codepage. | 20050817 |
3 | ![]() |
Static method | Public | Method | Convert data to string. | 20100318 |
4 | ![]() |
Static method | Public | Method | Codepage conversion from a system codepage to UTF8. | 20050817 |
5 | ![]() |
Static method | Public | Method | enclose value with double quotation | 20100324 |
6 | ![]() |
Static method | Public | Method | enclose value with single quotation | 20100324 |
7 | ![]() |
Static method | Public | Method | Generate GUID based test data. | 20070823 |
8 | ![]() |
Static method | Public | Method | insert escape characters | 20121121 |
9 | ![]() |
Static method | Public | Method | Convert integer to character. | 20100319 |
10 | ![]() |
Static method | Public | Method | check if the value contains only numeric characters | 20120327 |
11 | ![]() |
Static method | Public | Method | remove enclosed double quotation | 20120520 |
12 | ![]() |
Static method | Public | Method | remove enclosed single quotation | 20120520 |
13 | ![]() |
Static method | Public | Method | Remove leading NULLs from character based data. | 20070422 |
14 | ![]() |
Static method | Public | Method | Remove leading '0's from numeric character values. | 20050817 |
15 | ![]() |
Static method | Public | Method | Remove trailing NULLs from character based data. | 20070418 |
16 | ![]() |
Static method | Public | Method | Remove trailing '0's from numeric character values. | 20050817 |
17 | ![]() |
Static method | Public | Method | replace characters which are invalid in abap comp. | 20120928 |
18 | ![]() |
Static method | Public | Method | Replace space with underscore (but not for trailing spaces). | 20070926 |
19 | ![]() |
Static method | Public | Method | Split a long text by specified length. | 20080930 |
20 | ![]() |
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 | ![]() |
CHAR_VAL | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20100319 | ||
2 | ![]() |
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 | ![]() |
EX_CHAR_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Konvertierter String | 20050906 | ||
2 | ![]() |
IM_UTF8_STRING | Call by reference | Type reference (TYPE) | XSEQUENCE | UTF8-String | 20050817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
RVAL | Value transfer | Type reference (TYPE) | STRING | 20100318 | |||
2 | ![]() |
VALUE | Call by reference | Type reference (TYPE) | ANY | 20100318 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
EX_UTF8_STRING | Call by reference | Type reference (TYPE) | XSEQUENCE | UTF8-String | 20050906 | ||
2 | ![]() |
IM_CHAR_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | Zeichen-String | 20050817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
FORCE_MODE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | X: enclose without check | 20101108 | |
2 | ![]() |
RVAL | Value transfer | Type reference (TYPE) | STRING | 20100324 | |||
3 | ![]() |
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 | ![]() |
FORCE_MODE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | X: enclose without check | 20101108 | |
2 | ![]() |
RVAL | Value transfer | Type reference (TYPE) | STRING | 20100324 | |||
3 | ![]() |
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 | ![]() |
DATA | Value transfer | Type reference (TYPE) | XSTRING | 20070823 | |||
2 | ![]() |
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 | ![]() |
ESCAPED_CHAR | Call by reference | Type reference (TYPE) | CLIKE | '''' | character which needs to be escaped | 20121121 | |
2 | ![]() |
ESCAPE_CHAR | Call by reference | Type reference (TYPE) | CLIKE | '''' | escaping character | 20121121 | |
3 | ![]() |
ORG_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | 20121121 | |||
4 | ![]() |
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 | ![]() |
CHAR_VAL | Value transfer | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20100319 | ||
2 | ![]() |
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 | ![]() |
VAL | Call by reference | Type reference (TYPE) | CLIKE | 20120327 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
RVAL | Value transfer | Type reference (TYPE) | STRING | 20120520 | |||
2 | ![]() |
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 | ![]() |
RVAL | Value transfer | Type reference (TYPE) | STRING | 20120520 | |||
2 | ![]() |
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 | ![]() |
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 | ![]() |
IM_NUMERIC_VALUE | Call by reference | Type reference (TYPE) | CLIKE | Beliebige Länge nummerischer Werte (char oder string) | 20050817 | ||
2 | ![]() |
RT_NUMERIC_STRING | Value transfer | Type reference (TYPE) | STRING | Zeichenbasierte nummerische Daten | 20050817 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
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 | ![]() |
IM_NUMERIC_VALUE | Call by reference | Type reference (TYPE) | CLIKE | Beliebige Länge nummerischer Werte (char oder string) | 20050817 | ||
2 | ![]() |
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 | ![]() |
DATA | Call by reference | Type reference (TYPE) | CSEQUENCE | 20120928 | |||
2 | ![]() |
REPLACEMENT_CHAR | Call by reference | Type reference (TYPE) | CHAR1 | '#' | Single-Character Flag | 20120928 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
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 | ![]() |
REST | Call by reference | Type reference (TYPE) | STRING | Text which exceeds 200 characters will be stored here. | 20080930 | ||
2 | ![]() |
SPLIT_LENGTH | Call by reference | Type reference (TYPE) | I | 50 | Character length for each split text | 20080930 | |
3 | ![]() |
SPLIT_TEXT_V1 | Call by reference | Type reference (TYPE) | CLIKE | Split text 1 | 20080930 | ||
4 | ![]() |
SPLIT_TEXT_V2 | Call by reference | Type reference (TYPE) | CLIKE | Split text 2 | 20080930 | ||
5 | ![]() |
SPLIT_TEXT_V3 | Call by reference | Type reference (TYPE) | CLIKE | Split text 3 | 20080930 | ||
6 | ![]() |
SPLIT_TEXT_V4 | Call by reference | Type reference (TYPE) | CLIKE | Split text 4 | 20080930 | ||
7 | ![]() |
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 | ![]() |
SPLIT_LENGTH | Call by reference | Type reference (TYPE) | I | 50 | 20121002 | ||
2 | ![]() |
SPLIT_TEXTS | Call by reference | Type reference (TYPE) | TREXT_STRING | Table of STRINGs | 20121002 | ||
3 | ![]() |
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 |