cancel
Showing results for 
Search instead for 
Did you mean: 

replace new line with space

former_member183906
Active Contributor
0 Kudos

Hi,

I need to replace new line with a space in Input string. How to achieve it in SAP CPI.

Input string is -

This is a test.

I need remove new line.

I need to replace new line with a space.

Output string is -

This is a test. I need remove new line. I need to replace new line with a space.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

robsonchiarello
Explorer
0 Kudos

Hi Biju,

Try using GroovyScript. I think this is the best way to achieve that.

You can find an example of how to parse a payload in JSON using Groovy Script below:

https://answers.sap.com/questions/13141941/groovy-script-error-parsing-json-payload-in-cpi-1.html

Regards,

Robson

Answers (0)