0% found this document useful (0 votes)
115 views6 pages

Open SQL & Native SQL

Native SQL is used to directly call the underlying database, but the statements must be changed if the database changes. Open SQL is translated by the application server into native SQL for the specific database, so the ABAP programs do not need changes if the database changes. Open SQL keeps ABAP programs independent from the database and avoids conflicts between tables.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views6 pages

Open SQL & Native SQL

Native SQL is used to directly call the underlying database, but the statements must be changed if the database changes. Open SQL is translated by the application server into native SQL for the specific database, so the ABAP programs do not need changes if the database changes. Open SQL keeps ABAP programs independent from the database and avoids conflicts between tables.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 6

Open Sql & Native Sql

Prepared By : Pragya Chhatrashali


Native Sql

 Native Sql is used to make calls to the


database.
 The database in SAP can be anything like
Oracle,MSSQL,Informix,or DB2 hence it is
not possible to make changes everywhere if
the database changes.
 To execute ABAP Native SQL in an ABAP
program, use the statement EXEC.
Open Sql
 Open Sql is used by the ABAP Programmers
to make calls while accessing a database.

 These open sql statements are sent to DB


interface which decodes the open sql to
native sql depending on the database
used.Thus you wont need to make any
changes even if the database changes.
In Short
 Open Sql is the sql language used internally
by the sap application server.

 Native Sql is the language used directly by


the DB.

 The Application server translates the open


sql to native sql when sending commands to
DB.
Conclusion

 To avoid conflicts between database tables


and to keep ABAP programs independent
from the database system used, SAP has
generated its own set of SQL statements
known as Open SQL.
Sql Joins

You might also like