on 03-14-2007 10:35 AM
Hi,
Can any one tell me how to create a new line in the xml-header structure.
I am doing a IDOC-XI-HTTP scenario.
Actually my mapping create this file:
<b><?xml version="1.0" encoding="utf-8"?>
<ORDERS05>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1"> </b>
.
The result must look like this.
<b><?xml version="1.0" encoding="utf-8"?>
<ORDERS05>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1"> </b>
.
Thanks and Regards,
Eren
Hi Eren,
your req can not be done by graphical msg mapping.......
you need to make a custom J2EE adapter module for inserting a blank line....then yu will deploy it in XI and then in file adapter you will call this J2EE adpter module..Then your this req will be met.
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks for you quick answer.
I found a xsl script.
It works fine.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="*">
<xsl:param name="depth">0</xsl:param>
<!-- New line with indenting. -->
<xsl:if test="$depth > 0">
<xsl:text> </xsl:text>
</xsl:if>
<xsl:text>
</xsl:text>
<xsl:element name="{name(.)}">
<xsl:for-each select="@*">
<xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
</xsl:for-each>
<xsl:apply-templates>
<xsl:with-param name="depth" select="$depth + 1"/>
</xsl:apply-templates>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Best regards
Eren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
as explained above , it may not be possible. or try to create the enhanced data type to add one field , mapp with empty constant ..
try
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you cannot do that with message mapping (if that was your question)
you will need to use some other sort of mapping
(abap, XSLT, java) to do that
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.