cancel
Showing results for 
Search instead for 
Did you mean: 

Sending IDoc as text file

Former Member
0 Kudos

I have a requirement to deliver IDocs in text format - I can't change this fact.

In PI we have the IDoc expressed in XML - so it's not too hard to recreate the IDoc text file manually (using the configuration parameters) using a file adapter - but it's so tedious and prone to error.

I already have a solution to write the IDoc from ECC via file port to the file system, then pick it up using PI file adapter - but this is not very elegant.

Is there a way to receive the IDoc in text format - without the XML conversion - so that I can simply pass it through PI to a file adapter?

Edited by: Derek Colley on Oct 14, 2010 8:51 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member181985
Active Contributor
0 Kudos

check this: [How Tou2026 Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a?quicklink=index&overridelayout=true]

For PI7.1 check this blog: [How to Use User-Module for Conversion of IDoc Messages Between Flat and XML Formats|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13743] [original link is broken] [original link is broken] [original link is broken];

Edited by: Praveen Gujjeti on Oct 15, 2010 7:18 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

As long as you use IDOC adapter send message to PI, your requirement seems not achievable.

But it is possible after PI receive it, you can use mapping program e.g. XSLT mapping program to change IDOC XML foramt to IDOC file format.

Regards

Liang

Former Member
0 Kudos

Did you try using the file port in partner profile (not the XML port) which will give you the IDOC in the form of sequential text file ?.

Former Member
0 Kudos

PS: the customer is currently using PI 7.0