Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Date Format

abdulazeez12
Active Contributor
0 Kudos

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

4 REPLIES 4

varma_narayana
Active Contributor
0 Kudos

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>

Former Member
0 Kudos

Hi,

You can use CONVERT_DATE_TO_EXTERNAL.

Thanks,

Sriram Ponna.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Sameer