‎2008 Apr 21 9:30 AM
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?
‎2008 Apr 21 9:37 AM
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
‎2008 Apr 21 9:37 AM
DATA LETTERS(3).
MOVE 'abc' TO LETTERS.
TRANSLATE LETTERS TO UPPER CASE.
reward if helpful
‎2008 Apr 21 9:38 AM
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
‎2008 Apr 21 9:40 AM
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
‎2008 Apr 21 9:40 AM
‎2008 Apr 21 10:12 AM
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