Application Development 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: 

Perform Statement ....

Former Member
0 Kudos
110

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

5 REPLIES 5

former_member223537
Active Contributor
0 Kudos
70

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

0 Kudos
70

Thanks Prashant .....

Former Member
0 Kudos
70

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 .

Former Member
0 Kudos
70

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^

0 Kudos
70

your responsee do nothing more than confusions ... thanks Mrutun