cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert IDoc-XML to native Idoc-File with in SAP XI/PI

Former Member
0 Kudos

Hello,

I have a problem to Create an native IDoc-Format for an File-Receiver.

The scenario:

I get an Idoc (ZMATMAS) from a SAP System to an MATMAS-exchange-scenario. One of the non-SAP-receiver-systems needs an other native IDoc-Format as File. So I have to map the ZMATMAS to the receiver Format and write this as File. The problem is, that this file contains the data as IDoc-XML and not as native IDoc-format.

Has anybody an idea for this problem?

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

I love the link givers!

I will give u a link as well but hopefully the answer to what you are looking for.

[ How to Convert Between IDoc-XML Structure to a Flat File and Vice Versa in Exchange Infrastructure 3.0 (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a]

You will need to use ABAP mapping as detailed in the guide.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Koch/Bhavesh,

According to Holger Kunitz from SAP, PI 7.1 EHP1 will have JEE Adapter Module which can do the IDoc XML to IDoc Flat file format and vice versa.. I don't know when this will be available, but it is on the way...

For more details.. Check the [Webinar Link: SAP NetWeaver Process Integration - Adapter Update|https://www.sdn.sap.com/irj/sdn/webinar?rid=/library/uuid/e018461a-ca60-2b10-68b2-816d92612b58] which was conducted yesterday (17-Sep-2008 11:00 EST)...

Regards,

Ananth

bhavesh_kantilal
Active Contributor
0 Kudos

Hey Ananth,

Excellent info!

There are many legacy systems that talk to R3 using the native Idoc format in files, and hence it makes sense for SAP to provide a module to convert this to XML so that the direct connecitivity to SAP is broken without any changes to the legacy systems. I love this feature!

Regards,

Bhavesh

Answers (1)

Answers (1)

former_member183906
Active Contributor
0 Kudos

U need to use sender idoc adapter and file receiver adapter.

U can do file content conversion at receiver end.

Content Conversion is basically to convert a text file that contains complex structures into an XML source format and vice versa. It is present only in the File Adapter because it is one of the message protocol which will convert the structure to a desired format.

There are many blogs for File Content Conversion. Some of them are listed hereunder:-

You may also check the FCC documentation for Sender and Receiver:-

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm