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: 

regarding how to get defult data type in SAP

Former Member
0 Kudos

Hi Expert:

There is a problem in a self-implemented seach help which contains a user exit. the search help doesn't work very well, because the date doesn't change correspondingly with defaul date format which maintained by su3. for example, when the date format is DD.MM,YYYY, the start date should be 2006.01.01, but it turns out to be 20,06,0101.

If I change this setting to u201CYYYY.MM.DDu201D then the search help works perfectly.

I'd like to modify it the user-exit, but I don't know how to get the defalt date format and how to change the date according to default format ?

Are there any standard function modules or how you usually handle it, would you please give me a hand?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use fm: CONVERT_DATE_TO_INTERNAL to convert from you user setting date format to the SAP's standard internal format, which is YYYYMMDD.

Regards,

Subramanian

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use fm: CONVERT_DATE_TO_INTERNAL to convert from you user setting date format to the SAP's standard internal format, which is YYYYMMDD.

Regards,

Subramanian

0 Kudos

This message was moderated.

0 Kudos

This message was moderated.