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 create RFC in program using application server

former_member602416
Participant
0 Likes
1,261

Hi,

I have requirement to compare two system whether they are same or not. For first one I have RFC details but for another one I have application server and instance. I need to write a logic to create RFC using application server and instance. Is there any FM to create RFC on fly using application server and instance?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
1,124

Look at class CL_DYNAMIC_DESTINATION, method CREATE_RFC_DESTINATION

(With some restrictions you can also use a destination name such as hostname_sysid_sysnr)

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
1,125

Look at class CL_DYNAMIC_DESTINATION, method CREATE_RFC_DESTINATION

(With some restrictions you can also use a destination name such as hostname_sysid_sysnr)

Read only

0 Likes
1,124

Thanks for your advice but this object doesn't exist in my system. My system is SAP EHP1 FOR SAP NETWEAVER 7.3

Read only

1,124

Look for FM/Class in your version such as RFC_CREATE_DEFAULT_DESTINATION and adapt those. But don't forget to delete the RFC destination once no longer required.

Read only

0 Likes
1,124

Yes, I can see this FM RFC_CREATE_DEFAULT_DESTINATION. Thanks alot.

Read only

0 Likes
1,124

There is an issue with this FM.

It has default language 'DE'. This language is hard coded in this FM and there is no option to input the language.

PERFORM REPLACE_STRING USING RFC_OPTIONS '%LANGU' 'D'.

Read only

0 Likes
1,124

You could opy the code of the FM in your own namespace (with a comment linking to original FM and the class)