‎2008 Dec 18 11:22 AM
hi there....
i have a requirement to convert a string from lower case to upper case... can anyone help regarding the same...
my overall requirement is to replace a string with another in a string. but during comaprison, the replace command checks for case also, which is not what i desire to have.
<<text removed>>
Edited by: Matt on Dec 18, 2008 2:12 PM - don't say thing that suggest people should hurry.
‎2008 Dec 18 11:23 AM
‎2008 Dec 18 11:23 AM
‎2008 Dec 18 11:23 AM
Hi
data : ab type string value 'sap community network'.
TRANSLATE AB TO UPPER CASE.
Use UPPER CASE and take F1 help for more help.
Regards
Ramc
Hi Prem
Now you can close this thread as you got it
Please close it
Edited by: ramchander krishnamraju on Dec 18, 2008 12:25 PM
Edited by: ramchander krishnamraju on Dec 18, 2008 12:26 PM
Edited by: ramchander krishnamraju on Dec 18, 2008 12:30 PM
‎2008 Dec 18 11:24 AM
‎2008 Dec 18 11:25 AM
‎2008 Dec 18 11:26 AM
‎2008 Dec 18 11:29 AM
If eventually you need to replace the string then instead of Translating to Upper case you could also mention other possible patterns like:
USING 'Axax'
This will replace both A nad a with x.'
‎2008 Dec 18 11:29 AM
If eventually you need to replace the string then instead of Translating to Upper case you could also mention other possible patterns like:
USING 'Axax'
This will replace both A nad a with x.'
‎2008 Dec 18 11:33 AM
Hi Prem,
U can use TRANSLATE command.
Press F1 on translate u will get more details.
‎2008 Dec 18 11:35 AM
You can use IGNORING CASE addition of REPLACE statement to avoid your problem.
If you still need to convert to Upper Case the solution is just a SCN-Search away.
Regards
Karthik D
‎2008 Dec 18 11:39 AM
hi,
try this code for changing string into upper case:
data:v_name type string value 'sapabap'.
translate v_name to upper case.
write:/ v_name.