You are on page 1of 1

Open SQL is a set of ABAP statements that performs operations like reads, modifies or deletes data in the SAP

database. Open SQL is independent of the database system, so the syntax of the open SQL is uniform for all the databases supported by SAP. All open SQL statements are passed to the database interface. The DB interface converts the open SQL to native SQL and passes it on to the database. List of Open SQL statements Open SQL SELECT INSERT UPDATE MODIFY DELETE Description Reads data from database Inserts lines to database Changes the contents of lines in database Inserts lines into database or changes the contents of existing lines Deletes lines from database

All Open SQL statements fill the following two system fields:

SY-SUBRC After every Open SQL statement, the system field SY-SUBRC contains the value 0 if the operation was successful, a value other than 0 if not. SY-DBCNT After an open SQL statement, the system field SY-DBCNT contains the number of database lines processed.

You might also like