SAP ABAP Class CL_RSDRS_STMT_SRVS (Service Class for SQL Statement Generation)
Hierarchy
☛
SAP_BW (Software Component) SAP Business Warehouse
⤷
BW-BEX-OT (Application Component) OLAP Technology
⤷
RSDRS (Package) Data Manager SQL Interface
⤷
⤷
Properties
| Class | CL_RSDRS_STMT_SRVS | |
| Short Description | Service Class for SQL Statement Generation | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | RSDRS | Data Manager SQL Interface |
| Created | 20030224 | SAP |
| Last change | 20130531 | 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) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_RSDRS_STMT_SRVS has no interface implemented.
Friends
Class CL_RSDRS_STMT_SRVS has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Public | Type reference (TYPE) | I | size of statement | 20040413 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | TN_T_ABAPSOURCE | generated code | 20030224 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | append line to objects internal code | 20030224 | |
| 2 | Static method | Private | Method | Append a line and split it | 20030714 | |
| 3 | Instance method | Public | Method | append lines to objects code | 20030224 | |
| 4 | Static method | Public | Method | Append line to c_t_code, adapt c_size | 20030224 | |
| 5 | Instance method | Public | Method | append string to objects internal code | 20031210 | |
| 6 | Static method | Private | Method | Append a sql stmt token to code ... | 20030714 | |
| 7 | Static method | Public | Method | build the condition part of a where condition | 20030224 | |
| 8 | Instance method | Public | Method | Build parenthesis part of where/having statement | 20030301 | |
| 9 | Static method | Public | Method | Changes a single quote into two single quotes | 20030224 | |
| 10 | Static method | Public | Method | Change ABAP wildcards into SQL wildcards | 20030224 | |
| 11 | Instance method | Public | Method | clear the code | 20030224 | |
| 12 | Instance method | Public | Method | Close all parenthesis up to level 0 | 20030301 | |
| 13 | Instance method | Public | Method | gets the generated code | 20030224 | |
| 14 | Static method | Public | Method | Returns the SID of a PARTTIM for reference points | 20070205 | |
| 15 | Static method | Public | Method | set initial value for character constant | 20030224 | |
| 16 | Static method | Public | Method | split a line into several lines | 20030224 |
Events
Class CL_RSDRS_STMT_SRVS has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TN_ABAPLINE | Public | Type reference (TYPE) | RS_CHAR255 | Line of ABAP or SQL Stmt Code | 20030930 | |
| 2 | TN_T_ABAPSOURCE | Public | Type reference (TYPE) | RSDR0_T_ABAPSOURCE | ABAP or SQL Statement Code | 20030930 | |
Method Signatures
Method APPEND Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_LINE | Call by reference | Type reference (TYPE) | TN_ABAPLINE | line to append | 20030224 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Programm (interner Fehler) | 20030925 |
Method APPEND_AND_SPLIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_T_CODE | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | Code to append line to | 20030714 | |||
| 2 | I_LINE | Call by reference | Type reference (TYPE) | TN_ABAPLINE | Line to append | 20030714 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SQL-Statement ist zu groß | 20030925 |
Method APPEND_LINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_T_LINES | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | lines to append | 20030224 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Programm (interner Fehler) | 20030925 |
Method APPEND_SIZE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_SIZE | Call by reference | Type reference (TYPE) | I | current size of statement | 20030224 | |||
| 2 | C_T_CODE | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | current statement | 20030224 | |||
| 3 | I_LINE | Call by reference | Type reference (TYPE) | RSDRS_ABAPLINE | Line of code | 20030224 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Programm (interner Fehler) | 20030925 |
Method APPEND_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_STRING | Call by reference | Type reference (TYPE) | STRING | line to append | 20031210 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Programm (interner Fehler) | 20031210 |
Method APPEND_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_LINE | Call by reference | Type reference (TYPE) | ABAPSOURCE | Current buffered line | 20030714 | |||
| 2 | C_LINE_LEN | Call by reference | Type reference (TYPE) | I | Length of current line | 20030714 | |||
| 3 | C_T_CODE | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | Generated Code | 20030714 | |||
| 4 | I_FLUSH | Call by reference | Type reference (TYPE) | RS_BOOL | Flush last line | 20030714 | |||
| 5 | I_LEN | Call by reference | Type reference (TYPE) | I | Strlen of token | 20030714 | |||
| 6 | I_TOKEN | Call by reference | Type reference (TYPE) | TN_ABAPLINE | Token | 20030714 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SQL-Statement ist zu groß | 20030925 |
Method BUILD_CONDITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_T_CONDITION | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | Conditions | 20030224 | |||
| 2 | I_COMPOP | Call by reference | Type reference (TYPE) | RS_S_RANGE-OPT | comparison operator | 20030224 | |||
| 3 | I_HIGH | Value transfer | Type reference (TYPE) | RSCHAVL | high value for operator | 20030224 | |||
| 4 | I_LOW | Value transfer | Type reference (TYPE) | RSCHAVL | low value for operator | 20030224 | |||
| 5 | I_NUMFL | Call by reference | Type reference (TYPE) | RS_BOOL | Boolean | 20030224 | |||
| 6 | I_RAWEND | Call by reference | Type reference (TYPE) | CHAR20 | ''' )' | end of rawfield | 20060710 | ||
| 7 | I_RAWFL | Call by reference | Type reference (TYPE) | RS_BOOL | field is raw | 20060710 | |||
| 8 | I_RAWSTART | Call by reference | Type reference (TYPE) | CHAR20 | 'HEXTORAW( ''' | start of rawfield | 20060710 | ||
| 9 | I_SUBQUERY_ID | Call by reference | Type reference (TYPE) | RSDRS_SUBQUERY_ID | subquery within where condition | 20030224 | |||
| 10 | I_TH_INLIST | Call by reference | Type reference (TYPE) | RSDRS_TH_CHAVL | In List values | 20040130 | |||
| 11 | I_TH_IN_SID | Call by reference | Type reference (TYPE) | RRSI_TS_EQSID | SID inlist Values | 20040213 |
Method BUILD_CONDITION on class CL_RSDRS_STMT_SRVS has no exception.
Method BUILD_PARENTHESIS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_ACT_LEVEL | Call by reference | Type reference (TYPE) | RSDRS_S_WHERE-LEVEL | actual poarenthesis level | 20030301 | |||
| 2 | I_BOOLOP | Call by reference | Type reference (TYPE) | RSDRS_S_WHERE-BOOLOP | Boolop from where-condition | 20030301 | |||
| 3 | I_ISOLATE | Call by reference | Type reference (TYPE) | RSDRS_S_WHERE-ISOLATE | Isolate from where condition | 20030301 | |||
| 4 | I_LEVEL | Call by reference | Type reference (TYPE) | RSDRS_S_WHERE-LEVEL | Level from where condition | 20030301 | |||
| 5 | I_NOT_LEVEL | Call by reference | Type reference (TYPE) | RSDRS_S_WHERE-LEVEL | -1 | 20121004 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Programm (interner Fehler) | 20030925 |
Method CHANGE_QUOTES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_STRING | Call by reference | Type reference (TYPE) | ABAPSOURCE | string to change quotes in | 20030224 |
Method CHANGE_QUOTES on class CL_RSDRS_STMT_SRVS has no exception.
Method CHANGE_WILDCARDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_STRING | Call by reference | Type reference (TYPE) | ABAPSOURCE | line to change chars in | 20030224 | |||
| 2 | E_ESC | Call by reference | Type reference (TYPE) | C | wildcard char used | 20030224 |
Method CHANGE_WILDCARDS on class CL_RSDRS_STMT_SRVS has no exception.
Method CLEAR_CODE Signature
Method CLEAR_CODE on class CL_RSDRS_STMT_SRVS has no parameter.
Method CLEAR_CODE on class CL_RSDRS_STMT_SRVS has no exception.
Method FLUSH_PARENTHESIS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_ACT_LEVEL | Call by reference | Type reference (TYPE) | I | actual parenthesis level | 20030301 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler im Programm (interner Fehler) | 20030925 |
Method GET_CODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_T_CODE | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | code appended | 20030224 |
Method GET_CODE on class CL_RSDRS_STMT_SRVS has no exception.
Method GET_PARTIM_SID_REF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_NCUMTIM | Call by reference | Type reference (TYPE) | RSNCUMTIM | Bezugszeitmerkmal für Bestände | 20070205 | |||
| 2 | I_PARTIM | Call by reference | Type reference (TYPE) | RSPARTTIM | Partitionierungs-Zeitmerkmal | 20070205 | |||
| 3 | I_TH_COB_PRO | Call by reference | Type reference (TYPE) | RSDRS_TH_COB_PRO | Eigenschafen InfoObjects (im Kontext InfoCube / ODS Objekt) | 20070206 | |||
| 4 | R_PARTIM_SID_REF | Value transfer | Type reference (TYPE) | RSSID | SID für Partitionierungs-Zeitmerkmal von Stützstellen | 20070205 |
Method GET_PARTIM_SID_REF on class CL_RSDRS_STMT_SRVS has no exception.
Method INITIAL_CHA_CONST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_CONST | Call by reference | Type reference (TYPE) | RSDRS_ABAPLINE | constant value | 20030224 | |||
| 2 | I_CHANM | Call by reference | Type reference (TYPE) | RSCHANM | Name of Characteristic | 20030224 | |||
| 3 | I_TH_COB_PRO | Call by reference | Type reference (TYPE) | RSDRS_TH_COB_PRO | COB PRO for query | 20030224 |
Method INITIAL_CHA_CONST on class CL_RSDRS_STMT_SRVS has no exception.
Method SPLIT_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_T_CODE | Call by reference | Type reference (TYPE) | TN_T_ABAPSOURCE | result | 20030224 | |||
| 2 | I_STRING | Call by reference | Type reference (TYPE) | STRING | line to split | 20030224 |
Method SPLIT_LINE on class CL_RSDRS_STMT_SRVS has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 400 |