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

Error in Date conversion when calling CONVERT_DATE_TO_INTERNAL

Former Member
0 Likes
1,831

Dear All,

I am on ECC 6.0 , my profile parameters for date is set to 2nd option ( MM/DD/YYYY). When I call the FM CONVERT_DATE_TO_INTERNAL , I get an error stating "Enter a valid date (for example, 03/11/2011 ) .

When I change my profile parameter to 1st option , DD.MM.YYYY , it works fine , could some one throw some light on this issue , any note which could fix this problem ? I tried 1379084 but , it's the same .... Thanks !!

Best Regards,

Srinivas...

3 REPLIES 3
Read only

Former Member
0 Likes
828

works fine in ECC 6.0, NetWeaver 7.01, unless your input value is NOT in proper format MM/DD/YYYY. Verify your input value and try this in se37 test tool.

Read only

0 Likes
828

Perfect , I've checked the program as how the date is being filled before passing it to the FM ... In all the cases ( irrespective of what format the date is set in the profile parameter ) the date is set in the format 03.11.2011

But what I understood from the FM CONVERT_DATE_TO_INTERNAL , if we have the user profile set to 03/11/2011 (2nd option ) we have to pass the date in the same format , if the profile is set to 03.11.2011(1st option) , we have to pass it in the same way , else we get an error .... Thanks a lot for the information , only after your message I checked the code and found the problem by executing the FM in SE37 .... Thanks !!

Best Regards,

Srinivas Gummadi.

Read only

former_member195698
Active Contributor
0 Likes
828

After changing the SU3 Parameters (To MM/DD/YYYY), LOG OFF and LOGIN AGAIN and then try to execute the FM in SE37