cancel
Showing results for 
Search instead for 
Did you mean: 

removing blank spaces

Former Member
0 Kudos

Dear All,

The source field  Order number looks like this  [V14568584999  9320]

Is there a way to remove blank spaces between and make the target element after mapping look like this  [V145685849999320] ?

Thanks,

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

use simple UDF use below line of code , it works

str = str.replaceAll(" ", "");

return str;

refer my below blog

http://scn.sap.com/people/rajasekhar.reddy14/blog/2011/09/05/regular-expressions-regex-usage-in-sap-...

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

If you do not want to use an UDF, you can try using replaceString text function: