SAP OS QUERY ABEXA

Get Example source ABAP code based on a different SAP table
  


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, anSQL injection is not possible in this example.