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

using native sql for update

0 Likes
532

Hello ,

I have a reqaust to update a db table declared "outside" our R3 db.

I mennage to select the data using native sql with a connection to the db.

Now i need to modify the data on the db.

Is there a similliar command like "fetch next" ' for update?

Mybe i need to build a procedure in th "host" db and use its own commands to update?

Thanks,

koby

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
496

Hi,

have a look at [Stored Procedures|http://help.sap.com/saphelp_bw/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm]

Kesav

Read only

0 Likes
496

hi Kesav,

The link merge a lot of useful information i found when i "dive" into sap info...,thank you for this.

I plan to use a stored procedure to handle update\insert\delete on the "foreign" DB .

I hope there is one written allready , so i dont need to learn the syntax of the "foreign" env...

koby.

Read only

0 Likes
496

Hello Kobi,

Which release of SAP are you woking on?

If you're on ECC6.0, instead you using Native SQL to call the stored procs of external DBs you can use the [ADBC APIs |http://help.sap.com/abapdocu_702/en/abenadbc_procedure.htm](CL_SQL* classes).

BR,

Suhas