Skip to Content

How to Map the entire XML(Source XML) into one filed(Target Filed)

Hi Folks,

Can anybody help me how to resolve the below requirement.

business requirement Is: in which client wants the complete input xml in one field at target side i.e., to return the input payload as an XML into a single field


for that we assumed XSLT Mapping is the correct. since i am new to XSLT mapping . i gone through the below URL also since i am unable to get the code. Useful XSLT mapping functions in SAP XI/PI


below is the screen shot :


if some one provide me XSLT code for above requirement  that is a great help from your side.


Thanks in Advance

Hari

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 07, 2015 at 09:35 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Hi inaki,

      Thanks for your reply..

      Currently i am working for SAP PI 7.0 . i think this option won't be available in this version.

      Kindly check and assist me.

  • avatar image
    Former Member
    Jan 07, 2015 at 09:32 AM

    Hi,

    If the source structure is not having so many fields then you can simply use CONCAT function or write simple UDF to generate single line output to target field.

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2015 at 09:39 AM

    Hi Hari

    I think you can achieve this with graphical mapping. Map your target filed with the root node of your input xml.

    right click on the root node and select the option 'Return as xml'.

    Thanks,

    Indrajit

    Add comment
    10|10000 characters needed characters exceeded