03-07-2008 1:21 PM
03-07-2008 1:23 PM
Hi,
You can use Below FM :
CONVERT_DATE_TO_INTERNAL
This FM will convert date as internal format,i mean depends on user profile.
Regards,
Omkaram.
03-07-2008 1:26 PM
03-07-2008 1:27 PM
how to convert mmddyyyy date format to sap date format with out using FM.
03-07-2008 1:30 PM
CONCATENATE field+4(4) field(4) INTO l_date_internal.
Regards,
Atish
03-07-2008 1:27 PM
DATA: date(8) TYPE c.
ur field <date1>is in mmddyyyy format.
concatenate date14(2) date10(2) date1+2(2) into date.
write date to necessary variable.
03-07-2008 1:28 PM
hi use this,
parameters:p_date type d.
data: v_date1 type d.
.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = p_date
IMPORTING
DATE_INTERNAL = v_date1.
write:/ v_date1.
reward points if useful,
venkat.
03-07-2008 1:40 PM
Hi,
just copy paste and run this code.
DATA:V_DATE1(10),
V_DATE(10).
V_DATE = '03032008'. "-----> format of mmddyyyy
concatenate V_DATE4(4) '.' V_DATE2(2)'.' V_DATE+0(2) into V_DATE1.
Write:V_DATE1. "-------> will be of the format yyyy.mm.dd
Hope this helps.