cancel
Showing results for 
Search instead for 
Did you mean: 

Date format

Former Member
0 Kudos

Hi,

Plz tell me the procedure for changing date format...

i have a format DDMMYYYY in my flat file...

Thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Try this FM 'PERIOD_AND_DATE_CONVERT_OUTPUT'

It will give you date separated by period symbol.

Reward if helpfull.

Former Member
0 Kudos

hi ,

if the date is in v_date format.

v_date = ddmmyyyy.

we can use concatenate and offset

CONCATENATE v_date5(4) v_date3(2) v_date+0(2) INTO v_final .

regards,

Deepa

prasanth_kasturi
Active Contributor
0 Kudos

hi,

to which format u wwant to convert.

its displayed automatically in the format of your settings.

check your settings.

if you still want to change use the folloing methods

you can do using edit mask of write statement

data: date(10) type c,

date1 like date,

date2 like date.

date = sy-datum.

write:/ date.

write:/ sy-datum.

write:/ date using edit mask '____:__:__'.

and can use the fms

CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'

EXPORTING

DATUM = date

DTYPE = date1

IMPORTING

  • ERROR =

IDATE = date2

  • MESSG =

  • MSGLN =

.

Hope you understand

regards

prasanth

Former Member
0 Kudos

HI,

**CHANGING DATE FORMAT

&----


*& Report ZJE_DATE

*&

&----


*&

*&

&----


REPORT ZJE_DATE.

data: date(10) type c,

date1 like date,

date2 like date.

date = sy-datum.

write:/ date.

write:/ sy-datum.

write:/ date using edit mask '____:__:__'.

CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'

EXPORTING

DATUM = date

DTYPE = date1

IMPORTING

  • ERROR =

IDATE = date2

  • MESSG =

  • MSGLN =

.

write:/ date2.