Application Development 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: 

How to retrieve table data from one SAP system to another SAP system using Select query?

7,091

Hi everyone,

I am working on ABAP,

I need to retrieve other SAP system table data from my system using select query without using any RFC.

Is there any possibility to get data using Select Query alone?

I searched for it but i could not get.

Please help me on this.

Thanks,

Balasubramanian M

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert
1,426

You can use secondary DB connections in Open SQL in order to access other DBs than the central DB of an AS ABAP.

7 REPLIES 7

Chintu6august
Contributor
0 Kudos
1,426

Hello,

No it's possible to get data using select query alone.

check FM 'RFC_READ_TABLE'

thank you!!

0 Kudos
1,426

Hi Adi,

We are aware of this function module.

But we have used more select queries and inner joins.

So it is tough to change all the select queries into RFC call.

Can we do data retrial using select query with logical system name or alias? so we can get data of other SAP system using select query alone.

Thank you!!

1,426

Hi,

it's NOT POSSIBLE to fetch data from other system using SELECT query alone.

You can write all the select queries and inner joins queries within a custom Remote enabled function module(target system) and get the data from your target system.

you can achieve the same using ABAP Proxies.

thank you!!

horst_keller
Product and Topic Expert
Product and Topic Expert
1,426

It is possible with secondary connections.

matt
Active Contributor
1,426

You could connect to the other SAP system's database directly through a database connection - just as you'd connect to an external MSSQL or Oracle database. Search for DBCON for details

horst_keller
Product and Topic Expert
Product and Topic Expert
1,427

You can use secondary DB connections in Open SQL in order to access other DBs than the central DB of an AS ABAP.

0 Kudos
1,426

Thanks Keller.

I need basis help i guess.