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

Regarding time conversion

Former Member
0 Likes
516

Hi all,

I have a problem in displaying time field in the out put. I am getting the output of the time field as 145337 . But i want this to be 14:53:37 . Is there any function module to convert it to this format. if yes please let me know. My data is in one internal table.

1 ACCEPTED SOLUTION
Read only

former_member2382
Active Participant
0 Likes
493

Hi,

Check these function modules:

1. CONVERT_TIME_INPUT

2. TIME_CHECK_PLAUSIBILITY

Hope this helps.

Regards,

Parvez

3 REPLIES 3
Read only

former_member196280
Active Contributor
0 Likes
493

Use EDIT MASK

Reward points if useful.

Regards,

SaiRam

Read only

former_member2382
Active Participant
0 Likes
494

Hi,

Check these function modules:

1. CONVERT_TIME_INPUT

2. TIME_CHECK_PLAUSIBILITY

Hope this helps.

Regards,

Parvez

Read only

Former Member
0 Likes
493

Hi,

pls check with dis code

DATA time TYPE sy-uzeit.

DATA time4(4).

DATA txt(10).

txt = '9::57'.

WHILE txt CA ':'.

REPLACE ':' WITH space INTO txt.

ENDWHILE.

CONDENSE txt NO-GAPS.

UNPACK txt TO time4.

MOVE time4 TO time.

Reward if it helpful

Thanks

Vana