cancel
Showing results for 
Search instead for 
Did you mean: 

Value attribute - Time field not displaying current time

Former Member
0 Kudos

hello Experts ,

   I have a value attribute i have given type as syuzeit . Now ideally the current time should start appering in the field rt ? it is not happening.

Similarly for date i have given SYSTDATLO . This is working fine. this is also a valur attribute. Please suggest what i am missing ?

Thanks and regards,

Nikhil Kulkanri

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check the GET_XX method whether the value is passed in correct format or not .

Regards,

Nithish

Former Member
0 Kudos

Hello Nithish ,

 

 

   It is not coming from collection wrapper . So i defaulted sy-timlo to the value field. Is this the right i am doing ? bcoz as it is a value attribute. correct me if i am wrong.

Thanks and Regards,

Nikhil Kulkanri

Former Member
0 Kudos

Hi ,

If your requiremnt is to display the current time always then it's fine.  You can try using below code

data :

   lv_time_char  TYPE c LENGTH 5,
    lv_time       TYPE sy-uzeit.

  lv_time = sy-timlo .

   WRITE lv_time TO lv_time_char USING EDIT MASK '__:__'.

    rv_value = lv_time_char.

Regards,

Nithish