on 2011 Nov 01 9:43 AM
Hello,
I am developing a client application using visual studio 2010 express edition and sap connector 3.0. I keep getting the error message: "Name or password is incorrect (repeat logon)", which is actually not the correct message since the login parameters are correct. I am using a windows form to get login informaion from the user and a static class to maintain the destination.
Here is the code snippet:
public static void SetRfcDestination()
{
RfcDestinationManager.RegisterDestinationConfiguration(new ECCDestinationConfig());
sapRfcDestination = RfcDestinationManager.GetDestination("");
sapRfcRepository = sapRfcDestination.Repository;
}
Can someone please suggest what could be the actual problem?
Thanks in advance.
Request clarification before answering.
Hello
What are the parameters that you use to logon to SAP system?
Like for example
Client : 100
Hostname:xyzabcd
RFC destination: dcdsccwfcew
user id: abcds
pwd: xxxxxxxxxx
Looks like your program is trying to logon to different client.
Thanks & regards
bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
This is the function I am using to gather the parameters:
public RfcConfigParameters GetParameters(string destinationName)
{
RfcConfigParameters parameters = new RfcConfigParameters();
parameters.Add(RfcConfigParameters.User, StaticClass.username);
parameters.Add(RfcConfigParameters.Password, StaticClass.password);
parameters.Add(RfcConfigParameters.AppServerHost, StaticClass.saprouter + StaticClass.host);
parameters.Add(RfcConfigParameters.SystemNumber, StaticClass.sysnr);
parameters.Add(RfcConfigParameters.Language, StaticClass.language);
return parameters;
}
If I use a configuration file with the above parameters like below, I am able to connect by using:
sapRfcDestination = RfcDestinationManager.GetDestination("DEV");
Config file setting:
<SAP.Middleware.Connector>
<ClientSettings>
<DestinationConfiguration>
<destinations>
<add NAME="DEV" USER="usernam" PASSWD="password" CLIENT="200" ASHOST="/H/123.108.47.82/H/10.0.2.51" SYSNR="00" LANG="EN"/>
</destinations>
</DestinationConfiguration>
</ClientSettings>
</SAP.Middleware.Connector>
Please suggest as I dont want to use a config file as the requirement is to collect the informaiton from the user in a login page.
Thanks
Hello
Can you check the RFC destination that you use contains the right client number? Because it looks like the client number is not getting carried with your input. Or try creating the same user id with the same password in all the other clients. So that we will have a clear picture.
Thanks & regards
bala
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.