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 Formate

Former Member
0 Likes
631

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
608

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 SAP’s internal format

CONVERT_DATE_INPUT – Conversion exit routine for inverted date

CONVERT_DATE_TO_EXTERNAL – Formats date from internal to display format

cheers,

sharad

4 REPLIES 4
Read only

prasanth_kasturi
Active Contributor
0 Likes
608

hi,

try this

CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'

EXPORTING

DATUM = date

DTYPE = date1

IMPORTING

  • ERROR =

IDATE = date2

  • MESSG =

  • MSGLN =

.

regards

prassanth

Read only

Former Member
0 Likes
609

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 SAP’s internal format

CONVERT_DATE_INPUT – Conversion exit routine for inverted date

CONVERT_DATE_TO_EXTERNAL – Formats date from internal to display format

cheers,

sharad

Read only

Former Member
0 Likes
608

Hi,

Try using this FM BAPI_CONVERSION_EXT2INT.

Thanks,

Sriram Ponna.

Read only

Bhaskar_Tripath
Participant
0 Likes
608

Hi,

Why do you want to use FM for that.

SAP itself takes care of that.

Regards,

Bhaskar