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

How to identify the Function module for a created RFC connection

former_member416498
Active Participant
0 Likes
759

Dear All

I have configured a RFC connection using SM59 trasaction to another server, for calling function module at the remote server.

Now my intension is, I dont want to hard code the destination name while calling the function module. because when i move the same development to Quality server or production server the "Destination name" varies.

So how can i get the destination name dynamically so that i need not hard code it. Is there any solution for this problem.

I hope i am clear with my question.

Regards

Vijay.M

Dear All

I have configured a RFC connection using SM59 trasaction to another server, for calling function module at the remote server.

Now my intension is, I dont want to hard code the destination name while calling the function module. because when i move the same development to Quality server or production server the "Destination name" varies.

So how can i get the destination name dynamically so that i need not hard code it. Is there any solution for this problem.

I hope i am clear with my question.

Regards

Vijay.M

3 REPLIES 3
Read only

vinod_vemuru2
Active Contributor
0 Likes
722

Hi,

U can replace ur hardcoded value from table RFCDES table value.

This table stores all RFC destinations for ur system

Use field RFCDES-RFCDEST.

Thanks,

Vinod.

Read only

Former Member
0 Likes
722

Hi,

Make the Entry of the destination in the Table and Select single the the Destination and pass it.If sy-subrc = 0 then go ahead else error message.

Thanks

Rajesh

Read only

former_member416498
Active Participant
0 Likes
722

closing