on 04-13-2006 2:32 PM
Hello All,
Am using SAP .NET Connector 2.0.1 to connect to SAP R/3 system.
Ive done the following:
1. SAPLogin1.aspx -> Added a destination object and given all the required configurations.
2. WebForm1.aspx -> Added a SAPPRoxy object and set its Connection property to SAP Login Form.
Scenario:
On the WebForm I have a textbox (TextBox1) using which the user would enter Material No & the result should be given in TextBox2 on a Button click (called Search).
Problem:
In the SAPLogin1.aspx, the Login button contains code as:
private void Login_Click(object sender, System.EventArgs e)
{
// Bind data back
this.destination1.Username = this.user.Text;
this.destination1.Password = this.password.Text;
try
{
this.destination1.Client = short.Parse(this.client.Text);
}
catch(Exception)
{
this.destination1.Client = 0;
}
if (this.language.Text.Length > 0)
{
this.destination1.Language = this.language.Text;
}
try
{
//SAP.Connector.SAPLoginProvider.OpenSAPConnection(this, destination1.ConnectionString, this.persist.Checked);
SAP.Connector.SAPLoginProvider.OpenSAPConnection(this, this.destination1, this.persist.Checked);
//SAP.Connector.SAPLoginProvider.GetSAPConnection(this,this.destination1);
}
catch (System.Exception exception)
{
this.message.Text = exception.ToString();
}
}
And in WebForm.aspx, Search button contains code like:
private void Search_Click(object sender, System.EventArgs e)
{ string str="";
SAPProxy1 proxy = new SAPProxy1();
try
{ proxy.Zrfc_Test_Conn(Input.Text,out str);
}
catch(Exception e1)
{ }
Description.Text = str;
Error:
<b>When I click on the Search button, I get an error as:
SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=10.10.18.204, R3NAME=R01, GROUP=PUBLIC LOCATION CPIC (TCP/IP) on local host ERROR Group PUBLIC not found TIME Thu Apr 13 19:01:34 2006 RELEASE 640 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 3518 DETAIL LgIGroup COUNTER 28 at SAP.Connector.Connection.Open() at SAP.Connector.SAPLoginProvider.OpenSAPConnection(Page p, IDestination dest, Boolean persist) at navin_test_con.SAPLogin1.Login_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\navin_test_con\saplogin1.aspx.cs:line 107</b>
Please help me solve this..... please
Awaiting Reply.
Thanks and Warm Regards,
Ritu
It seems that you have configured your destinaton1 to use "10.10.18.204" as Message Server and "PUBLIC" as logon group. The message server answers: "Group PUBLIC not found".
Please check the load balancing settings of your SAP system if it supports load balancing at all and what groups exist.
If "destination1" is a SAPLogonDestination, please check if the corresponding destination in SAPLOGON works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.