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: 

RFC destination - http request

Former Member
0 Kudos

Hi all,

i want to use a RFC destination to start a HTTP request.

I have configured in SM59 the connection type G the server name and the path.

How can i call this RFC destination?

I know that a RFC destination is normally used in this way:

call function <function> destination <rfc destination>

Any ideas?

regards

3 REPLIES 3

Former Member
0 Kudos

hi there,

First you should make sure that your rfc connection is working fine in SM59 by testing the connection. If it is ok then u can use any function in the abap program and use the syntax like:

CALL FUNCTION 'ZFUNCTION'

DESTINATION rfcdest

The exporting values will be transferred to the destination system. If function did not work as expected then use SM58 to view any errors on the RFC call. If the data was not trasferred then in SM58 the reason or the error is given and then you can track from there on.

Reward if helpful !

Regards,

FS

Former Member
0 Kudos

Hi,

the RFC destination is like a URL.

Can i invoke the RFC destination alone - without calling a function because i don't need a function. The http request is the function.

regards

Former Member
0 Kudos

I guess you might need to send the data from sap to web in your case. create a simple function module rfc enabled to export data to the web. RFC destination has to be used through function module in ABAP.

Regards,

FS