on 03-19-2009 8:30 AM
Hi friends,
What is the code to display current time in BSP Application in Input Screen?
Moosa
Hi Moosa,
The question is not clear.Please explain your requirment.
If you want to display urrent time on a BSP page..use a htmlb:textview element with
attribute text = <%= sy-uzeit %>
Regards,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moosa,
The value of sy-uzeit is the current value of application time.
For displaing it in 10:40:37 format you need to
DATA: hr(2),
min(2),
sec(2),
lv_time type string.
hr = sy-uzeit+0(2)
min = sy-uzeit+2(4)
sec = sy-uzeit+4(6)
concatenate lv_time hr ':' min ':' sec into lv_time .
To display in bold..
<htmlb:textview text="<b><font size=15><%= lv_time %></font></b>">
Moosa,
Following the easy way to do it:
DATA: l_time_beg(8), l_time(5).
l_time_beg = page->To_String( value = Application->ORDER_ITEMSC-BTIME ).
<htmlb:inputField id = "ID_DLV_BTIME"
value = "<%= l_time_beg %>"
type = "time"
doValidate = "TRUE"
size = "8"
maxlength = "8" />
Best Regards,
Alexandre
Even better you can use below code:
<%= page->write( sy-uzeit ). %>
Raja
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.