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 ABAP 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 MC_ENCODING_UTF8 Static Attribute Private Type reference (TYPE) CHAR20 'UTF-8' Encoding for UTF-8 (Type ABAP_ENCODING) 20071029
2 MC_IGNORE_CERR Static Attribute Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE Do not ignore conversion errors 20071029
3 MC_SAPREL_46C Static Attribute Private Type reference (TYPE) CVERS-RELEASE '46C' SAP R/3 Release 4.6C 20071029
4 M_COUNTRY_OLD Instance attribute Private Type reference (TYPE) TCP0C-COUNTRY Country Key 20071029
5 M_LANGUAGE_OLD Instance attribute Private Type reference (TYPE) TCP0C-LANGU Language Key 20071029
6 M_MODIFIER_OLD 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 CONSTRUCTOR Instance method Public Constructor Create a converter object 20071029
2 CONVERT_TO_UTF8 Instance method Public Method Convert external format to UTF-8 20071029
3 CONVERT_TO_UTF8_46C Instance method Private Method Convert external format to UTF-8 (Non Unicode System) 20071029
4 CONVERT_TO_UTF8_NUS Instance method Private Method Convert external format to UTF-8 (Non Unicode System) 20071029
5 CONVERT_TO_UTF8_US Instance method Private Method Convert external format to UTF-8 (Unicode System) 20071029
6 RESET_LOCALE 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 Exporting E_LENGTH Call by reference Type reference (TYPE) I Length of output data 20071029
2 Exporting E_OUTPUT Call by reference Type reference (TYPE) ANY Output data in UTF-8 encoding 20071029
3 Importing I_INPUT Call by reference Type reference (TYPE) ANY Input data to be converted 20071029
4 Importing 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 CONV_ERROR Conversion error 20071029

Method CONVERT_TO_UTF8_46C Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_INPUT Call by reference Type reference (TYPE) ANY Input data to be converted 20071029
2 Importing I_LANGU Call by reference Type reference (TYPE) LANGU SY-LANGU Language Key identifying the codepage of the input data 20071029
3 Changing X_LENGTH Call by reference Type reference (TYPE) I Length of output data 20071029
4 Changing X_OUTPUT Call by reference Type reference (TYPE) ANY Output data in UTF-8 encoding 20071029
# Exception Resumable Description Created on
1 CONV_ERROR Conversion error 20071029

Method CONVERT_TO_UTF8_NUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ENCODING_OUT Call by reference Type reference (TYPE) CHAR20 'UTF-8' Encoding of the output data 20071029
2 Importing I_FLG_IGNORE_CERR Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Flag to ignore conversion errors 20071029
3 Importing I_INPUT Call by reference Type reference (TYPE) ANY Input data to be converted 20071029
4 Importing I_LANGU Call by reference Type reference (TYPE) LANGU SY-LANGU Language Key identifying the codepage of the input data 20071029
5 Changing X_LENGTH Call by reference Type reference (TYPE) I Length of output data 20071029
6 Changing X_OUTPUT Call by reference Type reference (TYPE) ANY Output data in UTF-8 encoding 20071029
# Exception Resumable Description Created on
1 CONV_ERROR Conversion error 20071029

Method CONVERT_TO_UTF8_US Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ENCODING_OUT Call by reference Type reference (TYPE) CHAR20 'UTF-8' Encoding of the output data 20071029
2 Importing I_FLG_IGNORE_CERR Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Flag to ignore conversion errors 20071029
3 Importing I_INPUT Call by reference Type reference (TYPE) ANY Input data to be converted 20071029
4 Changing X_LENGTH Call by reference Type reference (TYPE) I Length of output data 20071029
5 Changing X_OUTPUT Call by reference Type reference (TYPE) ANY Output data in UTF-8 encoding 20071029
# Exception Resumable Description Created on
1 CONV_ERROR 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