cancel
Showing results for 
Search instead for 
Did you mean: 

function module for converting present time into words

Former Member
0 Kudos

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 .

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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