Oracle-Developer.com Forums
A forum for discussing and sharing information about Oracle technologies
 

Navigation: Home  | Discussion Forums  |  Scripts  |  About Us  | Links  | Job Openings  | Blog  
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Email your Oracle questions to webmaster@oracle-developer.com to get Oracle 11g or Oracle E-Business expert advice.

Date Value Sets from Apps causing problems

 
Post new topic   Reply to topic    Oracle-Developer.com Forums Forum Index -> Oracle Apps 11i E-Business Suite
View previous topic :: View next topic  
Author Message
vj.jain
Site Admin


Joined: 10 Aug 2007
Posts: 86

PostPosted: Thu Sep 20, 2007 7:04 pm    Post subject: Date Value Sets from Apps causing problems Reply with quote

When defining dates for Flexfields, the value set is important. If you plan to view and manage the field from the form, then you should probably use FND_STANDARD_DATE. But if you are building a database application that accesses this field from the back-end, you will need to be mindful that you convert the flex field value appropriately.

Possible Symptoms of a date conversion error are:
ORA-01861:literal does not match format string.
ORA-01843: not a valid month

FND_STANDARD_DATE from the back-end is YYYY/MM/DD HH24:MI:SS while the Oracle database native is DD-MON-YYYY

Therefore if you tried to do a select to_date('20-SEP-2007') from dual, it works fine.

But if you try to do a select to_date('2007/09/20 12:01:02') from dual, you will get the following error -> ORA-01861: literal does not match format string

Make sure you do the type conversion when accessing fields from Oracle apps tables that are FND_STANDARD_DATE to avoid this error.

Alternatively, if this flex field is only for back end use and will not be displayed, you can use the value set of "Date" to avoid doing type conversions.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Oracle-Developer.com Forums Forum Index -> Oracle Apps 11i E-Business Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sponsored by Oracle Consulting

Copyright ©2007 Oracle-Developer.com