Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Display current time

Former Member
0 Likes
734

Hi friends,

I am currently working on a bar chart which has a time axis ( a horizontal time line with dates and times displayed on top of the chart like a scale).

Now, my requirement is to place a small pointer ( a vertical line) at the current time on current date. Is there any 'BARC_' function module that takes care of this automatically? If not, any ideas on how I can achieve the same by programming.

Thanks in Advance.

Best Regards,

Srinath.

5 REPLIES 5
Read only

Former Member
0 Likes
669

System fields for date and time

sy-datum - date

sy-uzeit - time

Read only

0 Likes
669

Hi Dominic,

I knew date and time system fields. My question was about the way to visualise this in Bar chart (GANTT chart).

Thank you.

Regards,

Srinath.

Read only

0 Likes
669

sorry about that...

i read the question wrongly...

Read only

Former Member
0 Likes
669
Read only

Former Member
0 Likes
669

Hi All,

Solved it myself. We have method CREATE_DATELINE in the class CL_GUI_BARCHART which displays current date and time as a vertical line in the GANTT chart.

Exporting parameters are Color type (B5 etc), and date (Time stamp).

Thanks for the inputs, anyway.