Application Development 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: 

How to sum HH:MM in OOPS ALV set_table_for_first_display

Former Member
0 Kudos

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 .

Regards.

Jay.

1 REPLY 1

kiran_k8
Active Contributor
0 Kudos

Nagarajan,

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*.

(or)

Refer to the below link

http://sap.ittoolbox.com/groups/technical-functional/sap-abap/help-sum-of-times-hhmmss-in-alv-grid-3...

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

K.Kiran.