2010 Apr 29 2:10 PM
Hi,
I have a variable of type CHAR length 250 having value 'MONDAY'
How can i convet it to value 'Monday' i.e. only first letter in caps.
Thanks
Vinay
Hi,
I have a variable of type CHAR length 250 having value 'MONDAY'
How can i convet it to value 'Monday' i.e. only first letter in caps.
Thanks
Vinay
2010 Apr 29 2:11 PM
Hi,
use function module ISP_CONVERT_FIRSTCHARS_TOUPPER
YOUR PROBLEM SOLVED NOW..
Regs,
Lokesh.
Edited by: Lokesh Tarey on Apr 29, 2010 3:12 PM
2010 Apr 29 2:16 PM
Hi Lokesh,
I am getting the message Function module does not exist.
My version of SAP is 4.6.c
Thanks
2010 Apr 29 2:11 PM
hi
do in this way
translate <variable name>+1(249) to lower case.
done .
reply for futher help.
Edited by: gaurav.singh on Apr 29, 2010 3:12 PM
Edited by: gaurav.singh on Apr 29, 2010 3:13 PM
2010 Apr 29 2:15 PM
Which version of SAP are you using. In ECC 5.0 FM ISP_CONVERT_FIRSTCHARS_TOUPPER is not available.
Is your value 'MONDAY' in quotes?
It's better to use offset.
2010 Apr 29 2:19 PM
@Gaurav: translate <variable name>+1(249) to lower case
to lower case is not accepted. Can we use offset in TRANSLATE Keyword.
2010 Apr 29 2:22 PM
2010 Apr 29 2:30 PM
2010 Apr 29 2:32 PM
Let us know your solution... I tried this way. Copy paste and check.
DATA : e_head TYPE c,
e_tail(20) TYPE c,
Res(13) type c.
CALL FUNCTION 'C147_STRING_SPLIT_AT_POSITION'
EXPORTING
i_string = 'MONDAY'
i_position = 1
IMPORTING
e_head = e_head
e_tail = e_tail.
TRANSLATE e_tail TO LOWER CASE.
CONCATENATE e_head e_tail into res .
WRITE : res.
Edited by: Mishra.Manas on Apr 29, 2010 3:36 PM
2010 Apr 29 2:37 PM
hi vinay ,
i m using this code and it is working fine.
wats problem in yours let me now.
TRANSLATE lv_city+1(24) to LOWER CASE
Thanks,
Gaurav.
2010 Apr 29 2:41 PM
2010 Apr 29 2:42 PM
2010 Apr 29 3:07 PM
Moderator message - Please do not ask or answer basic questions - thread locked and points unassigned Rob
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |