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

Oracle Query From ABAP Program

Former Member
0 Likes
349

Hello everybody,

I have a doubt about if I can do a Query to a External Oracle Database to get some records and then process them in my ABAP Program, is this possible?, if this is the case can anyone help me with some documentation, thanks in advance for your answers.

Regards,

Julio

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
304

Hi Julio,

you can use the open SQL connect statement


EXEC SQL. 
  CONNECT TO dbs [AS con] 
ENDEXEC. 

or even you can define the DB in the FROM with the option CONNECTION


... FROM { {dbtab [AS tabalias]} 
         | join 
         | {(dbtab_syntax) [AS tabalias]} } 
         [UP TO n ROWS] 
         [CLIENT SPECIFIED] 
         [BYPASSING BUFFER] 
         [CONNECTION {con|(con_syntax)}] ... . 

Hope it helps,

Edgar

1 REPLY 1
Read only

Former Member
0 Likes
305

Hi Julio,

you can use the open SQL connect statement


EXEC SQL. 
  CONNECT TO dbs [AS con] 
ENDEXEC. 

or even you can define the DB in the FROM with the option CONNECTION


... FROM { {dbtab [AS tabalias]} 
         | join 
         | {(dbtab_syntax) [AS tabalias]} } 
         [UP TO n ROWS] 
         [CLIENT SPECIFIED] 
         [BYPASSING BUFFER] 
         [CONNECTION {con|(con_syntax)}] ... . 

Hope it helps,

Edgar