Skip to Content

How to sum HH:MM in OOPS ALV set_table_for_first_display

Jan 12, 2017 at 07:23 AM


avatar image

Hi All.

I have to find the total time in ALV which column is displayed as HH:MM.DO_SUM does not work hence field has content as HH:MM.Could you please help me to find total time or any other suggestion .



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Kiran K Jan 12, 2017 at 08:48 AM


Kindly go through the code in the FM TIMECALC_DIFF. It is doing subtraction,you can follow the same for addition.

Not at the level of ALV GRID but internally in the program you can process the data with a similar logic and get the sum of hours.

Also you can explore the existing SAP FMs in SE37 with the keyword search *add*time*.


Refer to the below link

Kindly share if you got any other better solution to this.


10 |10000 characters needed characters left characters exceeded