on 05-12-2008 5:25 AM
Hi,
Plz tell me the procedure for changing date format...
i have a format DDMMYYYY in my flat file...
Thanks
Hi,
Try this FM 'PERIOD_AND_DATE_CONVERT_OUTPUT'
It will give you date separated by period symbol.
Reward if helpfull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.