on 11-05-2008 6:48 AM
hi,
in smart forms time format is coming to one variable time in this format 122637, but i need this format 12:26:37
plz tell me the answer.
thanks.
/: SET TIME MASK = 'HH:MM:SS'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check this:
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.
PS:Code given by Vijay Babu Dudla in other thread..in ABAP general..when I pasted the link,it did not work..so I am giving it here like this.
Regards,
VIshwa.
Edited by: Vishwa Sri Hari on Nov 5, 2008 1:01 PM
Hi,
Take a new variable of type TIMS and pass the value in that. And put that variable directly in the layout, it will convert the time format automatically and will print it.
- Hemant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use the system variable for time. &sfsy-time&..you will get the required way.
Regards,
Vishwa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.