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 conversion

Former Member
0 Kudos

I have a field which is having date in '12.12.2006'

i want to convert this into 20061212

whats the function module for this...How to get this

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

use the fm: CONVERT_DATE_TO_INTERNAL

Regards,

Ravi

8 REPLIES 8

former_member181962
Active Contributor
0 Kudos

use the fm: CONVERT_DATE_TO_INTERNAL

Regards,

Ravi

Simha_
Employee
Employee
0 Kudos

Hi,

Use f.M CONVERT_DATE_TO_INTERNAL

cheers,

Simha.

Former Member
0 Kudos

Hello,

Do like this:


  CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
                     EXPORTING DATUM =  C_DATUV
                               DTYPE = 'DATS'

                     IMPORTING IDATE =  C_DATUV
                               ERROR =  ERROR_FLAG
                               MESSG =  MESSAGE
                               MSGLN =  MESSAGE_LENGTH.

Vasanth

Former Member
0 Kudos
V_date(8) type c..
vdate = '12.12.2006'.

CONCATENATE vdate+0(4) vdate+4(2) vdate+6(2) INTO v_date.

Former Member
0 Kudos

hi,

    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external = t_bkpf-budat
         IMPORTING
              date_internal = wa_bkpf-budat.

Regards,

Santosh

Former Member
0 Kudos

Hi,

use CONVERT_DATE_TO_INTERNAL

data: v_date(8) type c.

call function 'CONVERT_DATE_TO_INTERNAL'

exporting

date_external = '12.12.2006'

importing

date_internal = v_date.

write:/ v_date.

Regards,

Sruthi

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

You can use the FM:

use the fm: CONVERT_DATE_TO_INTERNAL

for this requirement.

Regards,

kumar

Former Member
0 Kudos

Hi,

You can use this std function module to convert to system date.

'CONVERT_DATE_TO_INTERNAL'

Regards,

Ponraj.s.