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 can I convert Time(external->internal and internal ->external)?

Former Member
0 Kudos

Hallo guys,

is there any FM for Time conversion

like

'CONVERT_DATE_TO_EXTERNAL' and 'CONVERT_DATE_TO_INTERNAL'

for Date conversion?

Thanks

Regards,

Liying

4 REPLIES 4

Former Member
0 Kudos

Hi liying,

1. CONVERT_TIME_INPUT

regards,

amit m.

suresh_datti
Active Contributor
0 Kudos

PL check CONVERT_TIME_INPUT.

Regards,

Suresh Datti

0 Kudos

No need for a function module, try this.



report zrich_0001 .

data: time(8) type c.

* Convert to external
write sy-uzeit to time.
write:/ time.



* Convert to internal.
translate time using ': '.
condense time no-gaps.
write:/ time.

Regards,

Rich Heilman

0 Kudos

thanks guys!

I think I found the solution as u guided.