cancel
Showing results for 
Search instead for 
Did you mean: 

how to capture an entire incoming IDOC as a field(type string)?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

the links in the replies were very helpful to find the solution

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Vishnu. The links were of great help to me

Thanks,

Manjula