Skip to Content
avatar image
Former Member

.NET SAP Idoc conversion

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.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 16, 2005 at 09:26 AM

    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 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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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?