cancel
Showing results for 
Search instead for 
Did you mean: 

Convert payload to JSON in SAP CPI

former_member538292
Participant
0 Kudos

Hi All,

I am getting the data from source system into CPI camelpath header like (date='20190203',supplier='1234567890',company='ABCD')

now i need to convert this into xml.i tried to csv to xml no luck.I thought to convert to json using groovy script easy.

I just replace the = -> :,( ->{ but unable add the double " " and replace single to double quotes.

Could you please help me.

EX:(date='20190203',supplier='1234567890',company='ABCD')

I want to like <date>20190203</date> <supplier>123456789</supplier> <company>abcd</company>

Like below also help and i will use json to xml conversion

{"data":"20190203","supplier":"123456789","company":"ABCD"}


Thanks a lot.

Kumar

View Entire Topic
former_member538292
Participant
0 Kudos

Hi Priyanka,

It is working.

Thanks a lot,

Priyanka