Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Login

Login to view more content!!!





Lost Password?
No account yet? Register

Registered Access

Poll

What area of ABAP are you interested in?
 
Home arrow Tips and Tricks arrow ABAP Reports arrow Open SQL VS. Native SQL
Open SQL VS. Native SQL PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Anon.   
Friday, 09 March 2007
Native SQL is to be avoided! Read on to see why....

Open SQL is SAPs version of SQL.  Open SQL is written to isolate the code from a specific RDBMS; thereby, creating database independence.  The Native SQL interface passes all SQL statements to the database without modifying them.  In some cases, Open SQL does not allow you to take advantage of database specific features.
    
Disadvantages of Native SQL
Native SQL bypasses SAP's internal database interface, thereby, creating the following problems:

  • No table logging on SAP level during Native SQL operations
  • Synchronous match codes are not updated by Native SQL operations
  • No synchronization of the SAP table buffer
  • SQL statements become database dependent.  This may cause numerous porting problems between database versions

Advantages of Native SQL
With the new SQL capabilities of SAP Release 4.0 Native SQL is only of interest in the following cases:

  • Use of set operations (UNION, INTERSECT, MINUS)
  • Use of database specific features

 

If Native SQL must be used and has been approved, adhere to the following guidelines:

  • Don't use Native SQL for operations that make database structure modifications
  • Isolate EXEC SQL statements in their own INCLUDE files
  • Document the reason for using Native SQL with detailed comments inside the INCLUDE file
  • Be careful when reading long fields and raw fields!  Length information is additionally stored within the field, invisible for Open SQL.
  • Never use SELECT * when selecting from SAP tables since the Data Dictionary can create fields on the DB in a different order than displayed in SAP

Related Items:

 
< Prev   Next >

Google Search

Statistics

Contribution Activity
Utilities: 38
Tips and Tricks: 334
Sample Code: 166
Total Contributions: 553

Member Activity
Members: 6310 since 2/1/2007!
New: 1 since yesterday!
Visitors: 1183784
We have 1 guest online

Newest Members

Welcome our newest members:

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor