SAP ADBC QUERY ABEXA



Get Example source ABAP code based on a different SAP table
  


VX_EXA_ONLY

ABAP_ADBC - Query
This example demonstrates the execution of a query with ADBC.

ABAP_SOURCE_CODE
DEMO CL_DEMO_ADBC_QUERY

ABAP_DESCRIPTION
The method EXECUTE_QUERY from the class CL_SQL_STATEMENT is used to read three columns of the database table SFLIGHT for the current client. An appropriate internal table is bound to the result set using the method SET_PARAM_TABLE of the class CL_SQL_RESULT_SET. Using the method NEXT_PACKAGE, all the rows of the result set are transported to the internal table.
Quotation marks are escaped in the user input to prevent SQL injections.