[62484] in SAPr3-news
Re: SAP RFC
daemon@ATHENA.MIT.EDU (Christian Knappke)
Mon May 31 08:40:07 2010
To: sapr3-news@mit.edu
Date: Mon, 31 May 2010 14:30:39 +0200
From: Christian Knappke <chknews@gmx.net>
Message-ID: <hu0a5f$cjf$1@news.sap-ag.de>
Reply-To: chknews@gmx.net
Am 31.05.2010 14:08 schrieb xnoise:
> On Mon, 31 May 2010 13:48:23 +0200, Christian Knappke
> <chknews@gmx.net> wrote:
>
>
>>> What's :
>>> DEST ?
>>
>> The name of the RFC destination
>
> I don't understand here.
> What's the name of RFC destination ?
Well, a name is a name is a name. You may have several different RFC
destinations (kind of address data) in your saprfc.ini file. The tag
DEST=<name of the RFC destination> is used to distinguish between
different destinations.
> In the string connect_param of RfcOpenEx I use the ID DEST= to use
> saprfc.ini file.In this file I have a entry named DEST= .
With nothing (but white space) after the equals sign? That is not a
valid name.
> How to use it ?
>
> My Application ONLY in unicode version is killed with code -1 after
> call RfcOpenEx. Why ?
Hmm, I cannot see it clearly from here. Do you mean that you have a
non-unicode version that works? Then it could be a codepage issue.
> this is the code:
>
> // I use saprfc.ini file
Please post the contents of your saprfc.ini. Is it in the same
directory as your program? Do you use the environment variable RFC_INI
that should point the file?
> _stprintf(connect_param,_T("DEST=%s CLIENT=%s USER=%s PASSWD=%s
> LANG=%s"),std_dest,std_client,std_user,std_pass,std_lang) ;
What are the values of the std_* variables?
> _tprintf(_T("Premere un tasto per avviare la connessione...\n")) ;
> getch() ;
>
> handle = RfcOpenEx (connect_param, &error_info);
What's in error_info?
Please be a bit more specific.
> // this line in Unicode version is not execute. The program is killed
> //after RfcOpenEx .Why ?
> if (handle == RFC_HANDLE_NULL)
Regards
Christian