cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass datatable from C# to SAP Web Service

Former Member
0 Kudos

Hello Experts,

We have scenario which we need to pass a large amount of data to SAP using SAP web service from a .Net program. Can some please let me know whether it is possible to pass a datatable or dataset to a web service created in SAP or do i need to pass the data as an xml file or is there any other way to achieve the same.

Any help on this will be highly appreciated.

Thanks,

Sareesh PS

Edited by: Sareesh P S on Jan 19, 2010 8:27 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Datatable is a C# class.. u can't transport datatable to sap directly. i know that .NET 1.1 doesnt support the datatable in web service too.

Datatable is not a soap standard so u have to use sap itab in XML.

Or theer is a property abput datatable.

İ think there may be a method datatable to XML. And u can parse the xml file in abap transformation(STRANS)

DataTable dt = new DataTable();

...

...

dt.toXml();