Skip to Content
avatar image
Former Member

Date Format

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Aug 21, 2007 at 07: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>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 08:34 AM

    Hi,

    You can use CONVERT_DATE_TO_EXTERNAL.

    Thanks,

    Sriram Ponna.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 09:12 AM

    use WRITE TO .................... USING EDIT MASK '__/__/____'.

    Sameer

    Add comment
    10|10000 characters needed characters exceeded