Skip to Content

adding prefixes in the field names

Hi All,

in our mapping requirement i have implement one logic

input xml

<janardhan>1234</janardhan>

output xml

<gsp:janardhan>1234</gsp:janardhan>

need to add extra prefixes, could you please tell how can i achieve this requirement.

Regards,

Janardhan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 29, 2016 at 06:26 AM

    Hello Jana,

    You can try the XSLT code in the below link,Replace ns0 with GSP and message type name.

    https://archive.sap.com/discussions/thread/3202784

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 30, 2016 at 06:38 AM

    HI Raghu,

    I want to add those prefixes for specific fields only in the target side, could you please let me know how can i add this?

    i am new to XSLT mapping, can you please let me know which tool i need to install to support for SAP PI 7.1

    Regards,

    Janardhan

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Manoj,

      Thank you so much for your response. i have few other fields also without gsk in output file should populate. how can i define those namespaces and if possible how can i achieve thorugh xslt coding or any standard format is there?

      Regards,

      Janardhan

  • Dec 31, 2016 at 03:57 PM

    Hi Janardan,

    Use simple java mapping and replace the nodes with the string you require.

    Thnaks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded