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
1,548

I need to convert certain fields from an upload file into upper case.

Any pointers as to how this can be done. Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,221

w_text(10) type c Value 'shardul'.

translate w_text to upper case.

write: w_text.

7 REPLIES 7
Read only

Former Member
0 Likes
1,221

Hi

Use the command

TRANSLATE <field> to LOWERcase/Uppercase.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
1,221

store the file into an internal table using GUI_UPLOAD

then

loop at itab into wa_itab.
 translate wa_itab-field1 to upper case.
 modify table itab from wa_itab transporting field1.
endloop.

Read only

Former Member
0 Likes
1,221

hi ,

Once you get them into your internal table do like following.

Translate <field> to UPPER CASE.

regards

sarath

Read only

Former Member
0 Likes
1,222

w_text(10) type c Value 'shardul'.

translate w_text to upper case.

write: w_text.

Read only

Former Member
0 Likes
1,221

U can try it using the TRANSLATE statement

data : TEXT(10) type C.
data : T(10) type C.
TEXT = 'gopi'.

move TEXT to T.
translate T to upper case.
write : T.

Read only

Former Member
0 Likes
1,221

Hi,

You can use the TRANSLATE to transalte the field to either upper or lower case.

Reward pointsif it is helpful.

Regards,

Sangeetha.a

Read only

Former Member
0 Likes
1,221

hi,

u can use transalte command to convert into upper/lower case. as

loop at itab.

TRANSLATE itab1-fld1 TO LOWER/UPPER CASE.

modift itab1 index sy-index.

endloop.

if helpful reward some points.

with reagrds,

suresh babu aluri.