11-22-2005 8:00 AM
Hi,
Do any one come across a function module which takes system time as input and outputs time in 12 hr format.
example input = 13
output = 1 pm
Early response is appreciated.
11-22-2005 8:03 AM
Hi Syed,
Why do you need a function to make that ?
if w_date gt 12.
w_date2 = w_date - 12.
w_type = 'pm'.
else
w_date2 = w_date.
w_type = 'am'.
endif.
Rgd
Frédéric
11-22-2005 8:05 AM
i have implemented the one you suggested.
but i want to know the function module if any.
11-22-2005 8:15 AM
Hi Use this FM
HRVE_CONVERT_TIME
in that you need to specify
TYPE_TIME 'A'
INPUT TIME
INPUT_AM_PM 'AM' or 'PM'
Try
Vijay
11-22-2005 8:16 AM
Hi Syed,
TYPE_TIME A
INPUT_TIME 13:00:00
INPUT_AM_PM AM
Export parameters Value
OUTPUT_TIME 01:00:00
OUTPUT_AM_PM PM
Regards
vijay