Skip to Content

How to merge 2 payloads into single xml payload in SAP HCI

Hi Experts,

I have a requirement two combine two xml responses into one xml payload. Here, i stored one xml into DataStore and other is in payload(which we have receiving to sender).

I'm trying with parallel multicast, join and Gather but not getting it.

Please suggest how to merge 2 payload into single payload.

Thanks and Regrads,

Md.Thouheed

1.jpg (52.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 10, 2017 at 03:47 PM

    Hello Md,

    It should work,could you please check the visibility set in the DataStore.

    1. If you are creating an entry outside the DataStore and want to call it in above IFlow then you have to set the DataStore visibility global in both the IFows.
    2. If you are setting the DataStore in same IFlow and want to call it on later stage in same IFlow then set the visibility to "Integration Flow".

    How to set Visibility in DataStore:

    Hope it helps!

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 11, 2017 at 05:22 AM

    Hi Sriprasad,

    Thanks for replying,

    We are able to fetch data from data store. however we are trying to add this data with new response data.

    data read from DS is:

    <a>abc</a>
    <b>xyz</b>

    New response data to be merged is:

    <?xml version="1.0" encoding="utf-8"?>
    <Root>

    <x>hgh</x>

    <y>jhsd</y>

    </Root>

    Now I want to merge and get the below output:

    <?xml version="1.0" encoding="utf-8"?>
    <Root>

    <a>abc</a>
    <b>xyz</b>

    <x>hgh</x>

    <y>jhsd</y>

    </Root>

    Please suggest your ideas.

    Regards,
    Thouheed

    Add comment
    10|10000 characters needed characters exceeded