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

Need Function Module

Former Member
0 Likes
327

Hi Folks,

Is there any Function module that will covert the external date to internal date Format. To be specific that will determine the external display according to the date format set in the user master. Many thanks for your help.

Regards,

Tim

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
267

Here ya go.



data: new_date type sy-datum.
call function 'CONVERT_DATE_TO_INTERNAL'
     exporting
          date_external            = '07/06/2005'
     importing
          date_internal            = new_date
     exceptions
          date_external_is_invalid = 1
          others                   = 2.


Regards,

Rich Heilman

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
268

Here ya go.



data: new_date type sy-datum.
call function 'CONVERT_DATE_TO_INTERNAL'
     exporting
          date_external            = '07/06/2005'
     importing
          date_internal            = new_date
     exceptions
          date_external_is_invalid = 1
          others                   = 2.


Regards,

Rich Heilman