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 connect to SAP system from another SAP system

Former Member
0 Kudos
154

Hi all,

How can i connect from one SAP system to another SAP system using ABAP code. I need to login into another SAP system from one SAP system and i need to transfer some data form that SAP system to my system. i need to code this requirement using ABAP

I don't want to connect using SM59.

please suggest the solution

Thanks & regards

Ajay

4 REPLIES 4

Former Member
0 Kudos
101

hello ajay,

this questn has already been answered ,seach on the forum you will get the soluutn to it.

regards,

Shweta

Former Member
0 Kudos
101

hello ajay,

this questn has already been answered ,seach on the forum you will get the soluutn to it.

regards,

Shweta

former_member611006
Active Participant
0 Kudos
101

Hi,

you can use Native SQL like this:

EXEC SQL.

connect to 'YOUR_SAP_SYS' as 'ST'

ENDEXEC.

EXEC SQL.

set connection 'ST'

ENDEXEC.

Hope it helps.

Regards,

David

ThomasZloch
Active Contributor
0 Kudos
101

Another one of these "how can I get to the beer without opending the fridge" questions.

Why don't you want to use SM59 RFC-connections? These are the best option for your scenario.

Thomas