cancel
Showing results for 
Search instead for 
Did you mean: 

SAP with .DotNetConnector(.Net)

Former Member
0 Kudos

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.

}

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

The number of parameters you passed to the method Z_Sd_Customer_Adr is wrong. Please check if the generated proxy class SapConn contains a definition for this method with 3 parameters.

Regards,

Guangwei Li