2008 Apr 24 1:08 PM
Hi Guys,
I need to convert date formate as in same formate as user have set in their userid.
for example if i set in my id as mm/dd/yyyy and another user set in dd/mm/yyyy so when they select date from selection screen then date automatically convert as per their userid formate.
any FM available for this?
Amit.
2008 Apr 24 1:14 PM
hii
DATUMSAUFBEREITUNG Formats date as per the user settings
there are some other fms also
i dun think u ll need them.
DATE_CONV_EXT_TO_INT Conversion of dates to SAPs internal format
CONVERT_DATE_INPUT Conversion exit routine for inverted date
CONVERT_DATE_TO_EXTERNAL Formats date from internal to display format
cheers,
sharad
2008 Apr 24 1:10 PM
hi,
try this
CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
EXPORTING
DATUM = date
DTYPE = date1
IMPORTING
ERROR =
IDATE = date2
MESSG =
MSGLN =
.
regards
prassanth
2008 Apr 24 1:14 PM
hii
DATUMSAUFBEREITUNG Formats date as per the user settings
there are some other fms also
i dun think u ll need them.
DATE_CONV_EXT_TO_INT Conversion of dates to SAPs internal format
CONVERT_DATE_INPUT Conversion exit routine for inverted date
CONVERT_DATE_TO_EXTERNAL Formats date from internal to display format
cheers,
sharad
2008 Apr 24 1:17 PM
Hi,
Try using this FM BAPI_CONVERSION_EXT2INT.
Thanks,
Sriram Ponna.
2008 Apr 24 1:17 PM
Hi,
Why do you want to use FM for that.
SAP itself takes care of that.
Regards,
Bhaskar