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

Convert to upper case

Former Member
0 Likes
16,372

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
Read only

naimesh_patel
Active Contributor
0 Likes
2,435

You can use the TRANSLATE command.

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

Regards,

Naimesh Patel

Read only

0 Likes
2,435

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

Read only

0 Likes
2,435

<<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

Read only

0 Likes
2,435

This message was moderated.

Read only

Former Member
0 Likes
2,435

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