SAP ABAP Data Element OS_QUERYACCESS (Query Access Flag)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-ABA-LA-OBS (Application Component) Object Services
⤷ SOS_MAPPING (Package) Object Services Relational Mapping
⤷ BC-ABA-LA-OBS (Application Component) Object Services
⤷ SOS_MAPPING (Package) Object Services Relational Mapping
Basic Data
Data Element | OS_QUERYACCESS |
Short Description | Query Access Flag |
Data Type
Category of Dictionary Type | D | Domain |
Type of Object Referenced | No Information | |
Domain / Name of Reference Type | OS_BOOLEAN | |
Data Type | CHAR | Character String |
Length | 1 | |
Decimal Places | 0 | |
Output Length | 1 | |
Value Table |
Further Characteristics
Search Help: Name | ||
Search Help: Parameters | ||
Parameter ID | ||
Default Component name | ||
Change document | ||
No Input History | ||
Basic direction is set to LTR | ||
No BIDI Filtering |
Field Label
Length | Field Label | |
Short | 0 | |
Medium | 0 | |
Long | 20 | Query Access |
Heading | 0 |
Documentation
Definition
If this indicator is set, methods for loading persistent objects using a query are generated in the class actor.
Note that when this indicator is set, dynamic access (SELECT statement with dynamic WHERE condition) to persistent objects in this class is possible. This can lead to a security problem if entries on the user interface are transmitted directly without a query check.
Also read Note 1464130.
Use
Using the additional method
IF_OS_CA_PERSISTENCY~GET_PERSISTENT_BY_QUERY
multiple persistent objects can be loaded with a method call (and a SELECT statement) into the main memory.
The number of objects to be loaded is specified in a query.
Dependencies
The Multiple Access indicator must also be set.
This indicator cannot be changed; one of the following methods has been changed:
MAP_LOAD_FROM_DATABASE
MAP_LOAD_FROM_DATABASE_KEY
MAP_LOAD_FROM_DATABASE_GUID
Example
History
Last changed by/on | SAP | 20110908 |
SAP Release Created in | 700 |