Hierarchy
⤷
⤷
Properties
| Class | CL_OIUP_CODE_GEN | |
| Short Description | PDM - Code generation class | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | OIUP | |
| Program status | ||
| Category | 0 | |
| Package | OIU_P | Partitioned Data Management |
| Created | 20040518 | SAP |
| Last change | 20050615 | 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_OIUP_CODE_GEN has no interface implemented.
Friends
Class CL_OIUP_CODE_GEN has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Type reference (TYPE) | TY_SPLIT_CODE_T | Buffered Table of ITAB Split Code | 20040520 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | TY_CODE_T | All SQL Code (So Far) | 20040518 | |||
| 3 | Static Attribute | Protected | Type reference (TYPE) | FLAG | 'X' = ASCII, SPACE = other code pages | 20040519 | |||
| 4 | Constant | Private | Type reference (TYPE) | CHAR01 | 'A' | Constant - AGGREGATE | 20040526 | ||
| 5 | Constant | Private | Type reference (TYPE) | CHAR03 | 'AND' | Constant - AND | 20040518 | ||
| 6 | Constant | Public | Type reference (TYPE) | CHAR01 | 'A' | Constant - APPEND code | 20040528 | ||
| 7 | Constant | Private | Type reference (TYPE) | STRING | 'APPENDING' | Constant - APPENDING | 20040730 | ||
| 8 | Constant | Private | Type reference (TYPE) | CHAR01 | '*' | Constant - SQL Type '*' | 20040518 | ||
| 9 | Constant | Private | Type reference (TYPE) | STRING | 'CLIENT SPECIFIED' | Constant - CLIENT_SPECIFIED | 20040730 | ||
| 10 | Constant | Private | Type reference (TYPE) | STRING | 'CORRESPONDING' | Constant - CORRESPONDING | 20040927 | ||
| 11 | Constant | Private | Type reference (TYPE) | CHAR01 | 'C' | Constant - SQL Type 'Count' | 20040518 | ||
| 12 | Constant | Public | Type reference (TYPE) | CHAR01 | 'D' | Constant - SQL Type 'Distinct' | 20040518 | ||
| 13 | Constant | Public | Type reference (TYPE) | CHAR01 | 'J' | Constant - ENDSELECT with Join | 20040604 | ||
| 14 | Constant | Public | Type reference (TYPE) | CHAR01 | 'E' | Constant - ENDSELECT single table | 20040604 | ||
| 15 | Constant | Private | Type reference (TYPE) | CHAR01 | SPACE | Constant - False | 20040518 | ||
| 16 | Constant | Public | Type reference (TYPE) | CHAR01 | 'F' | Constant - FOR ALL ENTRIES | 20040628 | ||
| 17 | Constant | Private | Type reference (TYPE) | CHAR01 | 'F' | Constant - FROM | 20050520 | ||
| 18 | Constant | Private | Type reference (TYPE) | CHAR01 | 'G' | Constant - GROUP BY code | 20040518 | ||
| 19 | Constant | Private | Type reference (TYPE) | CHAR01 | 'H' | Constant - HAVING code | 20040518 | ||
| 20 | Constant | Private | Type reference (TYPE) | CHAR01 | 'I' | Constant - INTO | 20040518 | ||
| 21 | Constant | Private | Type reference (TYPE) | CHAR01 | 'X' | Constant - SQL Type 'Maximum' | 20040518 | ||
| 22 | Constant | Private | Type reference (TYPE) | CHAR01 | 'N' | Constant - SQL Type 'Minimum' | 20040518 | ||
| 23 | Constant | Public | Type reference (TYPE) | CHAR01 | 'O' | Constant - FETCH CURSOR | 20040622 | ||
| 24 | Constant | Private | Type reference (TYPE) | CHAR01 | 'O' | Constant - ORDER BY code | 20040518 | ||
| 25 | Constant | Public | Type reference (TYPE) | CHAR01 | 'P' | Constant - PACKAGE SIZE construct | 20040617 | ||
| 26 | Constant | Private | Type reference (TYPE) | CHAR01 | '.' | Constant - Period | 20040518 | ||
| 27 | Constant | Public | Type reference (TYPE) | CHAR01 | 'S' | Constant - SHADOW | 20040518 | ||
| 28 | Constant | Public | Type reference (TYPE) | CHAR01 | '1' | Constant - Single Table | 20040526 | ||
| 29 | Constant | Public | Type reference (TYPE) | CHAR01 | 'I' | Constant - Split ITAB | 20040520 | ||
| 30 | Constant | Private | Type reference (TYPE) | CHAR01 | 'R' | Constant - STORE code | 20040527 | ||
| 31 | Constant | Private | Type reference (TYPE) | CHAR01 | 'S' | Constant - SQL Type 'Sum' | 20040518 | ||
| 32 | Constant | Private | Type reference (TYPE) | CHAR01 | 'X' | Constant - True | 20040518 | ||
| 33 | Constant | Private | Type reference (TYPE) | CHAR01 | 'W' | Constant - WHERE | 20040518 | ||
| 34 | Instance attribute | Public | Type reference (TYPE) | I | Line number of syntax error | 20040518 | |||
| 35 | Instance attribute | Public | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB of FROM clause | 20040518 | |||
| 36 | Static Attribute | Public | Type reference (TYPE) | OIUP_GENERATED_PROGRAMS_ITAB | Generated Programs ITAB buffer | 20041210 | |||
| 37 | Static Attribute | Private | Type reference (TYPE) | I | Number of subpools generated | 20041210 | |||
| 38 | Instance attribute | Public | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB of INTO clause | 20040518 | |||
| 39 | Instance attribute | Public | Object reference (TYPE REF TO) | IF_OIUP_SQL_PARSER_SELECT | PDM - Parse SELECT Interface | 20040518 | |||
| 40 | Instance attribute | Public | Object reference (TYPE REF TO) | IF_OIUP_SQL_PARSER_WHERE | PDM - Parse SQL With WHERE Clause Interface | 20040518 | |||
| 41 | Instance attribute | Public | Type reference (TYPE) | STRING | Generation message | 20040518 | |||
| 42 | Static Attribute | Private | Type reference (TYPE) | I | Modification Tabix | 20041210 | |||
| 43 | Instance attribute | Public | Object reference (TYPE REF TO) | CL_OIUP_SQL_PARSER | PDM - SQL Parser | 20040518 | |||
| 44 | Instance attribute | Private | Type reference (TYPE) | TY_PRIMARY_KEY_T | Primary Key table | 20040610 | |||
| 45 | Instance attribute | Public | Type reference (TYPE) | PROGRAM | Generated program name | 20040518 | |||
| 46 | Static Attribute | Protected | Type reference (TYPE) | FLAG | X' = 46x, SPACE = 472 & Higher | 20040519 | |||
| 47 | Instance attribute | Public | Type reference (TYPE) | SUBRC | Generation return code | 20040518 | |||
| 48 | Instance attribute | Public | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB of SELECT clause | 20040518 | |||
| 49 | Instance attribute | Public | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB of ABAP source | 20040518 | |||
| 50 | Instance attribute | Public | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB for genarated SQL | 20040518 | |||
| 51 | Static Attribute | Protected | Type reference (TYPE) | FLAG | X' = UNICODE, SPACE = not | 20040519 | |||
| 52 | Instance attribute | Public | Type reference (TYPE) | CHAR01 | Flag, var. substitution complete | 20040518 | |||
| 53 | Instance attribute | Public | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB of WHERE clause | 20040518 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Add GROUP BY,ORDER BY etc. to generated SQL | 20040518 | |
| 2 | Instance method | Private | Method | Encaspulate logic for CLIENT addition in WHERE clause | 20040802 | |
| 3 | Instance method | Private | Method | ALL ENTRIES constr - Check if any field names are different | 20040628 | |
| 4 | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20040519 | |
| 5 | Instance method | Private | Method | Make a copy of the SQL parser objects | 20040617 | |
| 6 | Static method | Public | Method | Create METHOD (with buffer check) | 20040518 | |
| 7 | Instance method | Public | Method | Execute generated subroutine | 20040518 | |
| 8 | Instance method | Private | Method | Generate a physical report ( no. of subpool gens > 36) | 20041210 | |
| 9 | Instance method | Private | Method | Use the SQL tab to generate the program | 20040518 | |
| 10 | Instance method | Private | Method | Source code for Aggregate functions only | 20040621 | |
| 11 | Instance method | Private | Method | Generate - Append Generic ITAB to original ITAB | 20040518 | |
| 12 | Instance method | Private | Method | Create source code for Single table SELECT / ENDSELECT | 20040607 | |
| 13 | Instance method | Public | Method | Generate - Merge data from PRA and Nearline sources | 20040518 | |
| 14 | Instance method | Private | Method | Generate source code for PACKAGE SIZE construct | 20040616 | |
| 15 | Instance method | Private | Method | Generate - Shadow SQL | 20040526 | |
| 16 | Instance method | Private | Method | Create source code for Single table SELECT | 20040518 | |
| 17 | Instance method | Private | Method | Generate - Split ITAB Based On Split Date | 20040520 | |
| 18 | Static method | Public | Method | Mark Generated Program As "Deleted" | 20041210 | |
| 19 | Instance method | Private | Method | Order By clause - Check if any field names are different | 20040616 | |
| 20 | Instance method | Private | Method | Set generated program variables | 20040518 | |
| 21 | Instance method | Public | Method | Convert an ITAB of STRING to a data tab | 20040519 | |
| 22 | Instance method | Public | Method | Convert a work area of STRING to a data work area | 20040527 | |
| 23 | Instance method | Private | Method | Substitute ALIASes in the case of SHADOW | 20050504 | |
| 24 | Instance method | Private | Method | Substitute field names for field symbols into SQL | 20040518 | |
| 25 | Instance method | Private | Method | Determine the primary key fields for a table | 20040609 |
Events
Class CL_OIUP_CODE_GEN has no event.
Types
Class CL_OIUP_CODE_GEN has no local type.
Method Signatures
Method ADD_CLAUSE_TO_SQL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CLAUSE | Call by reference | Type reference (TYPE) | OIUP_STRING_ITAB | ITAB of string type | 20040518 | |||
| 2 | CLAUSE_ID | Call by reference | Type reference (TYPE) | CHAR1 | 'G' = Group By, 'O' = Order by, 'H' = Having, 'R' = Returnin | 20040518 | |||
| 3 | PRA_OR_SHADOW | Call by reference | Type reference (TYPE) | CHAR1 | 'P' = PRA, 'S' = Shadow | 20040518 |
Method ADD_CLAUSE_TO_SQL on class CL_OIUP_CODE_GEN has no exception.
Method ADD_CLIENT_SPECIFIED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | WHERE_ITAB | Call by reference | Type reference (TYPE) | OIUP_STRING_ITAB | WHERE Clause ITAB | 20040802 |
Method ADD_CLIENT_SPECIFIED on class CL_OIUP_CODE_GEN has no exception.
Method ALL_ENTRIES_CHECK_FIELDNAMES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DIFFERENT | Value transfer | Type reference (TYPE) | CHAR01 | Character field length 1 | 20040628 | |||
| 2 | FIELD_MAPPING | Call by reference | Type reference (TYPE) | MAP_T | Field mapping table | 20040628 | |||
| 3 | REFERENCE | Call by reference | Type reference (TYPE) | ROIUP_REFERENCE | INTO table reference | 20040628 |
Method ALL_ENTRIES_CHECK_FIELDNAMES on class CL_OIUP_CODE_GEN has no exception.
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_OIUP_CODE_GEN has no parameter.
Method CLASS_CONSTRUCTOR on class CL_OIUP_CODE_GEN has no exception.
Method COPY_SQL_PARSER Signature
Method COPY_SQL_PARSER on class CL_OIUP_CODE_GEN has no parameter.
Method COPY_SQL_PARSER on class CL_OIUP_CODE_GEN has no exception.
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CODE_GEN | Value transfer | Object reference (TYPE REF TO) | CL_OIUP_CODE_GEN | Generated Code | 20040520 | |||
| 2 | GEN_ID | Value transfer | Type reference (TYPE) | CHAR01 | 'P' = PRA, 'S' = Shadow, 'A' = Append, 'M' = Merge,'I'=Split | 20040518 | |||
| 3 | PARSER | Value transfer | Object reference (TYPE REF TO) | IF_OIUP_SQL_PARSER | SQL Parser Interface | 20040518 | |||
| 4 | TABNAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20040520 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during the generation of the subroutine pool | 20040518 |
Method EXECUTE_SUBROUTINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DBCNT | Value transfer | Type reference (TYPE) | SYDBCNT | Processed Database Table Rows | 20050506 | |||
| 2 | FIELD_LIST | Value transfer | Type reference (TYPE) | STRING | Field List | 20040526 | |||
| 3 | GEN_ID | Value transfer | Type reference (TYPE) | CHAR01 | 20040526 | ||||
| 4 | GUID | Value transfer | Type reference (TYPE) | GUID_32 | SPACE | GUID in 'CHAR' Format in Upper Case | 20040518 | ||
| 5 | SPLIT_FROM_VALUE | Value transfer | Type reference (TYPE) | ANY | Split From Value | 20040520 | |||
| 6 | SPLIT_INPUT_ITAB | Value transfer | Type reference (TYPE) | ANY TABLE | Split Input ITAB | 20040520 | |||
| 7 | SPLIT_OUTPUT_ITAB | Value transfer | Type reference (TYPE) | ANY TABLE | Split Output ITAB | 20040520 | |||
| 8 | SPLIT_TO_VALUE | Value transfer | Type reference (TYPE) | ANY | Split To Value | 20040520 | |||
| 9 | SUBRC | Value transfer | Type reference (TYPE) | SYSUBRC | Return Value, Return Value After ABAP Statements | 20050506 |
Method EXECUTE_SUBROUTINE on class CL_OIUP_CODE_GEN has no exception.
Method GENERATE_PROGRAM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PROGRAM | Call by reference | Type reference (TYPE) | PROGRAM | Program/transaction in SQL trace analysis | 20041210 |
Method GENERATE_PROGRAM on class CL_OIUP_CODE_GEN has no exception.
Method GENERATE_SUBPOOL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ERROR_LINE | Call by reference | Type reference (TYPE) | I | Line of Error | 20040609 | |||
| 2 | MESSAGE | Call by reference | Type reference (TYPE) | STRING | Message string | 20040518 | |||
| 3 | PROGRAM | Call by reference | Type reference (TYPE) | PROGNAME | Generated ABAP name | 20040518 | |||
| 4 | RETURN_CODE | Call by reference | Type reference (TYPE) | SUBRC | Return code | 20040518 | |||
| 5 | SOURCE_ITAB | Call by reference | Type reference (TYPE) | OIUP_STRING_ITAB | PDM - Source ABAP | 20040518 |
Method GENERATE_SUBPOOL on class CL_OIUP_CODE_GEN has no exception.
Method GEN_AGGREGATE_CODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | AGG_SOURCE | Value transfer | Type reference (TYPE) | OIUP_STRING_ITAB | Aggregate Source Code | 20040621 |
Method GEN_AGGREGATE_CODE on class CL_OIUP_CODE_GEN has no exception.
Method GEN_APPEND_ITAB Signature
Method GEN_APPEND_ITAB on class CL_OIUP_CODE_GEN has no parameter.
Method GEN_APPEND_ITAB on class CL_OIUP_CODE_GEN has no exception.
Method GEN_ENDSELECT_SINGLE_TAB Signature
Method GEN_ENDSELECT_SINGLE_TAB on class CL_OIUP_CODE_GEN has no parameter.
Method GEN_ENDSELECT_SINGLE_TAB on class CL_OIUP_CODE_GEN has no exception.
Method GEN_MERGE_DATA Signature
Method GEN_MERGE_DATA on class CL_OIUP_CODE_GEN has no parameter.
Method GEN_MERGE_DATA on class CL_OIUP_CODE_GEN has no exception.
Method GEN_PACKAGE_SIZE Signature
Method GEN_PACKAGE_SIZE on class CL_OIUP_CODE_GEN has no parameter.
Method GEN_PACKAGE_SIZE on class CL_OIUP_CODE_GEN has no exception.
Method GEN_SHADOW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PARSER | Value transfer | Object reference (TYPE REF TO) | IF_OIUP_SQL_PARSER | PDM - SQL Parser Interface | 20040526 |
Method GEN_SHADOW on class CL_OIUP_CODE_GEN has no exception.
Method GEN_SINGLE_TABLE_SELECT Signature
Method GEN_SINGLE_TABLE_SELECT on class CL_OIUP_CODE_GEN has no parameter.
Method GEN_SINGLE_TABLE_SELECT on class CL_OIUP_CODE_GEN has no exception.
Method GEN_SPLIT_ITAB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TABNAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20040520 |
Method GEN_SPLIT_ITAB on class CL_OIUP_CODE_GEN has no exception.
Method MARK_GEN_PROGRAM_DELETED Signature
Method MARK_GEN_PROGRAM_DELETED on class CL_OIUP_CODE_GEN has no parameter.
Method MARK_GEN_PROGRAM_DELETED on class CL_OIUP_CODE_GEN has no exception.
Method ORDER_BY_CHECK_FIELDNAMES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DIFFERENT | Value transfer | Type reference (TYPE) | CHAR01 | Character field length 1 | 20040616 | |||
| 2 | FIELD_MAPPING | Call by reference | Type reference (TYPE) | MAP_T | Field mapping table | 20040616 |
Method ORDER_BY_CHECK_FIELDNAMES on class CL_OIUP_CODE_GEN has no exception.
Method SET_VARIABLES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | INTO_ITAB | Call by reference | Type reference (TYPE) | OIUP_REFERENCE_ITAB | INTO variables Reference | 20040518 | |||
| 2 | WHERE_ITAB | Call by reference | Type reference (TYPE) | OIUP_REFERENCE_ITAB | WHERE variables Reference | 20040518 |
Method SET_VARIABLES on class CL_OIUP_CODE_GEN has no exception.
Method STRING_ITAB_TO_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DATA_ITAB | Value transfer | Type reference (TYPE) | OIUP_STRING_ITAB | STRING ITAB of data | 20040519 | |||
| 2 | REF | Value transfer | Object reference (TYPE REF TO) | DATA | ITAB Reference | 20040607 |
Method STRING_ITAB_TO_DATA on class CL_OIUP_CODE_GEN has no exception.
Method STRING_WA_TO_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DATA | Value transfer | Type reference (TYPE) | STRING | String version of work area | 20040527 |
Method STRING_WA_TO_DATA on class CL_OIUP_CODE_GEN has no exception.
Method SUBSTITUE_ALIAS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ITAB | Call by reference | Type reference (TYPE) | OIUP_STRING_ITAB | PDM - String Internal Table | 20050504 |
Method SUBSTITUE_ALIAS on class CL_OIUP_CODE_GEN has no exception.
Method SUBSTITUTE_INTO_VARS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REF_TAB | Value transfer | Type reference (TYPE) | OIUP_REFERENCE_ITAB | PDM - Reference table type | 20040518 | |||
| 2 | SQL_TAB | Value transfer | Type reference (TYPE) | OIUP_STRING_ITAB | PDM - String Internal Table | 20040518 | |||
| 3 | VAR_TYPE | Value transfer | Type reference (TYPE) | CHAR1 | 'I' = INTO, 'W' = WHERE, 'F'=FROM | 20040518 |
Method SUBSTITUTE_INTO_VARS on class CL_OIUP_CODE_GEN has no exception.
Method TABLE_GET_PRIMARY_KEY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | PRIMARY_KEY_ONLY | Value transfer | Type reference (TYPE) | FLAG | Only get key fields of table | 20040623 | |||
| 2 | TABNAME | Value transfer | Type reference (TYPE) | TABNAME | Table Name | 20040609 |
Method TABLE_GET_PRIMARY_KEY on class CL_OIUP_CODE_GEN has no exception.
History
| Last changed by/on | SAP | 20050615 |
| SAP Release Created in | 472 |