2008 Sep 04 7:20 AM
Hi,
I've a text in a variable
eg: gv_text = 'five thousand six thirty six rupees fifty paisa'.
How to convert the first letter of each word to uppercase.?
Five Thousand Six Thirty Six Rupees Fifty Paisa
thank you.
2008 Sep 04 7:30 AM
Hi,
I've a text in a variable
eg: gv_text = 'five thousand six thirty six rupees fifty paisa'.
How to convert the first letter of each word to uppercase.?
Five Thousand Six Thirty Six Rupees Fifty Paisa
thank you.
2008 Sep 04 7:23 AM
hi,
I am not sure this is the simpliest way, but you can give a try:
SPLIT strint AT ' ' INTO itab. "each word will be a single line in internal table
LOOP AT itab.
TRANSLATE itab-line(1) TO UPPERCASE. "comvert the first character to uppercase
MODIFY itab.
ENDLOOP.
CONCATENATE itab INTO string SEPARATED BY space.hope this helps
ec
2008 Sep 04 7:27 AM
Syntax for translate :
TRANSLATE str to upper case.
Regards,
Aparna Gaikwad
2008 Sep 04 7:30 AM
2008 Sep 04 7:33 AM
2008 Sep 04 7:34 AM
HI
Use TRANSLATE 'hello' to upper case.
~hitesh
Close this thread if your query is solved
2008 Sep 04 7:50 AM
Hi,
You can use a function:
CAPITALW (string).
It will capitalise your string.
Hope it helps.
Regards
Natasha garg
2008 Sep 04 8:03 AM
Hi,
Please check the following threads
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb33a5358411d1829f0000e829fbfe/frameset.htm
Hope this solves your problem
Manish
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |