SAP ABAP Class /PLMB/CL_SPI_QUERY_BY_VIEW (Executes an SPI query using a database view)
Hierarchy
☛
SAP_BS_FND (Software Component) SAP Business Suite Foundation
⤷
CA-EPT-SPI (Application Component) Service Provider Infrastructure
⤷
/PLMB/BA_SPI_SERVICES (Package) Service Provider Infrastructure: Services
⤷
⤷
Properties
| Class | /PLMB/CL_SPI_QUERY_BY_VIEW | |
| Short Description | Executes an SPI query using a database view | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | /PLMB/BA_SPI_SERVICES | Service Provider Infrastructure: Services |
| Created | 20130717 | SAP |
| Last change | 20131127 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class /PLMB/CL_SPI_QUERY_BY_VIEW has no interface implemented.
Friends
Class /PLMB/CL_SPI_QUERY_BY_VIEW has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Object reference (TYPE REF TO) | /PLMB/IF_SPI_QUERY_AUTH | SPI query authorization checks | 20130722 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | GTY_T_COMP_NAME_MAPPING | Mapping table between node and view fieldnames | 20130722 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | TABNAME | Database view which will be queried | 20130722 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Makes sure the requested number of results is returned | 20130722 | |
| 2 | Instance method | Private | Method | Checks if the user has authorizations for the found objects | 20130722 | |
| 3 | Instance method | Public | Constructor | CONSTRUCTOR | 20130722 | |
| 4 | Instance method | Private | Method | Determines how many rows should be selected | 20130722 | |
| 5 | Instance method | Private | Method | Filters unwanted objects from the results | 20130722 | |
| 6 | Instance method | Private | Method | Generates the key fields for the SQL SELECT statement | 20130722 | |
| 7 | Instance method | Private | Method | Generates the ORDER BY clause for the SQL SELECT statement | 20130722 | |
| 8 | Instance method | Private | Method | Generates the WHERE clause for the SQL SELECT statement | 20130722 | |
| 9 | Instance method | Private | Method | Returns corresponding view component given a node component | 20130722 | |
| 10 | Instance method | Public | Method | Executes the query | 20130722 | |
| 11 | Instance method | Private | Method | Validate query parameters | 20130722 |
Events
Class /PLMB/CL_SPI_QUERY_BY_VIEW has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | GTY_S_COMP_NAME_MAPPING | Public | See coding | Mapping between node and view fieldnames | 20130722 | BEGIN OF gty_s_comp_name_mapping,
comp_name_node TYPE string,
comp_name_view TYPE string,
END OF gty_s_comp_name_mapping
|
|
| 2 | GTY_T_COMP_NAME_MAPPING | Public | See coding | Mapping table between node and view fieldnames | 20130722 | gty_t_comp_name_mapping TYPE HASHED TABLE OF gty_s_comp_name_mapping WITH UNIQUE KEY comp_name_node
|
Method Signatures
Method ADJUST_NUMBER_OF_RESULTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | Result Node ID | 20130722 | |||
| 2 | IV_REQU_NUMBER_OF_RESULTS | Call by reference | Type reference (TYPE) | /PLMB/SPI_NUMBER_OF_ROWS | Maximum Number of Rows to Be Returned | 20130722 |
Method ADJUST_NUMBER_OF_RESULTS on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method CHECK_AUTHORIZATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | Objects which will be checked (only authed objects remain) | 20130722 | |||
| 2 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 3 | EV_FAILED | Call by reference | Type reference (TYPE) | /PLMB/SPI_FAILED_IND | Failed Indicator | 20130722 | |||
| 4 | EV_OBJECTS_FILTERED | Call by reference | Type reference (TYPE) | BOOLE_D | true = object(s) have been filtered | 20130722 |
Method CHECK_AUTHORIZATION on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_AUTHORIZATION_CHECK | Call by reference | Object reference (TYPE REF TO) | /PLMB/IF_SPI_QUERY_AUTH | SPI query authorization checks | 20130722 | |||
| 2 | IT_COMP_NAME_MAPPING | Call by reference | Type reference (TYPE) | GTY_T_COMP_NAME_MAPPING | Mapping table between node and view fieldnames | 20130722 | |||
| 3 | IV_VIEW_NAME | Call by reference | Type reference (TYPE) | TABNAME | Database view which will be queried | 20130722 |
Method CONSTRUCTOR on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method ESTIMATE_NUMBER_OF_ROWS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_ATTEMPT | Call by reference | Type reference (TYPE) | SYINDEX | Number of select attempts | 20130722 | |||
| 2 | IV_REQUESTED_NUMBER_OF_ROWS | Call by reference | Type reference (TYPE) | /PLMB/SPI_NUMBER_OF_ROWS | Maximum Number of Rows to Be Returned | 20130722 | |||
| 3 | RV_ESTIMATED_NUMBER_OF_ROWS | Value transfer | Type reference (TYPE) | /PLMB/SPI_NUMBER_OF_ROWS | Maximum Number of Rows to Be Returned | 20130722 |
Method ESTIMATE_NUMBER_OF_ROWS on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method FILTER_RESULTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | Result Node IDs | 20130722 | |||
| 2 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 3 | EV_FAILED | Call by reference | Type reference (TYPE) | /PLMB/SPI_FAILED_IND | Failed Indicator | 20130722 | |||
| 4 | EV_OBJECTS_FILTERED | Call by reference | Type reference (TYPE) | BOOLE_D | true = object(s) have been filtered | 20130722 | |||
| 5 | IT_FILTER_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | List of Node IDs to Which Result Should be Restricted | 20130722 |
Method FILTER_RESULTS on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method GENERATE_KEY_FIELDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 2 | EV_FAILED | Call by reference | Type reference (TYPE) | /PLMB/SPI_FAILED_IND | Failed Indicator | 20130722 | |||
| 3 | EV_KEY_FIELDS | Call by reference | Type reference (TYPE) | STRING | Key fields for the SELECT statement | 20130722 | |||
| 4 | IT_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | Result Node ID | 20130722 |
Method GENERATE_KEY_FIELDS on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method GENERATE_ORDER_BY_CLAUSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 2 | EV_FAILED | Call by reference | Type reference (TYPE) | /PLMB/SPI_FAILED_IND | Failed Indicator | 20130722 | |||
| 3 | EV_ORDER_BY_CLAUSE | Call by reference | Type reference (TYPE) | STRING | ORDER BY clause for the SELECT statement | 20130722 | |||
| 4 | IT_SORT_ORDER | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_SORTORDER | Sort order | 20130722 |
Method GENERATE_ORDER_BY_CLAUSE on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method GENERATE_WHERE_CLAUSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 2 | EV_FAILED | Call by reference | Type reference (TYPE) | /PLMB/SPI_FAILED_IND | Failed Indicator | 20130722 | |||
| 3 | EV_WHERE_CLAUSE | Call by reference | Type reference (TYPE) | STRING | WHERE clause for the SELECT statement | 20130722 | |||
| 4 | IT_SEL_PARAM | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_SELECTION_PARAM | Selection Criteria for Queries | 20130722 |
Method GENERATE_WHERE_CLAUSE on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method GET_MAPPED_VIEW_COMPONENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COMP_NAME_NODE | Call by reference | Type reference (TYPE) | FIELDNAME | Component name for node | 20130722 | |||
| 2 | RV_COMP_NAME_VIEW | Value transfer | Type reference (TYPE) | STRING | Component name in database view | 20130722 |
Method GET_MAPPED_VIEW_COMPONENT on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 2 | ET_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | Result Node ID | 20130722 | |||
| 3 | EV_SEVERITY | Call by reference | Type reference (TYPE) | /PLMB/SPI_MSG_SEVERITY | Message Severity | 20130722 | |||
| 4 | IS_OPTIONS | Call by reference | Type reference (TYPE) | /PLMB/S_SPI_QUERY_OPTIONS | Query options | 20130722 | |||
| 5 | IT_FILTER_NODE_ID | Call by reference | Type reference (TYPE) | INDEX TABLE | List of Node IDs to Which Result Should be Restricted | 20130722 | |||
| 6 | IT_SEL_PARAM | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_SELECTION_PARAM | Selection Criteria for Queries | 20130722 |
Method QUERY on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
Method VALIDATE_QUERY_PARAMETERS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | Message | 20130722 | |||
| 2 | EV_FAILED | Call by reference | Type reference (TYPE) | /PLMB/SPI_FAILED_IND | Failed Indicator | 20130722 | |||
| 3 | IS_OPTIONS | Call by reference | Type reference (TYPE) | /PLMB/S_SPI_QUERY_OPTIONS | Query options | 20130722 | |||
| 4 | IT_SEL_PARAM | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_SELECTION_PARAM | Selection Criteria for Queries | 20130722 |
Method VALIDATE_QUERY_PARAMETERS on class /PLMB/CL_SPI_QUERY_BY_VIEW has no exception.
History
| Last changed by/on | SAP | 20131127 |
| SAP Release Created in |