Open SQL vs Native SQL

Explain open SQL vs native SQL?

ABAP Native SQL allows you to include database-specific SQL statements in an ABAP program. Most ABAP programs containing database-specific SQL
statements do not run with different databases. If different databases are involved, use Open SQL. 

To execute ABAP Native SQL in an ABAP program, use the statement EXEC. Open SQL (Subset of standard SQL statements), allows you to access all database tables available in the R/3 System, regardless of the manufacturer.

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.

ABAP Tips

ABAP Related:

  • How to get the field descriptions of a table?
  • Difference Between Select-Options & Ranges
  • Diff. b/w Select Single and Select UpTo One Rows
  • Get help for your ABAP problems
    Do you have a ABAP Question?

    ABAP Books
    ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

    ABAP Tips
    ABAP Forum for Discussion and Samples Program Codes for Abapers

    Main Index
    SAP ERP Modules, Basis, ABAP and Other IMG Stuff

    All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
    All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
    Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
     The content on this site may not be reproduced or redistributed without the express written permission of 
    www.erpgreat.com or the content authors.