cancel
Showing results for 
Search instead for 
Did you mean: 

.NET SAP Idoc conversion

Former Member
0 Kudos

Hi all

I have successfully implementing SAP .NET Connector recieveing SAP Idoc from R3 server using the sample sapidocreciever. And also i had modify the sample IdocReciever to create a IDOC file into the PC folder e.g : C:\Outbound\ORDERS0000001234.txt once idoc trigger from the R3.

My question is how to convert the SAP idoc to a Flat file, xml or other EDI format (similar just like Business Connector)? Is there a way to develop .NET application to do that? If yes any pointer of how to go about doing it.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

The easiest way to deal with XML IDOCs is NOT to use NCo, but the XML/HTTP port that newer Web Application Servers (from 6.20) support. Just take the XML schema for the IDOC from ifr.sap.com and create some classes or typed datasets from is using MS tool XSD.EXE. If your SAP servers are older, you can also use XI as translator.

If you don't like it, you need to convert from XML format to text format by your own (and vice versa). The lenght attributes that you find in the XSDs can help you to calculate the correct possitions.

nathanbaes
Explorer
0 Kudos

Reiner,

I am attempting the approach you describe. However, I don't know how to identify the SOAPAction on the outbound IDOC XML. My webservice is expecting an object built from xsd.exe of type DEVLRY03 (IDOC type). But the POST from SAP does not contain a SOAPAction. How can I define a SOAP action in my RFC destination? Is that even the correct spot?