Skip to Content

mapping logic

Hi All,

i have one mapping requirement, from the source we are receiving message as a proxy.

in the message we have one node and under this we have two fields which will repeat multiple times.it is like

<parameter name>

<parameter value>

in this we need few field values as a field names in the receiver structure. client don't want o change the receiver structure.

source xml:

<parameter name> janardhan </parameter name>

<parameter value> 123456</parameter value>

output xml

<janardhan>123456</janardhan>

could you please let me know how can we achieve this requirement.

Regards,

Janardhan

Add comment
10|10000 characters needed characters exceeded

  • hello Team,

    any solution for my question.. i tried with below link.. but i am not sure how can we apply in mapping level and under which import functions i have to use?

    Regards,

    Janardhan

  • Get RSS Feed

1 Answer

  • Dec 26, 2016 at 09:48 AM

    Hi Janardhan!

    Take a look at this blog:

    https://blogs.sap.com/2012/11/05/message-mapping-play-around-with-target-structure/

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Evgeniy,

      Thanks for your solution, but unfortunately my entire requirement got changed. the fields which has to generate dynamically, now i maintained in receiver structure so no need to generate fields dynamically. now in the field name i just need to add tnp.. for example

      the input is <janardhan>1234<janardhan>

      output should be <tnp:janardhan> 1234 <tnp.janardhan>

      it is having single input, so how can i achieve this?

      Regards,

      janardhan