Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Normalising Customer Names

Former Member
0 Likes
486

Hi,

I am trying to write a utility that "normalises" customer names.

One of the things it needs to be able to do is to strip out non-alphanumeric characters.

For example: "Bill's Biscuits" would become "Bills Biscuits"

I know I can do a simple <variable> CO '0123456789ABCDEF...(etc)" to make this work for simple English characters but this needs to work in other languages (e.g. French) that have accents above the letters.

So, what I want to do is to convert the accented characters into non-accented characters. Is there a standard SAP function module that can do this? Otherwise I'm going to have to get my schoolboy French books out to find all of the possible accented characters!

Thanks,

Tristan

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
465

hi Tristan,

use fm prepare_string

and finally abap command condense ... no-gaps.

A.

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
466

hi Tristan,

use fm prepare_string

and finally abap command condense ... no-gaps.

A.

Read only

0 Likes
465

Hi Andreas,

Many thanks - did the trick.

Tristan