Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: How to change hours in decimal format to HH:MM format in Time Statement

$
0
0

Hi Sald,

        

            U can see the below code.

 

REPORT  ztest_time_conv.

 

DATA: hour(2) TYPE n,

      min(2) TYPE n,

      sec(2) TYPE n,

      tim TYPE i.

DATA: time TYPE p DECIMALS 2.

DATA: timeformat TYPE sy-uzeit.

time = '1.38'.

 

tim = time * 3600.

hour = tim DIV 3600.

tim = tim MOD 3600.

min = tim DIV 60.

sec = tim MOD 60.

 

 

CONCATENATE hour min sec INTO timeformat.

WRITE timeformat.

BREAK-POINT.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>