‎2007 Sep 27 4:59 AM
Hi,
Do anyone knwo how to create RFC destination using code not using SM59.
Regards,
Pranshu
‎2007 Sep 27 5:04 AM
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.
‎2007 Sep 27 5:04 AM
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.
‎2007 Sep 27 5:27 AM
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
‎2007 Sep 27 6:19 AM
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
‎2007 Sep 27 6:30 AM
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
‎2007 Sep 27 7:32 AM
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
‎2007 Sep 27 7:34 AM
Hi Graham,
Standard modules cant be edited.....:(
Regards,
Pranshu
‎2007 Sep 27 9:09 AM
Hello,
That's why Graham said you have to write your own RFC-enabled FM that call the standard one.
‎2007 Sep 27 11:46 AM
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