Friday, May 16, 2008

ABAP Function Module for Displaying Clock

ABAP Function Module for Displaying Clock

If you wish to display time in a Pop-up window then use the following function module.

F4_CLOCK

The user can select the desired time and the result is exported in one of the parameters.

Please find the code below.

REPORT ZEX_TIME .


Data: d_time like sy-uzeit.

CALL FUNCTION 'F4_CLOCK'
 EXPORTING
   START_TIME          = SY-UZEIT
   DISPLAY             = ' '
 IMPORTING
   SELECTED_TIME       = d_time.


   Write:/ 'The selected time is ', d_time.



No comments:

Post a Comment