Application Development and Automation 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: 
Read only

Date Format

abdulazeez12
Active Contributor
0 Likes
708

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
Read only

varma_narayana
Active Contributor
0 Likes
613

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>

Read only

Former Member
0 Likes
613

Hi,

You can use CONVERT_DATE_TO_EXTERNAL.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
613

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.

Read only

Former Member
0 Likes
613

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

Sameer