SAP CL_ABAP_FORMAT OO Class - Tools for Formatting
CL_ABAP_FORMAT is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_FORMAT including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of CL_ABAP_FORMAT SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
| Method Name | Description | Visability |
CL_ABAP_FORMAT attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
| Name | Level | Description | Initial Value | Type | Visability |
| A_CENTER | Constant | Centered Alignment | 3 | LIKE I | Public |
| A_LEFT | Constant | Left Alignment | 1 | LIKE I | Public |
| A_RIGHT | Constant | Right Alignment | 2 | LIKE I | Public |
| C_LOWER | Constant | Lowercase | 2 | LIKE I | Public |
| C_RAW | Constant | Unchanged Upper/Lower Case | 0 | LIKE I | Public |
| C_UPPER | Constant | Uppercase | 1 | LIKE I | Public |
| D_ENVIRONMENT | Constant | Date Format Environment-Specific | 3 | LIKE I | Public |
| D_ISO | Constant | Date Format 2007-01-31 | 2 | LIKE I | Public |
| D_RAW | Constant | Date Format 20070131 | 0 | LIKE I | Public |
| D_USER | Constant | User-Specific Date Format | 1 | LIKE I | Public |
| EXP_PRESERVE | Constant | Exponential Representation | CL_ABAP_MATH=>MAX_INT4 | LIKE I | Public |
| E_HTML_ATTR | Constant | HTML Attribute | 5 | LIKE I | Public |
| E_HTML_ATTR_DQ | Constant | HTML Attribute mit Delimiter ' | 6 | LIKE I | Public |
| E_HTML_ATTR_SQ | Constant | HTML Attribute mit Delimiter ' | 7 | LIKE I | Public |
| E_HTML_JS | Constant | Javascript | 8 | LIKE I | Public |
| E_HTML_JS_HTML | Constant | Javascript in HTML | 10 | LIKE I | Public |
| E_HTML_TEXT | Constant | HTML Text | 4 | LIKE I | Public |
| E_JSON_STRING | Constant | JSON String | 24 | LIKE I | Public |
| E_JSON_STRING_NU | Constant | JSON string (non-Unicode) | 39 | LIKE I | Public |
| E_PCRE | Constant | Regex (PCRE) | 40 | LIKE I | Public |
| E_PCRE_EXTENDED | Constant | Regex (PCRE extended mode) | 41 | LIKE I | Public |
| E_REGEX | Constant | Regex | 20 | LIKE I | Public |
| E_STRING_TPL | Constant | ABAP String Template | 22 | LIKE I | Public |
| E_URI | Constant | URI Without Reserved Character | 16 | LIKE I | Public |
| E_URI_1 | Constant | URI variant 1 | 33 | LIKE I | Public |
| E_URI_FULL | Constant | URI With Reserved Character | 18 | LIKE I | Public |
| E_URI_FULL_LC | Constant | Like URI_FULL, with lowercase escaping | 36 | LIKE I | Public |
| E_URI_LC | Constant | Like URI, with lowercase escaping | 35 | LIKE I | Public |
| E_URL | Constant | URL Without Reserved Character | 12 | LIKE I | Public |
| E_URL_FULL | Constant | URL With Reserved Character | 14 | LIKE I | Public |
| E_XML_ATTR | Constant | XML Attribute | 1 | LIKE I | Public |
| E_XML_ATTR_DQ | Constant | XML Attribute With Delimiter ' | 2 | LIKE I | Public |
| E_XML_ATTR_SQ | Constant | XML Attribute With Limiter ' | 3 | LIKE I | Public |
| E_XML_TEXT | Constant | XML Text | 0 | LIKE I | Public |
| E_XSS_CSS | Constant | XSS: Cascading Style Sheets | 30 | LIKE I | Public |
| E_XSS_CSS_7B | Constant | XSS: Cascading Style Sheets (7-Bit) | 21 | LIKE I | Public |
| E_XSS_CSS_NU | Constant | XSS: Cascading Style Sheets (Non-Unicode) | 31 | LIKE I | Public |
| E_XSS_JS | Constant | XSS: Javascript | 28 | LIKE I | Public |
| E_XSS_JS_7B | Constant | XSS: Javascript (7-Bit) | 23 | LIKE I | Public |
| E_XSS_JS_NU | Constant | XSS: Javascript (Non-Unicode) | 29 | LIKE I | Public |
| E_XSS_ML | Constant | XSS: XML/HTML | 26 | LIKE I | Public |
| E_XSS_ML_7B | Constant | XSS: XML/HTML (7-Bit) | 25 | LIKE I | Public |
| E_XSS_ML_NU | Constant | XSS: XML/HTML (Non-Unicode) | 27 | LIKE I | Public |
| E_XSS_URL | Constant | XSS: URL | 32 | LIKE I | Public |
| E_XSS_URL_7B | Constant | XSS: URL (7-Bit) | 19 | LIKE I | Public |
| L_IN | Constant | Alpha Conv: Input | 2 | LIKE I | Public |
| L_OUT | Constant | Alpha Conv: Output | 1 | LIKE I | Public |
| L_RAW | Constant | Alpha Conv: None | 0 | LIKE I | Public |
| N_ENVIRONMENT | Constant | Environment-Specific Number Formatting | 2 | LIKE I | Public |
| N_RAW | Constant | Neutral Number Formatting | 0 | LIKE I | Public |
| N_USER | Constant | User-Specific Number Formatting | 1 | LIKE I | Public |
| O_ENGINEERING | Constant | Output: Technical | 06 | LIKE OUTPUTSTYLE | Public |
| O_SCALE_PRESERVING | Constant | Output: Scale Preserving | 02 | LIKE OUTPUTSTYLE | Public |
| O_SCALE_PRESERVING_SCIENTIFIC | Constant | Output: Scale Preserving Scientific | 05 | LIKE OUTPUTSTYLE | Public |
| O_SCIENTIFIC | Constant | Output: Scientific | 03 | LIKE OUTPUTSTYLE | Public |
| O_SCIENTIFIC_WITH_LEADING_ZERO | Constant | Output: Scientific with Leading Zero | 04 | LIKE OUTPUTSTYLE | Public |
| O_SIGN_AS_POSTFIX | Constant | Output: +/- Sign Right | 01 | LIKE OUTPUTSTYLE | Public |
| O_SIMPLE | Constant | Output: Simple | 00 | LIKE OUTPUTSTYLE | Public |
| S_LEFT | Constant | Algebraic Sign Left, Positive Omitted | 1 | LIKE I | Public |
| S_LEFTPLUS | Constant | Algebraic Sign Left, Positive '+' | 2 | LIKE I | Public |
| S_LEFTSPACE | Constant | Algebraic Sign Left, Positive ' ' | 3 | LIKE I | Public |
| S_RIGHT | Constant | Algebraic Sign Right, Positive Omitted | 4 | LIKE I | Public |
| S_RIGHTPLUS | Constant | Algebraic Sign Right, Positive '+' | 5 | LIKE I | Public |
| S_RIGHTSPACE | Constant | Algebraic Sign Right, Positive ' ' | 6 | LIKE I | Public |
| TS_ENVIRONMENT | Constant | Time Stamp Format Environment-Specific | 4 | LIKE I | Public |
| TS_ISO | Constant | Date Stamp Format 2007-01-01T12:00:00[.123] | 3 | LIKE I | Public |
| TS_RAW | Constant | No Time Stamp Format | 0 | LIKE I | Public |
| TS_SPACE | Constant | Date Stamp Format 2007-01-01 12:00:00[.123] | 1 | LIKE I | Public |
| TS_USER | Constant | User-Specific Date Stamp Format | 2 | LIKE I | Public |
| T_ENVIRONMENT | Constant | Time Format Environment-Specific | 3 | LIKE I | Public |
| T_ISO | Constant | Time Format 12:00:00 | 1 | LIKE I | Public |
| T_RAW | Constant | Time Format 120000 | 0 | LIKE I | Public |
| T_USER | Constant | Time Format User-Specific | 2 | LIKE I | Public |
| X_NO | Constant | No XSD formatting | 0 | LIKE I | Public |
| X_YES | Constant | XSD formatting | 1 | LIKE I | Public |
| Z_NO | Constant | Repress Zero | 1 | LIKE I | Public |
| Z_YES | Constant | Output Zero | 0 | LIKE I | Public |
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects