cancel
Showing results for 
Search instead for 
Did you mean: 

content conversion

Former Member
0 Kudos

Dear all,

Could you please tell how and why content conversion is performed? I sit only for File adapters?

Regards,

Ashish

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Ashish,

In rela time scenarios when you deal with legacy applications, most of them will generate data as Files. Now as you know, the message that hits the integration engine of XI has to be in XML format for successful processing.

The legacy systems do not directly create XML files but instead create file in different formats like a CSV file, In such cases, you use the File Adapter's COntent Conversion to convert the Flat strucutre to an XML strucutre.

><i> Isit only for File adapters?</i>

You use Content Coonversion for JMS adapters as well. But you use the MessageTransfromationBean ( standartd module ) to do this.

Regards

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

For further info on how to use the message transformation bean to do the conversion, this article should help,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bf...

Regards

Bhavesh

Answers (6)

Answers (6)

Former Member
0 Kudos

HI

If you have selected File Content Conversion as the message protocol, you can convert a text file that contains complex structures into an XML source format in this mode. The file contains various row formats in logical structures.

document structure usually looks like this:

<root>...

<nameA>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

</nameA>

<nameB>

<value4>value</value4>

</nameB>

...

</root>...

Just have a look at these links:

<a href="/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file:///people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

<a href="/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2:///people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

<a href="/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30:///people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

Regards,

Gunasree.

STALANKI
Active Contributor
0 Kudos

Ashish I recommend you to read this series /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii and know everything yourself without the need of asking anyone.

Former Member
0 Kudos

Hi Ashish,

Yes the content conversion is performed for the File Adapters.

The reason why this is performed is because XI understands only XML and if the file that XI is picking up using the file adapter is not of type xml then the content conversion has to be performed. the content conversion is done keeping in mind the xml that should be formed and sent to the XI by the adapter.

Please refer to the below links

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter

Hope this helps

Nikhil

Former Member
0 Kudos

Hi,

It is true that content conversion is only for File adapter.

It is used when a .txt file or .dat file needs to be converted into an xml format.

Using this file content conversion protocol,u can convert a tab separated or comma separated file into an xml structure according to ur requirements.

When the file is not in the form of a xml structure then we use content conversion to convert that file into xml structure.

Thanks.

Former Member
0 Kudos

Hi Ashish,

this thread can be useful for you:

Hope this help

Francesco

former_member192798
Active Contributor
0 Kudos

Hi Ashish,

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

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem

/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

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

Regards.

Praveen