cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter XML

Former Member
0 Kudos

Hello,

I've a interface RFC - File (Message Protocol: File -Don't FCC-l )

The file XML generated is OK, but when i open this file with the text editor, i see the file of follow:

<tag1>value1</tag1><tag2>value2</tag2><tag3>value3</tag3>

and i need see the file of follow (each label in each file):

<tag1>value1</tag1>

<tag2>value2</tag2>

<tag3>value3</tag3>

I can do it?, How?

Thank

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use XSLT mapping to insert newline after each tag.

-BR

Answers (5)

Answers (5)

Former Member
0 Kudos

I am trying with the follow file::

<xsl:template match="/">

<xsl:apply-templates select="*"/>

</xsl:template>

<xsl:template match="*">

<xsl:copy>

<xsl:element name="name()">

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

<xsl:apply-templates/>

</xsl:element>

</xsl:copy>

<xsl:text>

</xsl:text>

</xsl:template>

</xsl:stylesheet>

when i raise the interfase the follow error occurs:

Error when loading XSLT mapping of the application

i believe the file content have an error, but i don't know what,

thank you

Former Member
0 Kudos

Hi,

Where are you trying to look this file. Is it in the directory maintained in tocde AL11 of XI? Because in AL11 dir it will show like that only, so you need to ask BASIS to download the file on your PC and then see how it looks.

When you use FTP to write the file in target dir then it will show correctly.

Regards,

Sarvesh

Former Member
0 Kudos

yes Preeti, i think same you,

however, the system receptor of file, charge it in mode text and it need the format especified up,

idea please?

Former Member
0 Kudos

If the requirement is to have a new line then I would suggest you use XSLT mapping as suggested by Mustaffa above. Yes it is possible to have another XSLT mapped interspcaing the new lines. What needs to be done is create an XSLT mapping and add this additional mapping into your interface determination checking the maintain order at runtime checkbox.

Former Member
0 Kudos

If it's just a visualization convinience, you can try opening it in IE

Former Member
0 Kudos

thank Mustafa,

I dont' know the XSLT mapping,

My scenary is IDOC - file (format XML), i need using mapping in my interfase, it's possible using XSLT mapping in this case?

Thank