2007 Sep 27 8:47 AM
Hi
<b>DATA RFC_OPTIONS LIKE RFCDES-RFCOPTIONS.
RFC_OPTIONS = 'H=%HOST,S=%SID,M=%MANDT,U=%USER,L=%LANGU,Z=%PWD,'.
PERFORM REPLACE_STRING USING RFC_OPTIONS '%HOST' HOSTNAME</b>.
Can anyone explain me how RFC_OPTIONS will be used in USING Clause.
Regards,
Pranshu
2007 Sep 27 8:51 AM
Hi Pranshu,
When you pass the variable name RFC_OPTIONS, it actually passes the content in the variable RFC_OPTIONS i.e. 'H=%HOST...... is passed to REPLACE_STRING.
The subroutine REPLACE_STRING will replace %HOST from RFC_OPTIONS with the data which is available in HOSTNAME.
Best regards,
Prashant
2007 Sep 27 9:20 AM
2007 Sep 27 8:55 AM
What does ut code in perform Replace_string that can u send that may be it is possible to decide what u r trying to do .
2007 Sep 27 8:58 AM
hi
good
The structure
typedef struct {
char * destination;
RFC_MODE mode;
void * connopt;
char * client;
char * user;
char * password;
char * language;
int trace;
} RFC_OPTIONS;
provides parameters for RfcOpen.
Depending on the type of connection, various data have to be supplied to open an RFC connection.
There are three ways to supply this information:
You can enter a destination name pointed to an entry in a saprfc.ini file which contains the necessary network parameters and RFC-specific parameters for opening the connection at RfcOpen.
You can enter a destination name pointed to an entry in a sideinfo file which only contains the necessary network parameters for opening the connection at RfcOpen
In your program you supply all the data needed for opening the connection at RfcOpen.
The first of these methods is recommended (i.e. working with saprfc.ini), because it allows you to use some RFC features today as well as in the future without changing your RFC programs. See sprfc.ini for more details.
http://help.sap.com/saphelp_40b/helpdata/es/22/042fe8488911d189490000e829fbbd/content.htm
reward point if helpful.
thanks
mrutyun^
2007 Sep 27 9:05 AM
your responsee do nothing more than confusions ... thanks Mrutun