Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open VS. Native

Former Member
0 Likes
734

Hi,

I need a list of advantages and disadvantages of Native/Open SQL.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
682

Hi,

Check this link.

Reward points if it helps.

5 REPLIES 5
Read only

Former Member
0 Likes
683

Hi,

Check this link.

Reward points if it helps.

Read only

Former Member
0 Likes
682

hi,

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.

Subset of standard SQL statements.

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.

Using Open SQL allows you to access all database tables available in the R/3 System, regardless of the

manufacturer.

Hope this is helpful, Do reward.

Read only

Former Member
0 Likes
682

Hi,

Please refer to the link below :

http://www.erpgenie.com/abaptips/content/view/240/62/

Thanks,

Sriram Ponna.

Read only

Vijay
Active Contributor
0 Likes
682

hi

Types of SQL’s

Native SQL

Open SQL

Open SQL commands

SELECT

INSERT

UPDATE

MODIFY

DELETE

OPEN CURSOR, FETCH, CLOSE CURSOR

Open SQL – Return codes

Sy-subrc

- Return value after specific ABAP/4 statements

Sy-dbcnt

- DB operations: Number of elements in the edited dataset

Native SQL

EXEC SQL [PERFORMING ENDEXEC.

regards

vijay

reward points if helpful

Read only

Former Member
0 Likes
682

hi,

Here;s the advantages and dis advantages

Native SQL Advantages and Disadvantages - EXEC SQL statement

Advantages

Tables are not declared in ABAP Dictionary can be accessed. (e.g. Tables belonging to sys or system user of Oracle, etc.)

To use some of the special features supported by the database-specific SQL. (e.g. Passing hints to Oracle optimizer.)

Disadvanteges

No syntax check is performed whatever is written between EXEC and ENDEXEC.

ABAP program containing database-specific SQL statements will not run under different database systems.

There is no automatic clien handling for client dependent tables.

Care has to be taken during migration to higher versions.

Hope this is helpful, Do reward.