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

Can we use EXEC SQL in ABAP

Former Member
0 Likes
999

Dear All,

  Can I use EXEC SQL Statement in ABAP.

EXEC SQL
  INSERT INTO MYEMP SELECT * FROM
ENDEXEC

if yes then how & where we can use it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
811

Hi,

Yes, you can.

Native SQL statements are used to access database tables not defined in ABAP dictionary and hence allow us to integrate data not part of R/3 system.

This is an interesting link that i suggest

http://scn.sap.com/docs/DOC-34669

However,

SAP recommends the usage of ADBC (ABAP Database Connectivity) to access the external DBs.

Best Regards

Ivan

Dear All,

  Can I use EXEC SQL Statement in ABAP.

EXEC SQL
  INSERT INTO MYEMP SELECT * FROM
ENDEXEC

if yes then how & where we can use it.

2 REPLIES 2
Read only

Former Member
0 Likes
812

Hi,

Yes, you can.

Native SQL statements are used to access database tables not defined in ABAP dictionary and hence allow us to integrate data not part of R/3 system.

This is an interesting link that i suggest

http://scn.sap.com/docs/DOC-34669

However,

SAP recommends the usage of ADBC (ABAP Database Connectivity) to access the external DBs.

Best Regards

Ivan

Read only

RaymondGiuseppi
Active Contributor
0 Likes
811

Yes you can, just perform a search on google like EXEC SQL site:help.sap.com/Abapdocu_731 to find documentation relative to native sql in SAP on-line Abap documentation.

Regards,

Raymond.