2012 Nov 17 8:12 AM
Hello Experts,
I have to perform the validation on time field i.e,if I entered time is less than current time I have to show an error mesage. I have assigned sy-uzeit to workarea of timefield and am checking if timefield < sy-uzeit But it is taking sy-uze-it in the format hh:mm:ss so it is always showing error message that time is less than current time. can anyone suggest me the solution or how to convert hh:mm:ss into hh:mm format.
Hi,
You can try FM CONVERSION_EXIT_HH_MM_OUTPUT.
~SS~
2012 Nov 17 8:28 AM
Hi Santosh,
check this. It works.
parameters : time type sy-uzeit.
if time < sy-uzeit.
message 'Time is less then current time' type 'E'.
endif.
Regrads,
RAvi Singh
2012 Nov 17 9:56 AM
2012 Nov 17 2:16 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |