Application Development 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: 

Convert to upper case

Former Member
0 Kudos

Hi all

I gt a internal table. This internal table or itab store some records. how to convert all the record to upper case?

thks

5 REPLIES 5

naimesh_patel
Active Contributor
0 Kudos

You can use the TRANSLATE command.

LOOP AT ITAB.
TRANSLATE ITAB-TEXT TO UPPER CASE.
MODIFY ITAB.
CLEAR  ITAB.
ENDLOOP.

Regards,

Naimesh Patel

0 Kudos

TRANSLATE ITAB-TEXT TO UPPER CASE.

is only for a particular field in the itab. Can i convert all the field in the itab to uppercase. Thk

0 Kudos

<<Please spell words out in full. "you" not "u" etc.>>

thks u solve mu problem i jus need to do this

LOOP AT ITAB.

TRANSLATE ITAB TO UPPER CASE.

MODIFY ITAB.

CLEAR ITAB.

ENDLOOP.

thk alot

Edited by: Matt on Aug 30, 2010 9:17 AM

0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi

Check BAsics of Translating

  • translating signs

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. "#EC SYNTCHAR

WRITE / string5.

string5 = t5.

TRANSLATE string5 TO LOWER CASE. "#EC SYNTCHAR

WRITE / string5.

string5 = t5.

TRANSLATE string5 USING rule5. "#EC SYNTCHAR

WRITE / string5.

SKIP.

ULINE.

Praveen