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

RFC.....

Former Member
0 Likes
1,144

Hi,

Do anyone knwo how to create RFC destination using code not using SM59.

Regards,

Pranshu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,096

Hi,

Check the function modules:

RFC_MODIFY_R3_DESTINATION_SNC

CRFC

RFC_MODIFY_HTTP_DEST_TO_EXT

RFC_MODIFY_HTTP_DEST_TO_R3

RFC_MODIFY_L_DESTINATION

RFC_MODIFY_R3_DESTINATION

RFC_MODIFY_TCPIP_DESTINATION

CRFC0

RFC_MODIFY_L_DESTINATION0

RFC_MODIFY_R3_DESTINATION0

RFC_MODIFY_TCPIP_DESTINATION0

Regards,

Priyanka.

8 REPLIES 8
Read only

Former Member
0 Likes
1,097

Hi,

Check the function modules:

RFC_MODIFY_R3_DESTINATION_SNC

CRFC

RFC_MODIFY_HTTP_DEST_TO_EXT

RFC_MODIFY_HTTP_DEST_TO_R3

RFC_MODIFY_L_DESTINATION

RFC_MODIFY_R3_DESTINATION

RFC_MODIFY_TCPIP_DESTINATION

CRFC0

RFC_MODIFY_L_DESTINATION0

RFC_MODIFY_R3_DESTINATION0

RFC_MODIFY_TCPIP_DESTINATION0

Regards,

Priyanka.

Read only

0 Likes
1,096

Hi Priyanka,

Thanks for the info ,

Since they are not remote enabled , Is there any way to create RFC destnations in remote systems - besides copying them as z and making them remote enabled.

Regards

Pranshu

Read only

0 Likes
1,096

Hi Pranshu,

don't copy them. Write a RFC-enabled wrapper function module that calls them.

You could also consider RFC-enabling them but this can only be done if they do not have reference parameters.

Cheers

Graham

Read only

0 Likes
1,096

Hi Graham,

"You could also consider RFC-enabling them but this can only be done if they do not have reference parameters."

Need more clarification on this line , how can we remotely enabled them ?

Regards,

Pranshu

Read only

0 Likes
1,096

Hi Pranshu,

you can modify the properties of the function module to set it to be remote-enabled. But one of the rules of remote-enabled function modules is that they must have all parameters passed by value, not by reference. In other words the parameter declarations must be TYPE not TYPE REF TO.

Cheers

Graham

Read only

Former Member
0 Likes
1,096

Hi Graham,

Standard modules cant be edited.....:(

Regards,

Pranshu

Read only

0 Likes
1,096

Hello,

That's why Graham said you have to write your own RFC-enabled FM that call the standard one.

Read only

0 Likes
1,096

Hi Pranshu,

standard SAP code can be modified - it's just a really bad idea.

Anyway, back to the original suggestion which is to write a remote-enabled wrapper function module that calls the standard SAP functions.

Cheers

Graham