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 values to upper case

Former Member
0 Likes
1,308

In the selection screen i have a field which takes range of values. However i need to convert the values to upper case. How can i go about with it?

6 REPLIES 6
Read only

0 Likes
1,079

Use Syntax

TRANSLATE <c> TO UPPER CASE.

Below link might be helpful to you

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb33a5358411d1829f0000e829fbfe/content.htm

regards

Saravanan

Read only

Former Member
0 Likes
1,079

DATA LETTERS(3).

MOVE 'abc' TO LETTERS.

TRANSLATE LETTERS TO UPPER CASE.

reward if helpful

Read only

Former Member
0 Likes
1,079

Hi,

Refer your field on the seleciton screen to any standard field

it would be converted to upper case automatically.

for ex: select-options: s_name for smdc-task_desc.

Best regards

Read only

Former Member
0 Likes
1,079

Hi,

In the PAI of selection screen, i.e. AT SELECTION-SCREEN have a module to modify the values to upper case in the internal table ( Selection table values ).

Use TRANSLATE <> TO UPPER CASE .

Hope this helps.

Best Regards, Murugesh

Read only

Former Member
0 Likes
1,079

U can use the FM

SPP01_CONVERT_TO_UPPERCAS

Reward if useful

Read only

Former Member
0 Likes
1,079

Hi,

By default all select options entries will be converted to UPPER CASE. e.g. copy the following Pgm , run & see the contents of table X at the break point. ( e.g. If you enter abcd the table will show them as ABCD )

REPORT ZRBC100.

*

tables mseg.

select-options: x for mseg-lgort .

Data: w_ii type i.

*

break-point.

w_ii = w_ii + 1.

In fact if you want your input to be case sensitive then use the addition LOWER CASE for SELECT-OPTIOS. Copy the following

pgm & see it's contents.

REPORT ZRBC100.

*

tables mseg.

select-options: x for mseg-lgort lower case.

Data: w_ii type i.

*

break-point.

w_ii = w_ii + 1.

I hope this helps,

Regards

Raju chitale