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

TSTRDURAN sum problem

former_member212713
Contributor
0 Likes
813

Hi Gurus;

I use TSTRDURAN domain in my table. It use conversion routine (CONVERSION_EXIT_TSTRN_INPUT,

CONVERSION_EXIT_TSTRN_OUTPUT ) This domain is decimal but values show as time. And I dont entry not time value. For example ; not entry 08:65:00.

But it has very big problem. I sum some time values and it wrong calculate in alv and program. For example I want to sum (00:30

00:30

01:00

00:40

00:50

00:20

00:35) then result and show: 03:05. But should correct result 04:25.

Maybe there is OSS note. But I dont know.

If there any answer, please help me.

Thanks.

1 ACCEPTED SOLUTION
Read only

royolav_johansen
Explorer
0 Likes
629

Using summing of fields like this is not easy in SAP.

Same with Exel. When you add e.g 20:30 and 20:30 you get 17:00.

In the functions for the conversion exit:

      • OBSOLET: Instead of using this function, please use ABAP statements

      • CONVERT DATE and CONVERT TIME STAMP !

I would have made my domain and conversion exits,

where I convert time e.g 0,5 to 00:30,

then summarizing will work.

Regards

Roy

2 REPLIES 2
Read only

royolav_johansen
Explorer
0 Likes
630

Using summing of fields like this is not easy in SAP.

Same with Exel. When you add e.g 20:30 and 20:30 you get 17:00.

In the functions for the conversion exit:

      • OBSOLET: Instead of using this function, please use ABAP statements

      • CONVERT DATE and CONVERT TIME STAMP !

I would have made my domain and conversion exits,

where I convert time e.g 0,5 to 00:30,

then summarizing will work.

Regards

Roy

Read only

0 Likes
629

Thank You Mr. Johansen.

Your answer very usefull for me. I created new domain and conv.exit. Now I havent any problem about calculate time.

Time calculate and process not easy, its very diffucult.

Maybe I share my new domain and conv.exit on SDN.

Best Regards.