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 conversion

Former Member
0 Likes
660

Hi,

I am wrkg on a report prg in which i have to display date and time fields.In theo/p the date and time fields are not getting displayed properly.Is there and function module for date and time conversion?

5 REPLIES 5
Read only

Former Member
0 Likes
587

Hi Hema ,

Could you please tell what exactly is the issue , as the input provided in your post does not provide the necessary information.

Regards

Arun

Read only

Former Member
0 Likes
587

use

PERIOD_AND_DATE_CONVERT_INPUT

ABI_TIMESTAMP_CONVERT_FROM

Please reward if useful.

Read only

Pawan_Kesari
Active Contributor
0 Likes
587

how the date and time fields are declare...

If you declare data and time variable as SYDATUM and SYUZEIT resp. then it will be formatted automatically while printing

Read only

Former Member
0 Likes
587

use foll. code to convert date into desired format..

CONCATENATE

sy-datum+6(2) '.'

sy-datum+4(2) '.'

sy-datum+0(4)

INTO currnt_dt.

if you want to add time stamp to the date then use foll. code..

CONCATENATE w_change_low '235959'

INTO w_change_low.

Read only

Former Member
0 Likes
587

For date conversion try using CONVERT_DATE_TO_EXTERNAL function module.