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

Upper case/Lower case

Former Member
0 Likes
565

Hi,

I need to translate all the letters of a word but the first one to lower case.

For example, the variable has the value "ROBERTO" and i want to change it to "Roberto".

Is there a FM to do this?

And also, does anybody know a char domain in which letters stay in lower case?

Regards,

Roberto

4 REPLIES 4
Read only

Former Member
0 Likes
513

Hi,

ch_text = 'ROBERTO'.

TRANSLATE ch_text+1 TO LOWER CASE.

Thanks,

Kartavya

Edited by: Kartavya Kaushik on Aug 28, 2008 11:03 PM

Read only

0 Likes
513

Hi,

And how can i translate "ROBERTO OKUMURA" to "Roberto Okumura" ?

Sdls,

Roberto

Read only

Former Member
0 Likes
513

Here is one FM also which can do this

STRING_UPPER_LOWER_CASE

Usage -

Pass value

Delimiter = space

String1 = 'ROBERTO OKUMURA'

Output -

Roberto Okumura

Thanks,

Kartavya

Edited by: Kartavya Kaushik on Aug 28, 2008 11:11 PM

Read only

Former Member
0 Likes
513

Hi,

That FM deletes blank spaces. But i can split the words into different fields of an itab and then use "translate to lower case" for each field and concatenate them back toguether into a variable.

Thanks for your answers,

Regards,

Roberto