Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP connector for Microsoft.NET

Hi,

I am using Microsoft Visual Studio 2003.

I need to connect SAP through .NET.

I am referring following link to do this.

http://help.sap.com/saphelp_nw2004s/helpdata/en/52/d2923e5b906663e10000000a114084/frameset.htm

http://www.codeproject.com/useritems/SAP_connector_for_NET.asp

But still I am unable to get data in data grid. data grid Only shows the column names.

I have called the required BAPI before binding it to the data grid, but still data is not displaying in the same.

Reference code is:

private void Button1_Click(object sender, System.EventArgs e)

{

SAPProxy3 proxy = new SAPProxy3();

try

{

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

// Call methods here

BAPIRETURN objBAPIRETURN=new BAPIRETURN();

proxy.Bapi_Salesorder_Getlist("0000000006","0001","","","","","","",out objBAPIRETURN,ref this.bapiordersTable1);

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

this.DataGrid1.DataBind();

}

catch(Exception ex)

{

}

}

Thanks,

Sunil Pawar

Message was edited by:

Sunil Pawar

Former Member
Not what you were looking for? View more on this topic or Ask a question