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

Is it possible ?

Former Member
0 Likes
706

Is it possible to update an sql table from an RFC without any interface in between?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
687

Hi Geet,

I assume that when u say "from an RFC" u mean that inside u write abap. If so, u can run native sql on outside DB from abap.

It will look something like this:

EXEC SQL.

insert into DatabaseTable.tab1

(

field1,

field2,

field3,

.......

)

VALUES

(

:value1,

:value2,

:value3,

..........

)

ENDEXEC.

Good luck

Pls reward points if helpful

Igal

8 REPLIES 8
Read only

Former Member
0 Likes
688

Hi Geet,

I assume that when u say "from an RFC" u mean that inside u write abap. If so, u can run native sql on outside DB from abap.

It will look something like this:

EXEC SQL.

insert into DatabaseTable.tab1

(

field1,

field2,

field3,

.......

)

VALUES

(

:value1,

:value2,

:value3,

..........

)

ENDEXEC.

Good luck

Pls reward points if helpful

Igal

Read only

0 Likes
687

I dint understand what do u mean by tab1 in database table.tab1.Plz reply

Read only

0 Likes
687

if you are running an RFC to change the Database contents that means you need some interface between theese two systems.

via RFC you can change the database contents.

Read only

0 Likes
687

But how to make a connection to the sql database

Read only

0 Likes
687

with RFC you make connection to the server...

and the directly you can code to access the SQL database.. as you do with the local database...

(i.e. via select query)

Read only

0 Likes
687

The problem is i dont want to use any interface in betwenn can i update an sql table just by writing ABAP code

Read only

0 Likes
687

is the underlying database common for both the systems?

Read only

0 Likes
687

No, i want to update my sql database from my SAP database and vice versa