‎2008 Aug 07 12:03 PM
Hello Experts,
I want to convert text into Upper case ,
which function I can use ?
Thanks & Regards,
Rahul Shinde
‎2008 Aug 07 12:05 PM
‎2008 Aug 07 12:06 PM
‎2008 Aug 07 12:06 PM
Plz use follwing
CALL FUNCTION 'SWA_STRING_TO_UPPERCASE'
EXPORTING
INPUT_EXPRESSION =
INPUT_STRING = 'rajesh
PRESERVE_EXISTING_CAPITALS = 'X'
CAPITALIZE_AFTER_SPACE = 'X'
LANGUAGE = SY-LANGU
IMPORTING
OUTPUT_STRING = l_str
OUTPUT_EXPRESSION =
EXCEPTIONS
EXPRESSION_TRUNCATED = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
rgds
rajesh
Edited by: RAJESH KUMAR on Aug 7, 2008 4:38 PM
‎2008 Aug 07 12:06 PM
Hello,
I think you can use the TRANSLATE stmt.
TRANSLATE V_TEXT TO UPPER CASE.
BR,
Suhas
‎2008 Aug 07 12:06 PM
Hi,
Use this FM,
/SAPDII/SPP05_CONVERT_UPPERCASIn SE37 write UPPER and then press F4 you will fing many Function module to convert sting to UPPER CASE.
Regards
Adil
‎2008 Aug 07 12:07 PM
Hi,
goto se37 and give uppercase , press f4.
you will get all Function Moduels..
Regards,
Satish Reddy.
‎2008 Aug 07 12:08 PM
Hi Rahul,
Try working around with the function module : STRING_UPPER_LOWER_CASE'
Hope the below thread help you:
https://forums.sdn.sap.com/click.jspa?searchID=14947234&messageID=5442283
Have A Good Day
Chaitanya.
‎2008 Aug 07 12:09 PM
‎2008 Aug 07 12:09 PM
Hi,
check out the function module:
1. HR_99S_CONV_UPPER_CASE.
2. STRING_UPPER_LOWER_CASE
or u can use keyword TRANSLATE. for this check out F1.
HOPE THIS WILL HELP U