on 05-03-2007 5:41 PM
Good day all,
OK, here is the situation. I use the following login array and my script works fine:
**************************************************************
$system = array ( "ASHOST"=>"system",
"SYSNR"=>"01",
"CLIENT"=>"200",
"USER"=>"user",
"PASSWD"=>"pass",
"CODEPAGE"=>"1100");
$rfc = saprfc_open ($system);
... Call to function and everything returns correctly ...
**************************************************************
Now when I use the following array I get an error:
**************************************************************
*ARRAY*
$system = array ( "ASHOST"=>"system",
"SYSNR"=>"01",
"CLIENT"=>"200",
"USER"=>"user",
"PASSWD"=>"pass",
"R3NAME"=>"DEV", // The Added Parameter
"CODEPAGE"=>"1100");
$rfc = saprfc_open ($system);
ERROR **
Warning: RFC Error Info : Group : 101 Key : RFC_ERROR_PROGRAM Message : Open file 'C:\WINDOWS\sapmsg.ini' failed in C:\Development\htdocs\workspace\systemstat\index.php on line 30
RFC connection failed
**************************************************************
As you can see the only difference between the arrays are the addition of "R3NAME". Why does this create an error? I require the R3NAME in the array to make it easier for me to call functions requiring the SID.
Best Regards,
Paul
hi,
try to find a samsg.ini in your sapgui installation directory and copy it to the directory mentioned in the error message.
if you don't have one, create one from scratch. <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a64db505211d189550000e829fbbd/frameset.htm">This</a> might help.
anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.