sapdev logo background
sapdev logo sapdev logo
Comments

SAP OS QUERY ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTIClE

Query Service
This example demonstrates how an object-oriented query is used.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
A reference to the class agent of the persistent class
CL_SPFLI_PERSISTENT is assigned to the reference variable agent
. It is created once by the static constructor of the
CA_SPFLI_PERSISTENT class. A query manager is called using the method
GET_QUERY_MANAGER of the class CL_OS_SYSTEM and a query created using the method CREATE_QUERY and a specified filter. The query is executed using the interface method GET_PERSISTENT_BY_QUERY
of the interface IF_OS_CA_PERSISTENCY and the flights found are displayed.
Since the predefined parameters PAR1 , PAR2 from a parameter list are used here, an SQL injection is not possible in this example.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




OS_PERSIST_ABEXA
OS_QUERY_COMPS




comments powered by Disqus