SAP NATIVE SQL ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_EXEC_SQL - Use
This example demonstrates the use of embedded static Native SQL.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The program is the static equivalent of the executable ADBC example. The name of the database abap_docu_demo_mytab cannot be modified. Instead of passing the SQL statements dynamically to methods of the class CL_SQL_STATEMENT , they are specified statically between EXEC and ENDEXEC . Attempts to insert existing rows can only be detected using sy-subrc and the corresponding SQL exception must be raised explicitly.