on 07-17-2007 11:53 AM
i want to convert present time into words.
example: 11:45:59 this i would like to print as eleven hours fourty five minutes and fifty nine seconds.
is there any function module .
Hi
split this field into Hours, Minutes and Seconds like
data: time(8), hr(2),mt(2) ,sec(2), str(80).
time = '11:45:59' .
hr = time+0(2).
mt = time+3(2).
sec = time+6(2).
pass these field hr, mt,sec to the table
T015Z and get the words in v_hr,v_mt, v_sec
now concatenate them together like
CONCATENATE V_HR 'hours' V_MT 'minutes' V_SEC 'seconds' INTO V_STR.
WRITE : / V_STR.
<b>Reward points for useful Answers</b>
Regards
Anji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.