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: 

Time conversion error

Former Member
0 Kudos

Hi,

Im using FM 'SD_CALC_DURATION_FROM_DATETIME' to calculate time difference between two date and two time.

The output time is stored in field 'TVRO-FAHZTD' which is field type DEC with length 11.

In ALV display it gives proper result like '9.7' means 9 hours and 7 minutes.

But when I use this field for calculation the field displays

' 90700' rather than '9.7.

How can I convert ' 90700' to '9.7' means 9 hours and 7 mins

Thanks

RR

2 REPLIES 2

Former Member
0 Kudos

Hi,

Use 'CONVERSION_EXIT_TSTRN_OUTPUT' and get the converted value.

If you give input as '90700', it will return '9:07'.

try this.

Regards,

R.Nagarajan.

Former Member
0 Kudos

Convertion exits are attached with this field.

So to convert the internal format to external format use the FM CONVERSION_EXIT_TSTRN_OUTPUT.