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: 

Date and time

Former Member
0 Kudos

Hi friends,

I need to assign a parameter with time in 24 hours format, Is there any function moudule for this?

with regards

kar

4 REPLIES 4

Former Member
0 Kudos

hii

use thsi fm <b>CONVERT_TIME_INPUT</b>

and for 12 hour format

<b>HRVE_CONVERT_TIME</b>

or

you just fill in a default value in:

INITIALIZATION.

<b>p_uzeit = sy-uzeit.</b>

Then there is no need for a popup or search help.

u can as well Use <b>EDIT MASK</b> to change the format of time.

hope this helps

Thanks&Regards

Naresh

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Did you try using the type t ?

For instance, you have a matchcode for this parameter :

PARAMETERS : p_time TYPE sy-uzeit.

Best regards,

Guillaume

0 Kudos

Check these function modules:

1. CONVERT_TIME_INPUT

2. TIME_CHECK_PLAUSIBILITY

Former Member
0 Kudos

hi,

if u declare the parameter as SY_UZEIT it will take date in 24 hrs format

chk this program

REPORT DEMO.

parameters : p_time type sy-uzeit.

Here when u click F4 , there u will find one execute button , with that u can use 12 hour or 24 hour format


write : p_time.

Message was edited by: Chandrasekhar Jagarlamudi