SAP ABAP Class CL_DBA_FORMAT (DBA Cockpit: ABAP type conversion routines)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DB (Application Component) Database Interface, Database Platforms
     SDBA_RUNTIME (Package) DBA Cockpit: Runtime
Properties
Class CL_DBA_FORMAT  
Short Description DBA Cockpit: ABAP type conversion routines    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SDBA_RUNTIME   DBA Cockpit: Runtime 
Created 20060220   SAP 
Last change 20140121   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)
2 DB6CC Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_DBA_FORMAT has no interface implemented.
Friends
Class CL_DBA_FORMAT has no friend class.
Attributes
Class CL_DBA_FORMAT has no attribute.
Methods
# Method Level Visibility Method type Description Created on
1 BYTES_TO_GIGA Static method Public Method 20100224
2 BYTES_TO_KB Static method Public Method 20100218
3 CHAR_TO_DEC Static method Public Method conversion routine: char to decimal 20060301
4 CONCATENATE_PRESERVING_BLANKS Static method Public Method 20110706
5 DECNUMBER_TO_CHAR Static method Public Method 20110523
6 DECODE_HTML Static method Public Method 20101206
7 DEC_TO_STRING Static method Public Method 20091210
8 ENCODE_STRINGTAB_TO_WD_HTML Static method Public Method 20080509
9 ENCODE_TAB_TO_WD_HTML Static method Public Method 20080304
10 ENCODE_TAB_TO_WD_TEXT Static method Public Method 20091104
11 ENCODE_TO_WD_HTML Static method Public Method encodes ABAP string to look good in a WD FormattedTextView 20080212
12 FLOAT16_TO_CHAR32 Static method Public Method 20070828
13 FORMAT_DB6DATETIM Static method Public Method 20100315
14 FORMAT_DB6TSTAMP Static method Public Method 20071121
15 FORMAT_MSEC Static method Public Method 20080428
16 GET_COMMAND_LIST Static method Public Method 20060220
17 HTML_TO_SAP_GUI_TEXT Static method Public Method 20130115
18 INTNUMBER_TO_CHAR Static method Public Method 20110523
19 INT_TO_BITMAP Static method Public Method 20130422
20 IS_ALPHANUMERIC Static method Public Method 20060801
21 IS_NUMERIC Static method Public Method retruns wether the given value is numeric or not 20060517
22 KBYTES_TO_GIGA Static method Public Method 20060704
23 KBYTES_TO_MEGA Static method Public Method 20120516
24 LPAD Static method Public Method 20110222
25 PAGES_TO_KB Static method Public Method 20080904
26 REMOVE_AT_END_OF_STRING Static method Public Method 20110524
27 REMOVE_LAST_CHAR Static method Public Method 20060220
28 REPLACE_ALL Static method Public Method replace all occurences of pattern in text with substitute 20060222
29 RPAD Static method Public Method 20110222
30 SIGNED_INT_TO_STRING Static method Public Method 20080116
31 STRING_TO_LIST Static method Public Method breaks string to editor line format 20080829
32 STRIP_TAGS Static method Public Method 20101206
33 XML_TO_STRINGTAB Static method Public Method 20111102
Events
Class CL_DBA_FORMAT has no event.
Types
Class CL_DBA_FORMAT has no local type.
Method Signatures

Method BYTES_TO_GIGA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BYTES Call by reference Type reference (TYPE) P 20100224
2 Returning GB Value transfer Type reference (TYPE) DB6CC_PACKED_INT64 20100224

Method BYTES_TO_GIGA on class CL_DBA_FORMAT has no exception.

Method BYTES_TO_KB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BYTES Call by reference Type reference (TYPE) P 20100218
2 Returning KB Value transfer Type reference (TYPE) DB6CC_PACKED_INT64 20100218

Method BYTES_TO_KB on class CL_DBA_FORMAT has no exception.

Method CHAR_TO_DEC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CHAR Call by reference Type reference (TYPE) CLIKE 20060301
2 Returning DEC Value transfer Type reference (TYPE) DEC20 20060301
# Exception Resumable Description Created on
1 CX_DBA_CONVERSION Conversion Error 20060301

Method CONCATENATE_PRESERVING_BLANKS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing SOURCE Call by reference Type reference (TYPE) C 20110706
2 Exporting TARGET Call by reference Type reference (TYPE) C 20110706

Method CONCATENATE_PRESERVING_BLANKS on class CL_DBA_FORMAT has no exception.

Method DECNUMBER_TO_CHAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CHAR Value transfer Type reference (TYPE) CHAR32 Character field, length 32 20110523
2 Importing NUMBER Call by reference Type reference (TYPE) P 20110523

Method DECNUMBER_TO_CHAR on class CL_DBA_FORMAT has no exception.

Method DECODE_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DECODED Value transfer Type reference (TYPE) STRING 20101206
2 Importing HTML Call by reference Type reference (TYPE) STRING 20101206

Method DECODE_HTML on class CL_DBA_FORMAT has no exception.

Method DEC_TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DEC Call by reference Type reference (TYPE) P 20091210
2 Importing DECIMALS Call by reference Type reference (TYPE) I 2 20091210
3 Returning STRING Value transfer Type reference (TYPE) STRING 20091210

Method DEC_TO_STRING on class CL_DBA_FORMAT has no exception.

Method ENCODE_STRINGTAB_TO_WD_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INPUT_TAB Call by reference Type reference (TYPE) DB6_STRING_TAB DB6: Table of DB6_EDITOR_LINE 20080509
2 Returning OUTPUT Value transfer Type reference (TYPE) STRING 20080509

Method ENCODE_STRINGTAB_TO_WD_HTML on class CL_DBA_FORMAT has no exception.

Method ENCODE_TAB_TO_WD_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing FIXED_FONT Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20080821
2 Importing INPUT_TAB Call by reference Type reference (TYPE) DB6_EDITOR_LIST DB6: Table of DB6_EDITOR_LINE 20080304
3 Returning OUTPUT Value transfer Type reference (TYPE) STRING 20080304

Method ENCODE_TAB_TO_WD_HTML on class CL_DBA_FORMAT has no exception.

Method ENCODE_TAB_TO_WD_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INPUT_TAB Call by reference Type reference (TYPE) DB6_EDITOR_LIST DB6: Table of DB6_EDITOR_LINE 20091104
2 Returning OUTPUT Value transfer Type reference (TYPE) STRING 20091104

Method ENCODE_TAB_TO_WD_TEXT on class CL_DBA_FORMAT has no exception.

Method ENCODE_TO_WD_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INPUT Call by reference Type reference (TYPE) CLIKE 20080212
2 Returning OUTPUT Value transfer Type reference (TYPE) STRING 20080212

Method ENCODE_TO_WD_HTML on class CL_DBA_FORMAT has no exception.

Method FLOAT16_TO_CHAR32 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DECIMALS Call by reference Type reference (TYPE) I 0 20070828
2 Importing INPUT Call by reference Type reference (TYPE) DBAFLTP16 Floating Point 16 20070828
3 Returning OUTPUT Value transfer Type reference (TYPE) DBACHAR32 Character 32 20070828

Method FLOAT16_TO_CHAR32 on class CL_DBA_FORMAT has no exception.

Method FORMAT_DB6DATETIM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DB6DATETIM Call by reference Type reference (TYPE) CLIKE 20100315
2 Returning FMT_DB6TSTAMP Value transfer Type reference (TYPE) STRING 20100315
3 Importing SKIP_SECONDS Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20100315
4 Importing USE_WEEKDAYS Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20100315

Method FORMAT_DB6DATETIM on class CL_DBA_FORMAT has no exception.

Method FORMAT_DB6TSTAMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DB6TSTAMP Call by reference Type reference (TYPE) CLIKE 20071121
2 Returning FMT_DB6TSTAMP Value transfer Type reference (TYPE) STRING 20071121
3 Importing GRANULARITY Call by reference Type reference (TYPE) I -1 20101210
4 Importing SKIP_SECONDS Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20080505
5 Importing TIMEPERIOD Call by reference Type reference (TYPE) I 20101210
6 Importing USE_WEEKDAYS Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20080505

Method FORMAT_DB6TSTAMP on class CL_DBA_FORMAT has no exception.

Method FORMAT_MSEC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning FMT_STR Value transfer Type reference (TYPE) STRING 20080428
2 Importing MSEC Call by reference Type reference (TYPE) I 20080428

Method FORMAT_MSEC on class CL_DBA_FORMAT has no exception.

Method GET_COMMAND_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning COMMAND_LIST Value transfer Type reference (TYPE) DB6_STRING_TAB DB6: List of single CLP commands 20060220
2 Importing EDITOR_LIST Call by reference Type reference (TYPE) DB6CC_EDITOR_LIST 20060220

Method GET_COMMAND_LIST on class CL_DBA_FORMAT has no exception.

Method HTML_TO_SAP_GUI_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing HTML_TEXT Call by reference Type reference (TYPE) STRING 20130115
2 Returning SAP_GUI_TEXT Value transfer Type reference (TYPE) STRING 20130115

Method HTML_TO_SAP_GUI_TEXT on class CL_DBA_FORMAT has no exception.

Method INTNUMBER_TO_CHAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CHAR Value transfer Type reference (TYPE) CHAR32 Character field, length 32 20110523
2 Importing NUMBER Call by reference Type reference (TYPE) I 20110523

Method INTNUMBER_TO_CHAR on class CL_DBA_FORMAT has no exception.

Method INT_TO_BITMAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning BITMAP Value transfer Type reference (TYPE) STRING 20130422
2 Importing INT Call by reference Type reference (TYPE) I 20130422

Method INT_TO_BITMAP on class CL_DBA_FORMAT has no exception.

Method IS_ALPHANUMERIC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ALPHANUMERIC Value transfer Type reference (TYPE) ABAP_BOOL 20060801
2 Importing VALUE Call by reference Type reference (TYPE) CLIKE 20060801

Method IS_ALPHANUMERIC on class CL_DBA_FORMAT has no exception.

Method IS_NUMERIC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning NUMERIC Value transfer Type reference (TYPE) ABAP_BOOL 20060517
2 Importing VALUE Call by reference Type reference (TYPE) CLIKE 20060517

Method IS_NUMERIC on class CL_DBA_FORMAT has no exception.

Method KBYTES_TO_GIGA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning GIGA Value transfer Type reference (TYPE) DB6CC_PACKED_INT64 20060704
2 Importing KBYTES Call by reference Type reference (TYPE) P 20060704

Method KBYTES_TO_GIGA on class CL_DBA_FORMAT has no exception.

Method KBYTES_TO_MEGA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing KBYTES Call by reference Type reference (TYPE) P 20120516
2 Returning MEGA Value transfer Type reference (TYPE) DB6CC_PACKED_INT64 20120516

Method KBYTES_TO_MEGA on class CL_DBA_FORMAT has no exception.

Method LPAD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing FILL_WITH Call by reference Type reference (TYPE) C SPACE 20110222
2 Importing IN Call by reference Type reference (TYPE) CLIKE 20110222
3 Importing LEN Call by reference Type reference (TYPE) I 20110222
4 Returning OUT Value transfer Type reference (TYPE) STRING 20110222

Method LPAD on class CL_DBA_FORMAT has no exception.

Method PAGES_TO_KB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning KBYTES Value transfer Type reference (TYPE) DB6CC_PACKED_INT64 20080904
2 Importing PAGES Call by reference Type reference (TYPE) P 20080904

Method PAGES_TO_KB on class CL_DBA_FORMAT has no exception.

Method REMOVE_AT_END_OF_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CHARACTER Call by reference Type reference (TYPE) C 20110524
2 Changing LINE Value transfer Type reference (TYPE) C 20110524

Method REMOVE_AT_END_OF_STRING on class CL_DBA_FORMAT has no exception.

Method REMOVE_LAST_CHAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CHAR_STRING Call by reference Type reference (TYPE) STRING 20060220

Method REMOVE_LAST_CHAR on class CL_DBA_FORMAT has no exception.

Method REPLACE_ALL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning NEWTEXT Value transfer Type reference (TYPE) STRING 20060222
2 Importing PATTERN Call by reference Type reference (TYPE) CLIKE 20060222
3 Importing SUBSTITUTE Call by reference Type reference (TYPE) CLIKE 20060222
4 Importing TEXT Call by reference Type reference (TYPE) CLIKE 20060222

Method REPLACE_ALL on class CL_DBA_FORMAT has no exception.

Method RPAD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing FILL_WITH Call by reference Type reference (TYPE) C SPACE 20110222
2 Importing IN Call by reference Type reference (TYPE) CLIKE 20110222
3 Importing LEN Call by reference Type reference (TYPE) I 20110222
4 Returning OUT Value transfer Type reference (TYPE) STRING 20110222

Method RPAD on class CL_DBA_FORMAT has no exception.

Method SIGNED_INT_TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INT Call by reference Type reference (TYPE) I 20080116
2 Returning STR Value transfer Type reference (TYPE) STRING 20080116

Method SIGNED_INT_TO_STRING on class CL_DBA_FORMAT has no exception.

Method STRING_TO_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DELIMITER Call by reference Type reference (TYPE) CHAR1 SPACE Single-Character Flag 20080829
2 Importing INDENT Call by reference Type reference (TYPE) I 20080829
3 Importing INPUT_STRING Call by reference Type reference (TYPE) STRING 20080829
4 Returning LINES Value transfer Type reference (TYPE) DB6_EDITOR_LIST DB6: Table of DB6_EDITOR_LINE 20080829
5 Importing LINE_LENGTH Value transfer Type reference (TYPE) I 20080829

Method STRING_TO_LIST on class CL_DBA_FORMAT has no exception.

Method STRIP_TAGS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing HTML Call by reference Type reference (TYPE) STRING 20101206
2 Returning STRIPPED Value transfer Type reference (TYPE) STRING 20101206

Method STRIP_TAGS on class CL_DBA_FORMAT has no exception.

Method XML_TO_STRINGTAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning STRINGTAB Value transfer Type reference (TYPE) DB6_STRING_TAB DBA: Simple List of Strings 20111102
2 Importing XML Call by reference Type reference (TYPE) STRING 20111102

Method XML_TO_STRINGTAB on class CL_DBA_FORMAT has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 710