on 02-25-2009 5:37 AM
how to map an entire incoming IDOC as a field(type string)? This field in turn will be inserted into a table.
Is it possible using Graphical mapping using some UDF?
Can anyone provide example of similar scenario?
Thanks,
Manjula
the links in the replies were very helpful to find the solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Manjula,
You have to use an XSL mapping for this.
Create a target message type containing the element in which you want to place the IDOC Data. Within this element you can add the XML data as CDATA Object.
See below for an example
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8"/>
<xsl:template match="/">
<IDOC_Message>
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
<xsl:copy-of select="*" />
<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[]]></xsl:text>
</IDOCMessage>
</xsl:template>
</xsl:stylesheet>
Greets
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
this can be done in XSLT
Just create a datatype (unbound size) and map the root tag of the source msg
if you just need to pass the incoming msg to the target, then you dont need a mapping step.
it can be passed as it is
links
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/readInputTextFileasaSingle+Field.
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards
Vishnu
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 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.