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 to convert DEC(15) to DATS(8) - Urgent

Former Member
0 Kudos

Hi,

Is there any standard function module to convert the date values from DEC (15) to DATS (8), for example i have a date value as 20,070,201,080,452, how to convert this to a value 02/01/2007.

Thanks

Akila.R

3 REPLIES 3

Former Member
0 Kudos

Hi,

please follow the link below

http://msdn2.microsoft.com/en-us/library/cc185537.aspx

http://abaplog.wordpress.com/2007/02/

please reward points if helpful

Former Member
0 Kudos

Hi

Try LTRM_TIMESTAMP_CONVERT_FROM

Rgds

Mat

Former Member
0 Kudos

Hi,

Here is the sample code ,

DATA: N1(15) TYPE N VALUE 20070201080452,

D1 TYPE SY-DATUM.

MOVE N11(4) TO D10(4).

MOVE N15(2) TO D16(2).

MOVE N17(2) TO D14(2).

WRITE:/ D1.

Thanks,

Arunprasad.P

Reward if useful.