Skip to Content
0
Former Member
Oct 29, 2004 at 03:36 PM

SAP with .DotNetConnector(.Net)

33 Views

With version 1.0.3 i do face errors while trying to execute the code..

Error is:

"No overload for method 'Z_Sd_Customer_Adr' takes '3' arguments"

What am i doing wrong..any help would be apperciated..

The Sample code looks like this..

rivate void Searchbtn_Click(object sender, System.EventArgs e)

{

Response.Write("1-Clicked");

// Declare parameters here

SapConn proxy = new SapConn();

try

{

Response.Write("2-Executed");

proxy.Connection = SAP.Connector.SAPLoginProvider.GetSAPConnection(this);

// Call methods here

//proxy.Rfc_Customer_Get("", Accnttxt.Text,ref zsD_CUST_ADDRESSTable1);

//proxy.Z_Sd_Customer_Adr("",Accnttxt.Text,Address_Id,ref DotNetConn.ZSD_CUST_ADDRESS);

proxy.Z_Sd_Customer_Adr(" ",Accnttxt.Text, ref zsD_CUST_ADDRESSTable1);

// Now update Data Bindings. On WinForms this will be automatic, on WebForms call the following line

Response.Write("3-Executed");

this.DataBind();

}

catch(Exception ex)

{

// If SAPLoginProvider.GetSAPConnection(this) cannot get a connection, we might get an error. // Normally this can be ignored as it will automatically will force a relogon.

}