cancel
Showing results for 
Search instead for 
Did you mean: 

.NET IDOC convert to XML

Former Member
0 Kudos

Hello, I am writing now external RFC Server program on dot Net for Receive IDOC message from SAP system, How i can convert received IDOC message to XML format?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vladmir,

How are you doing ?

we used an offline sync model for this particular task [to increase simplicity]

get the idoc using BC.

you can either email the idoc or write it into a file location as a '.xml' file

the bc has an email function [you need to set up an event]

then the file can be read in a generic xml reader class on the .net side.

with respect,

amit

Answers (4)

Answers (4)

Former Member
0 Kudos

Are you willing to share you stuff

Former Member
0 Kudos

Thanks for All.

I am already create IDOC - XML -IDOC converter using xsd schemas from SAP( IDOC Documentation - WE60).

In my system i can:

receive new IDOC message using tcp,

convert IDOC message to XML format,

convet XML format IDOC message to IDOC format.

Send IDOC to SAP.

Thanks for all.

Best regards,

Vladimir

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

The SAP NetWeaver Application Server offers an interface to send and retrieve Idocs in XML format.

Therefore you don't have to perform the conversion yourself.

Moreover you don't have to use the SAP Connector for Microsoft .NET because HTTP is used for this type of communication.

Best regards,

André

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

I forgot to add the link to the SAP Online Help

http://help.sap.com/saphelp_nw2004s/helpdata/en/90/4f3c2ec3c511d6b2b400508b6b8a93/frameset.htm

Best regards,

Andre

Former Member
0 Kudos

The documenation link, on how to send an XML iDoc using HTTP, does not work.  Can you point me in the right direction on how to do this?

Former Member
0 Kudos

Hi Vladimir,

How are you doing ?

Certain IDOC structures are available in NCo,

Are you looking for a generic solution ?

For customized IDOC's i use a work arounnd using the Business Connector [which uses the webMethods schema].

this is in xml and can be read by any xml reader class...

with respect,

amit

Former Member
0 Kudos

Hello, thanks for all.

> For customized IDOC's i use a work arounnd using the

> Business Connector [which uses the webMethods

> schema].

Can you give me any sample, how i can retreve new idoc message from SAP and send message to SAP using B/C, in .Net?

Now i can convert IDOC to XML, using IDX_XML_TO_IDOC function module,

but i can not convert XML to IDOC, using IDX_IDOC_TO_XML.

> How are you doing ?

I am writing now some integration system for SAP and 5-10 some systems,

I use MSMQ, for resend message between systems, and XSLT, for convert format, and i want:

receive IDOC from SAP,

convert them to XML,

convert XML idoc message to XML message some format,

send XML message format to one of the systems,

and

receive XML Message from one of the systems,

convert XML message to XML idoc message,

send (convert, than send) XML idoc to SAP.

Best regards,

Vladimir