cancel
Showing results for 
Search instead for 
Did you mean: 

Converting .XSL file to RFC using File Adapter

vikas_agarwal
Contributor
0 Kudos

Hi,

I need to convert .xsl file using XI and send an RFC. I am not sure how to do that. Do i need to write some JAVA API's for the same. Is File adapter capable of converting .xsl files.

Any pointers are most welcome.

Thanks in Advance

Regards,

Vikas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Vikas,

If you think it is excel file then file adapter willnot support. You have to write an adapter module for this or you have to use conversion agent. Check this weblog for some help:

/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter

/people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible

---Satish

henrique_pinto
Active Contributor
0 Kudos

Did you really mean .xsl or .xls (excel files)?

Regards,

Henrique.

vikas_agarwal
Contributor
0 Kudos

Sorry, i mean to say .xls (excel files)

Former Member
0 Kudos

HI,

try in the following ways

Write a simple XSLT mapping or java mapping to change the value of the attribute "encoding" to "ISO-8859-1" in the output XML of message mapping . Include this XSLT or Java map as the second mapping step in your interface mapping.

An example of the XSL code might be as follow:

<?xml version='1.0'?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method='xml' encoding='ISO-8859-1' />

<xsl:template match="/">

<xsl:copy-of select="*" />

</xsl:template>

</xsl:stylesheet>

OR

see the below links

/people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter

Regards

Chilla