2007 May 10 10:16 AM
Hi all,
In my internal table I have a time field which is 24 hour format.But I have to display in hh:mm (am/pm) format.
Can anyone guide me how to do that.
Thanks,
Uga.
Hi all,
In my internal table I have a time field which is 24 hour format.But I have to display in hh:mm (am/pm) format.
Can anyone guide me how to do that.
Thanks,
Uga.
2007 May 10 10:18 AM
2007 May 10 10:21 AM
loop at itab and pass the time value to FM HRVE_CONVERT_TIME
1. 14:00:00 = 02:00 PM
2. use this FM
HRVE_CONVERT_TIME
3. In the parameter TYPE_TIME, give 'A'.
2007 May 10 10:22 AM
hii,
take the 24 hour format date into a variable seperate the hours and minutes and put them into some other variables.
now substract 12 from hour.
check if the number is > 0 or not. if yes then write the number as positive with PM
if the number is < 0 then write the number as it is with AM
concatinate minutes with the hour and merge them in 1 variable.
please reward points if useful.
thanks,
vikaas
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |