SAP ABAP Class CL_DBA_SQL_FORMATTER (SQL Formatter Class)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DB (Application Component) Database Interface, Database Platforms
⤷
SDBA_COMMON (Package) Cross-Platform DBA cockpit objects

⤷

⤷

Properties
Class | CL_DBA_SQL_FORMATTER | |
Short Description | SQL Formatter Class | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SDBA_COMMON | Cross-Platform DBA cockpit objects |
Created | 20070228 | SAP |
Last change | 20140121 | 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_DBA_SQL_FORMATTER has no interface implemented.
Friends
Class CL_DBA_SQL_FORMATTER has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Private | Type reference (TYPE) | FLAG | 'I' | General Flag | 20070228 | |
2 | ![]() |
Constant | Private | Type reference (TYPE) | FLAG | 'N' | General Flag | 20070228 | |
3 | ![]() |
Constant | Private | Type reference (TYPE) | I | 4 | 20070301 | ||
4 | ![]() |
Static Attribute | Private | Type reference (TYPE) | DBCON_DBMS | Database system | 20111103 | ||
5 | ![]() |
Static Attribute | Private | Type reference (TYPE) | DIAG_TAB | 20130311 | |||
6 | ![]() |
Static Attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20130307 | |||
7 | ![]() |
Static Attribute | Private | Type reference (TYPE) | I | 20070228 | |||
8 | ![]() |
Static Attribute | Private | Type reference (TYPE) | I | 8 | 20070301 | ||
9 | ![]() |
Static Attribute | Private | See coding | 20070228 | ||||
10 | ![]() |
Static Attribute | Private | Type reference (TYPE) | I | 20070228 | |||
11 | ![]() |
Static Attribute | Private | Type reference (TYPE) | DB6_STRING_TAB | 20070228 | |||
12 | ![]() |
Static Attribute | Private | Type reference (TYPE) | DB6_STRING_TAB | 20070228 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Private | Method | append word respecting max. allowed length of one line | 20070228 |
2 | ![]() |
Static method | Private | Method | 20070301 | |
3 | ![]() |
Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20070228 |
4 | ![]() |
Static method | Private | Method | 20110127 | |
5 | ![]() |
Static method | Private | Method | 20070228 | |
6 | ![]() |
Static method | Public | Method | 20070228 | |
7 | ![]() |
Static method | Public | Method | Format Statement for WD output | 20071005 |
8 | ![]() |
Static method | Public | Method | 20130311 | |
9 | ![]() |
Static method | Private | Method | 20130311 | |
10 | ![]() |
Static method | Private | Method | 20130311 |
Events
Class CL_DBA_SQL_FORMATTER has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | DIAG_TAB | Public | See coding | 20130311 | diag_tab type standard table of diag_tab_entry
|
||
2 | DIAG_TAB_ENTRY | Public | See coding | 20130311 | begin of diag_tab_entry,
recursion_level type i,
indent_factor type i,
local_bracket_level type i,
from_clause_processed type abap_bool,
outer_from_clause_processed type abap_bool,
current_line type string,
end of diag_tab_entry
|
||
3 | KEY_TAB_ENTRY | Private | See coding | 20070228 | begin of key_tab_entry,
keyword type string,
action type flag,
indent_weight type i,
end of key_tab_entry
|
Method Signatures
Method APPEND_RESPECTING_LINE_LENGTH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
LINE_IN | Call by reference | Type reference (TYPE) | STRING | 20070228 | |||
2 | ![]() |
LINE_OUT | Value transfer | Type reference (TYPE) | STRING | 20070228 | |||
3 | ![]() |
WORD | Call by reference | Type reference (TYPE) | CLIKE | 20070228 |
Method APPEND_RESPECTING_LINE_LENGTH on class CL_DBA_SQL_FORMATTER has no exception.
Method APPEND_TO_OUTPUT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
LINE | Call by reference | Type reference (TYPE) | STRING | 20070301 |
Method APPEND_TO_OUTPUT on class CL_DBA_SQL_FORMATTER has no exception.
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_DBA_SQL_FORMATTER has no parameter.
Method CLASS_CONSTRUCTOR on class CL_DBA_SQL_FORMATTER has no exception.
Method EQUALSIGNORECASE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
EQUALS | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20110127 | |||
2 | ![]() |
STR1 | Call by reference | Type reference (TYPE) | STRING | 20110127 | |||
3 | ![]() |
STR2 | Call by reference | Type reference (TYPE) | STRING | 20110127 |
Method EQUALSIGNORECASE on class CL_DBA_SQL_FORMATTER has no exception.
Method FORMAT_SINGLE_STMT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
NEXT_TABIX | Value transfer | Type reference (TYPE) | I | 20070228 | |||
2 | ![]() |
OUTER_FROM_CLAUSE_PROCESSED | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130311 | |||
3 | ![]() |
RECURSION_LEVEL | Call by reference | Type reference (TYPE) | I | 20130311 | |||
4 | ![]() |
STMT_TABIX | Call by reference | Type reference (TYPE) | I | 20070228 |
Method FORMAT_SINGLE_STMT on class CL_DBA_SQL_FORMATTER has no exception.
Method FORMAT_STATEMENT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
FORMATTED_STMT | Value transfer | Type reference (TYPE) | DB6_STRING_TAB | DB6: List of single CLP commands | 20070228 | ||
2 | ![]() |
OP_DBSYS | Call by reference | Type reference (TYPE) | DBCON_DBMS | 20111103 | |||
3 | ![]() |
OP_DIAGMODE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20130307 | ||
4 | ![]() |
OP_INDENT_SIZE | Call by reference | Type reference (TYPE) | I | 7 | 20070228 | ||
5 | ![]() |
OP_MAX_OUTPUT_LENGTH | Call by reference | Type reference (TYPE) | I | 200 | 20070228 | ||
6 | ![]() |
RAW_STMT | Call by reference | Type reference (TYPE) | STRING | 20070228 |
Method FORMAT_STATEMENT on class CL_DBA_SQL_FORMATTER has no exception.
Method FORMAT_STATEMENT_WD Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
FORMATTED_STATEMENT | Value transfer | Type reference (TYPE) | STRING | 20071005 | |||
2 | ![]() |
HIGHLIGHT_KEYWORDS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20071005 | ||
3 | ![]() |
OP_DBSYS | Call by reference | Type reference (TYPE) | DBCON_DBMS | 20111103 | |||
4 | ![]() |
OP_INDENT_SIZE | Call by reference | Type reference (TYPE) | I | 7 | 20071005 | ||
5 | ![]() |
OP_MAX_OUTPUT_LENGTH | Call by reference | Type reference (TYPE) | I | 200 | 20071005 | ||
6 | ![]() |
RAW_STMT | Call by reference | Type reference (TYPE) | STRING | 20071005 |
Method FORMAT_STATEMENT_WD on class CL_DBA_SQL_FORMATTER has no exception.
Method GET_DIAGDATA Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DATA | Value transfer | Type reference (TYPE) | DIAG_TAB | 20130311 |
Method GET_DIAGDATA on class CL_DBA_SQL_FORMATTER has no exception.
Method GET_INDENT_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
FACTOR | Call by reference | Type reference (TYPE) | I | 20130311 | |||
2 | ![]() |
IDENT_STR | Value transfer | Type reference (TYPE) | STRING | 20130311 |
Method GET_INDENT_STRING on class CL_DBA_SQL_FORMATTER has no exception.
Method SET_INDENT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
NEW_INDENT | Call by reference | Type reference (TYPE) | I | 20130311 |
Method SET_INDENT on class CL_DBA_SQL_FORMATTER has no exception.
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in | 710 |