‎2006 Oct 09 7:52 AM
I want to change a string to put it into capital letters. Which function should I use to do it ?
Thank you.
‎2006 Oct 09 7:54 AM
HI,
use following
data: str type string.
str = 'abcddd'.
<b>TRANSLATE str TO UPPER CASE.</b>
write:/ str.
Regards,
‎2006 Oct 09 7:54 AM
*Code to demonstrate TRANSLATE to UPPER/LOWER CASE command
*----
DATA: ld_char(20) type c.
ld_char = 'Hello World'.
TRANSLATE ld_char TO UPPER CASE. "Result: ld_char = 'HELLO WORLD'
TRANSLATE ld_char TO LOWER CASE. "Result: ld_char = 'hello world'
‎2006 Oct 09 7:55 AM
Hi,
Use the TRANSLATE command to convert to upper case.
<b>TRANSLATE text TO UPPER CASE</b>
DATA: t(10) TYPE c VALUE 'AbCdEfGhIj',
string LIKE t,
rule(20) TYPE c VALUE 'AxbXCydYEzfZ'.
string = t.
WRITE string.
TRANSLATE string TO UPPER CASE.
WRITE / string.
<b>Output:</b>
AbCdEfGhIj
ABCDEFGHIJRegards
Sudheer
‎2006 Oct 09 7:57 AM
hi,
chk this
TRANSLATE strg TO UPPER CASE.
TRANSLATE strg TO LOWER CASE.
rgds
anver
‎2006 Oct 09 7:57 AM
hi,
chk this
TRANSLATE strg TO UPPER CASE.
TRANSLATE strg TO LOWER CASE.
rgds
anver
‎2006 Oct 09 8:00 AM
Hi,
you can write:
translate str to upper case.
regards,
Dharitree
‎2006 Oct 09 8:02 AM
<b>EDITOR_LINE_TRANSLATE_CASE</b>
data: a type RSTXP-TDLINE.
data: b type RSTXP-TDLINE.
a = 'ABDCCC'.
CALL FUNCTION <b>'EDITOR_LINE_TRANSLATE_CASE'</b>
EXPORTING
I_LINE = a
WANTED_CASE = 'LOWER'
IMPORTING
O_LINE = b.
write:/ b.
‎2006 Oct 09 8:03 AM
hi,
use
translate str to uppercase..
or FM SWA_STRING_TO_UPPERCASE