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

VB code to call SAP RFC with Remote destination

Former Member
0 Likes
388

Hi All,

I have two SAP systems System A and B.

I have an RFC destination defined in System A to connect from SAP System A to System B .

I have to connect to one SAP system (System A) from my VB code.

From that system I need to use the RFC Destination and get connected to System B and extract the data through Remote enabled FM in System B.

Can anyone provide me the suggestions to get data in System B from System A through VB code.

Thanks a lot in Advance.

Regards

Harish Kollipara

Hi All,

I have two SAP systems System A and B.

I have an RFC destination defined in System A to connect from SAP System A to System B .

I have to connect to one SAP system (System A) from my VB code.

From that system I need to use the RFC Destination and get connected to System B and extract the data through Remote enabled FM in System B.

Can anyone provide me the suggestions to get data in System B from System A through VB code.

Thanks a lot in Advance.

Regards

Harish Kollipara

1 REPLY 1
Read only

Former Member
0 Likes
352

Hi harish kollipara

you should create the FM in the B system, that return some data that you can catch in system A after have called the FM.

check this link for the function:

http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm


CALL FUNCTION 'NAME OF FUNCTION' DESTINATION rfc_destination_name
importing ...
exporting ...
EXCEPTIONS
system_failure = 1
OTHERS = 2.

hope this help you

Marco