‎2007 Aug 21 8:54 AM
Hii All
I am writing a BDC which involves two date fields. I want to populate the date fields depending upon the user's date format irrespective of what format is given in the data file. How to convert a date to the user's default systm format??
Tx
‎2007 Aug 21 8:57 AM
Hi..
Call the FM CONVERT_DATE_TO_EXTERNAL
You can also check the FMs:
CONVERSION_EXIT_IDATE_OUTPUT
CONVERSION_EXIT_LDATE_OUTPUT
<b>Reward if Helpful</b>
‎2007 Aug 21 9:34 AM
‎2007 Aug 21 10:04 AM
Try the following:
data:
l_char10(10) type c.
write: sy-datum to l_char10."will apply user's edit mask
write: / l_char10. This should pick up the user's current settings (when they logged in) and apply it to the date.
‎2007 Aug 21 10:12 AM
use WRITE TO .................... USING EDIT MASK '__/__/____'.
Sameer