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
847

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
828

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

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

8 REPLIES 8
Read only

Former Member
0 Likes
829

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
828

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

Read only

0 Likes
828

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
828

But how to make a connection to the sql database

Read only

0 Likes
828

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
828

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
828

is the underlying database common for both the systems?

Read only

0 Likes
828

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