SAP ABAP Class /TDAG/CPCL_UTF8_CONVERTER (CP: Convert system or external data to UTF-8)
Hierarchy
☛
TDAGBCA (Software Component) TechniData Basic Components
⤷
EHS (Application Component) Environment, Health and Safety
⤷
/TDAG/CP_OF (Package) CP: Overall functions and features
⤷
⤷
Properties
| Class | /TDAG/CPCL_UTF8_CONVERTER | |
| Short Description | CP: Convert system or external data to UTF-8 | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | /TDAG/CP_OF | CP: Overall functions and features |
| Created | 20071029 | SAP |
| Last change | 20141109 | 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 /TDAG/CPCL_UTF8_CONVERTER has no interface implemented.
Friends
Class /TDAG/CPCL_UTF8_CONVERTER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Type reference (TYPE) | CHAR20 | 'UTF-8' | Encoding for UTF-8 (Type ABAP_ENCODING) | 20071029 | ||
| 2 | Static Attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Do not ignore conversion errors | 20071029 | ||
| 3 | Static Attribute | Private | Type reference (TYPE) | CVERS-RELEASE | '46C' | SAP R/3 Release 4.6C | 20071029 | ||
| 4 | Instance attribute | Private | Type reference (TYPE) | TCP0C-COUNTRY | Country Key | 20071029 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | TCP0C-LANGU | Language Key | 20071029 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | TCP0C-MODIFIER | Sub-selection for determining a locale | 20071029 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | Create a converter object | 20071029 | |
| 2 | Instance method | Public | Method | Convert external format to UTF-8 | 20071029 | |
| 3 | Instance method | Private | Method | Convert external format to UTF-8 (Non Unicode System) | 20071029 | |
| 4 | Instance method | Private | Method | Convert external format to UTF-8 (Non Unicode System) | 20071029 | |
| 5 | Instance method | Private | Method | Convert external format to UTF-8 (Unicode System) | 20071029 | |
| 6 | Instance method | Public | Method | Reset Locale settings to the original state (Only 4.6c) | 20071029 |
Events
Class /TDAG/CPCL_UTF8_CONVERTER has no event.
Types
Class /TDAG/CPCL_UTF8_CONVERTER has no local type.
Method Signatures
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class /TDAG/CPCL_UTF8_CONVERTER has no parameter.
Method CONSTRUCTOR on class /TDAG/CPCL_UTF8_CONVERTER has no exception.
Method CONVERT_TO_UTF8 Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_LENGTH | Call by reference | Type reference (TYPE) | I | Length of output data | 20071029 | |||
| 2 | E_OUTPUT | Call by reference | Type reference (TYPE) | ANY | Output data in UTF-8 encoding | 20071029 | |||
| 3 | I_INPUT | Call by reference | Type reference (TYPE) | ANY | Input data to be converted | 20071029 | |||
| 4 | I_LANGU | Call by reference | Type reference (TYPE) | LANGU | SY-LANGU | Language Key identifying the codepage of the input data | 20071029 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Conversion error | 20071029 |
Method CONVERT_TO_UTF8_46C Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_INPUT | Call by reference | Type reference (TYPE) | ANY | Input data to be converted | 20071029 | |||
| 2 | I_LANGU | Call by reference | Type reference (TYPE) | LANGU | SY-LANGU | Language Key identifying the codepage of the input data | 20071029 | ||
| 3 | X_LENGTH | Call by reference | Type reference (TYPE) | I | Length of output data | 20071029 | |||
| 4 | X_OUTPUT | Call by reference | Type reference (TYPE) | ANY | Output data in UTF-8 encoding | 20071029 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Conversion error | 20071029 |
Method CONVERT_TO_UTF8_NUS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ENCODING_OUT | Call by reference | Type reference (TYPE) | CHAR20 | 'UTF-8' | Encoding of the output data | 20071029 | ||
| 2 | I_FLG_IGNORE_CERR | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Flag to ignore conversion errors | 20071029 | ||
| 3 | I_INPUT | Call by reference | Type reference (TYPE) | ANY | Input data to be converted | 20071029 | |||
| 4 | I_LANGU | Call by reference | Type reference (TYPE) | LANGU | SY-LANGU | Language Key identifying the codepage of the input data | 20071029 | ||
| 5 | X_LENGTH | Call by reference | Type reference (TYPE) | I | Length of output data | 20071029 | |||
| 6 | X_OUTPUT | Call by reference | Type reference (TYPE) | ANY | Output data in UTF-8 encoding | 20071029 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Conversion error | 20071029 |
Method CONVERT_TO_UTF8_US Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ENCODING_OUT | Call by reference | Type reference (TYPE) | CHAR20 | 'UTF-8' | Encoding of the output data | 20071029 | ||
| 2 | I_FLG_IGNORE_CERR | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Flag to ignore conversion errors | 20071029 | ||
| 3 | I_INPUT | Call by reference | Type reference (TYPE) | ANY | Input data to be converted | 20071029 | |||
| 4 | X_LENGTH | Call by reference | Type reference (TYPE) | I | Length of output data | 20071029 | |||
| 5 | X_OUTPUT | Call by reference | Type reference (TYPE) | ANY | Output data in UTF-8 encoding | 20071029 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Conversion error | 20071029 |
Method RESET_LOCALE Signature
Method RESET_LOCALE on class /TDAG/CPCL_UTF8_CONVERTER has no parameter.
Method RESET_LOCALE on class /TDAG/CPCL_UTF8_CONVERTER has no exception.
History
| Last changed by/on | SAP | 20141109 |
| SAP Release Created in | 222_46C |