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

Regarding FM

Former Member
0 Likes
623

Hi EveryOne,

Can i know which function module we use for the conversion of Small letters to Capital Letters.

Regards,

PHANINDER GOLLAPUDI.

7 REPLIES 7
Read only

Former Member
0 Likes
605

Please press F1 on TRANSLATE.

Rob

Read only

Former Member
0 Likes
605

If you want to convert a partcular field then you can use:-

Translate fieldname to Upper Case.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 5, 2008 4:30 PM

Read only

Former Member
0 Likes
605

hi

good

DATA: t5(10) TYPE c VALUE 'AbCdEfGhIj',

string5 LIKE t5,

rule5(20) TYPE c VALUE 'AxbXCydYEzfZ'.

string5 = t5.

WRITE string5.

TRANSLATE string5 TO UPPER CASE.

WRITE / string5.

string5 = t5.

TRANSLATE string5 TO LOWER CASE.

WRITE / string5.

thanks

mrutyun^

Read only

Former Member
0 Likes
605

U can try this


REPORT ztest.

DATA : v_lower(25) VALUE 'abcde',
v_upper(25).

CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
EXPORTING
langu = sy-langu
text = v_lower
IMPORTING
text_uc = v_upper.

WRITE : v_upper.

OUTPUT is : ABCDE

Read only

Former Member
0 Likes
605

Hi,

You can use translate statement.



Data : name(10) type c value 'COMMUNITY'.

TRANSLATE name TO LOWER CASE.

write : name.

Thanks,

Sriram Ponna,

Read only

Former Member
0 Likes
605

hi

use this FM

2054_TRANSLATE_2_UPPERCASE

Anbu

Read only

Former Member
0 Likes
605

Hi

Check This FM

TR_UPPERCASE_PARTS_OF_STRING

It translates the string given by you or you can give the whole string for Translation .

Hope it helps .

Praveen.