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

Date and time

Former Member
0 Likes
631

Hi friends,

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

with regards

kar

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
Read only

Former Member
0 Likes
592

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

Read only

guillaume-hrc
Active Contributor
0 Likes
592

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

Read only

0 Likes
592

Check these function modules:

1. CONVERT_TIME_INPUT

2. TIME_CHECK_PLAUSIBILITY

Read only

Former Member
0 Likes
592

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