Date Format issue in xml publisher
Hi,
I have a date column with the format of 'DD-MON-YY' in database. When i try to fetch this column value thro' sql query in xml publisher with data template, its giving the column value as '2007-01-01T00:00:00.000-08:00'.
Now i want to convert '2007-01-01T00:00:00.000-08:00' format value to 'DD-MON-YY'.
Can anyone please help me out to solve this problem to convert given date format to required date format.
Regards,
Sadanand
Hi,
when you have a date column in the database, than the format is not 'DD-MON-YY' .
'DD-MON-YY' is the default representation as string of a date column in your database and could be different in others (defaults are set depending the NLS-Settings).
If you use rtf-templaes you had to say the form-field, that the type is date and then you can set your format mask. Per default even date fields are represented in rtf-templates as type regular text, and so the default for date columns contains every informationn of a date column.
Regards
Rainer
Similar Messages
-
Number format issue in XML Publisher from OAF (',.' is replaced by 'u n')
Hi All,
I am facing a problem in XML Publisher report. In report I need to display some number fields with 'USD' format. In RTF, data type 'Number' and format '###,##0.00' is selected. If I run concurrent program from oracle core forms using System Administrator > Concurrent > Request, I am able to get correct number format.
Ex : 123456.00 After Number format : 123,456.00
Also its working fine from XML Publisher Administrator responsibility (using Preview).
But problem is when I submit the concurrent request through OAF, I am not getting correct data. ',' is replace by 'u' and '.' is replace by 'n'.
Ex: 123456.00 In Report 123u456n00
Checked profile value : ICX: Numeric Character and its set to 1,000.00 at site level.
Do I need to set character set anywhere in OAF before calling concurrent program?
I tried to use "alter session set nls_numeric_character = ',.';" by calling stored procedure from OAF. But still its not working.
Please give me solution for this.
Regards,
SadanandHell - I am running into the same issue? Did you guys find a resolution for this? Please let me know, would really appreciate your help.
Thanks,
Dhiraj
[email protected] -
Sort Date format in Oracle XML Publisher
Hi All,
I have a requirement like trx_date sort. i have taken trx_date in dd-mon-yyyy format. now i given sort option like this..
<?for-each:G_TRX_ORDER_NUMBER?><?sort:TRANSACTION_TYPE?><?sort:DUE_DATE;'ascending';data-type=date?> <?sort:TRX_NUMBER?>
now i have 3 dates
07-NOV-10
20-MAY-11
20-DEC-10
using above sort option.. this dates are not coming as per the ascending order.
Can any one tell me what i have to ?
ThanksWhat is your application release?
Does the sort work for other data types?
What if you change "<?sort:DUE_DATE;'ascending';data-type=date?>" to "<?sort:DUE_DATE;'ascending';data-type='date'?>", does it make any difference?
Few examples about the sort can be found in these docs/links.
How to Group Data Dynamically at Runtime in a BI/XML Publisher RTF Template? [ID 1062816.1]
Sorting Data In eText Template [ID 1263511.1]
Oracle XML Publisher User's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
Thanks,
Hussein -
Hi all,
Has anyone seen the following error please or has a troubleshooting hint: -
"[NT AUTHORITY\SYSTEM (15/10/2012 18:35:12) - Service request cancelled due to an error.
Error Code: 10000
Error Description: Failed to create lease requisition.
Fault code: soap:Server
Fault string: Service Form Field: 'WarningDate2' has Date format issue.
Fault details: REQ_0024Service Form Field: 'WarningDate2' has Date format issue.
CIAC = 3.01
Date and Time format on the CCP, CPO, vmware and SQL servers all Italian (dd/mm/yy)
This only happens when we add a Lease Time on the request.
Do they all have to be set to the US format for this to work?
If this is a regional setting thing, do I have to change the format on all of the servers (CIAC components)?
Cheers
mdThis test program might help...
import java.util.*;
import java.text.*;
public class ExpandYear
public static void main(String[] args) throws ParseException
SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
String test1 = "3/21/00";
System.out.println("test1: " + test1 + " to : " +
sdf_4dyear.format(sdf_2dyear.parse(test1)));
String test2 = "4/9/99";
System.out.println("test2: " + test2 + " to : " +
sdf_4dyear.format(sdf_2dyear.parse(test2))); -
Issue with Date format - ABAP to XML
Dear Users,
We are currently facing an issue with the date formats in XML.
We have a system (.Net), which has a webservice that we are calling for information from SAP. We created a Proxy class in SAP from the WSDL file and have attempted to use the method that gets us required information based on the Timestamp passed from SAP. However, the timestamp that the INPUT structure uses has a data element XSDDATETIME_Z.
All we can send from SAP is a simple TIMESTAMP, but the .Net system doesn't accept it since it wants the timestamp in XML format i.e. <dd-mm-yyyy>T<hh:mm:ss>Z. SAP documentation says that the field should automatically do conversion from ABAP to XML format, but that doesn't happen. We don't want to build a string from Timestamp in the XML format and send it out since we might surely miss out on the different cases involved.
Can anyone please suggest a way for us to send the date out in the required XML format?
Many thanks!Hi Vijay,
Look at the below sample code and it works fine, i guess there is something wrong in your code or conversion, post the actual code if you are still not able figure it out with the below example.
DATA: l_xml_string TYPE string,
l_dat_time TYPE xsddatetime_z.
CALL FUNCTION 'CACS_DATE_GET_TIMESTAMP'
EXPORTING
I_DATE = sy-datum
I_TIME = sy-uzeit
IMPORTING
E_TIMESTAMP = l_dat_time
EXCEPTIONS
DATE_NOT_FILLED_BUT_TIME = 1
DATE_HAS_NO_VALID_FORMAT = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL TRANSFORMATION id
SOURCE root = l_dat_time
RESULT XML l_xml_string.
IF sy-subrc EQ 0.
write: l_xml_string.
ENDIF.
Regards,
Chen -
SSIS XML task date format issue
Hi, there;
I created an SSIS package XML task to import customer XML data. The LocaleID is set to "New Zealand"
I have an xml file which has date fields as attribute (dd/MM/yyyy). I created this package and run it in an .NET console program.
The interesting thing is that: when I run under my own windows account, I can import data into SQL properly (dd/MM/yyyy), but when I run it as scheduled task (under another special windows account) it gives America format (MM/dd/yyyy).
What I found is that my personal account in AD is set to New Zealand, the special windows account given by the infrastructure engineer
is set to "default" which is American user.
So, my question is that is there any way/something we can set in the package or
XSD somewhere to tell SSIS what the source date format is rather then controlled by the "AD account"?. The reason is that imagine that
if I have 2 XML files from different clients, one is New Zealand date format(dd/MM/yyyy), another one is American date format (MM/dd/yyyy), I want same package (NOT same XML task) to import 2 XML files with result in New Zealand format.
Thank you in advance.
Cheers
Robert
qiuweiHi Robert,
Based on your description, there are two scenarios:
You want to format the XML file column date with dd/MM/yyyy or MM/dd/yyyy format to dd/MM/yyyy. In this scenario, we can use Derived Column Transformation to convert the MM/dd/yyyy format to dd/MM/yyyy format for the American XML task, then use the new
column maps to the corresponding Destination column. The following expression is for your reference:
LEFT(RIGHT(Column,7),2) + "/" + LEFT(Column,2)+"/"+ RIGHT(Column,4)
The XML file data already import to SQL table, different country people view the data with different date format. Please note that a datetime column is stored as binary in database, the display format is related to the SSMS server. For more details, please
see the following KB:
INF: How to Set the Day/Month/Year Date Format in SQL Server
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Date format issue in Web Analysis...
Hi,
I am creating a report by connecting to a couple of relational tables. I'm using SQL Spreadsheet and SQL Subscription objects. I'm creating a Date filter using SQL Subscription object (list box) using the data source created by the SQL Spreadsheet. My database default date format is 'DD-MON-YYYY'. But in the list box it shows as 'YYYY-MM-DD HH24:MI:SI". When this value is selected, I get a "Literal mismatch error" since it doesn't match with the value stored in the database.
Why the format in WA is showing in this format even though it is fetchting it from my database in which the format is 'DD-MON-YYYY'. Is this related to WA date format settings? I cannot find anywhere in WA studio where I can set date formats. Is this something to be set in the server or webanalysis.properties file?
PS: I tried to work around this by storing the date value as character in the database but then I am not able to sort them ascending or descending order.I also tried creating the web analysis relational database connection which creates a virtual cube. But even there when I build the report using Data Source Navigator, it is showing date in 'YYYY-MM-DD HH24:MI:SI'.
HHi,
Let me provide you the details of the report.
A concurrent program has been created with executable as XDODTEXE (XML publisher report).
In the data definition, we have embed one query which fetches transaction date and due date from some tables based on some conditions.
Now, we have to show these date columns in report output which will be in EXCEL format.
We want these date outputs to be printed in dd/mm/yyyy format. That is the reason we had given-
TO_CHAR(TO_DATE (SUBSTR(transaction_date,1,10), 'DD/MON/RRRR'),'DD/MM/RRRR') in the SQL query.
Problem in output is- In date columns, data after 12th is fine i.e. in format dd/mm/yyyy, it is printing properly.
But before 12th, it is printing in format mm/dd/yyyy as mentioned below-
01/10/2012--wrong format, it should be 10/01/2012
01/11/2012--wrong format, it should be 11/01/2012
01/12/2012--wrong format, it should be 12/01/2012
13/01/2012--correct format (dd/mm/yyyy)
14/01/2012--correct format (dd/mm/yyyy)
How can i send you the attachment, is there any way/any email id?
Rgds-
Sumir -
Data is repeating in xml publisher report
Hi,
We desinged the orcle xml publisher report.
When we are running the report, the address infromation is repeating in every page.
We have not mentioned any where the for each logic.
Can any one help me on this issue.
We designed the report as 'rdf data mocel' and designed and rtf for this.For 11i, pl see the XML Publisher User Guide at http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html on how to achieve this
HTH
Srini -
SAP Business Objects 4.1 - American Date Format Issue
This issue is something that keeps arising, if your viewing a crystal report, or building a new Webi report in 4.1 and viewing it, the date format seems to come out as M/D/YYYY HH:MM:SS, this never happened in 4.0.
I will give an example, today I updated a 4.0 to 4.1 using the update path in a development server, and updated to 4.1 SP03 which is the latest. When I decided to write a Web Intelligence Report or create a Crystal report and publish this, all the date formats came out in American date format, and not the standard English one DD/MM/YYYY HH:MM:SS anymore. However if I go to the Live server which I haven't yet updated and is still on 4.0 SP04 Patch 11 and perform exactly the same its in English format as it always was.
Can someone please enlighten me to what has changed from 4.0 to 4.1 in terms of configuration regarding the date formats changing.
My server regional settings are English, and using the default GMT date time, so is my machine. 4.0 works 4.1 doesn't work the same.
I have tried changing the .prm files in the connectionserver\dataaccess folder as well, this doesn't seem to make a difference and also used LOV's in universe objects and when using these in prompts you get ameican format. I have also changed the preferences in the BI Launch Pad to view English locale and the GMT date time for Greenwich Mean Time.
Please can someone advise or suggest where I am going wrong here and how to solve this.
Many ThanksThanks for your quick response. I have done the check on the universe design tool. I have tried the options - Migration forced and set English (UK). I purged the LOVs and refreshed. No luck as yet. Checked the locale and seems to be fine. When i change the BI launchpad - Web Intelligence preferences to HTML, then the LOV displays correctly - dd/mm/yyyy. The behaviour only occurs when displaying LOV in Applet mode. Maybe will have to look at some Java settings. Thanks
Added Update- I created a variable =GetPreferredViewingLocale() and tested in WEBI Report with a date object. When I use the BI launchpad Web intelligence Preference to HTML - it display EN_GB. When I use the BI launchpad Web intelligence Preference to Applet - it display EN_US. It seems to be taking preferred viewing locale as US in applet mode is there a way to fix this please.
Added Update - It was a bug on Infoview and has been resolved on SP4 . The ADAPT Ref is ADAPT01718291. Just finished testing on UAT, going Live next week with SP4. -
We are using XMLP 5.0 with E-business apps. I have a correct formatted date with (YYYY-MM-DD). When I try to format this date in the template to give me (MMMM d, yyyy) I get one day off the actual date (i.e, the correct date is December 2, 2005, after formatting I get December 1, 2005). Does anyone know why that is? Can anyone help please?
Thanks
MoHi Nitin,
Thank you for your response. I tried both solutions that you suggested; unfortunately they didn't work for me. First solution gives the same results (one day off). When I tried the second Solution
<?format-date:INC_DATE;'MMMM DD, YYYY'?>
I got this error:
Font Dir: C:\Program Files\Oracle\XML Publisher\Template Builder\fonts
Run XDO Start
setLocale: en
org.xml.sax.SAXException: element xdofo:format-date is not supported yet.
at oracle.apps.xdo.template.fo.FOHandler.startElement(FOHandler.java:117)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:266)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:959)
at RTF2PDF.runRTFto(RTF2PDF.java:535)
at RTF2PDF.runXDO(RTF2PDF.java:438)
at RTF2PDF.main(RTF2PDF.java:217)
Any idea?
By the way we are using XMLP 5.0.
Thanks
Regards
Mo -
Date Parameter Issue in XML Report
Hi,
I have developed a custom report using xml data definition, but it returns an error when running with date parameters.
I have given the parameters like this..
<?xml version='1.0' encoding='windows-1252'?>
<dataTemplate name="XXX_REP" description= "XXX Report">
<properties>
<property name="xml_tag_case" value="upper"/>
</properties>
<parameters>
<parameter name="P_ORG_ID"/>
<parameter name="P_DIFFRENCE"/>
<parameter name="P_FROM_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
<parameter name="P_TO_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
<parameter name="P_FROM_SO"/>
<parameter name="P_TO_SO"/>
</parameters>
<lexicals></lexicals>
<dataQuery>
<sqlstatement name="Q1">
--- />
Error -
XDO Data Engine Version No: 5.6.3
Resp: 21623
Org ID : 84
Request ID: 670920
All Parameters: P_ORG_ID=:P_DIFFRENCE=BREIF:P_FROM_DATE="2013/03/01 00:00:00":P_TO_DATE="2013/03/28 00:00:00":P_FROM_SO=:P_TO_SO=
Data Template Code: XXX_REP
Data Template Application Short Name: ONT
Debug Flag: N
{P_FROM_SO=, P_TO_SO=, P_TO_DATE=2013/03/28 00:00:00, P_DIFFRENCE=BREIF, P_FROM_DATE=2013/03/01 00:00:00, P_ORG_ID=}
Calling XDO Data Engine...
--SQLException
java.sql.SQLDataException: ORA-01830: date format picture ends before converting entire input string
Please help me to solve this issue?
ThanksPlease find the sql query,
<?xml version='1.0' encoding='windows-1252'?>
<dataTemplate name="XXX_REP" description= "Free Issue Audit Report">
<properties>
<property name="xml_tag_case" value="upper"/>
</properties>
<parameters>
<parameter name="P_ORG_ID"/>
<parameter name="P_DIFFRENCE"/>
<parameter name="P_FROM_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
<parameter name="P_TO_DATE" dataType="date" format="RRRR/MM/DD HH24:MI:SS"/>
<parameter name="P_FROM_SO"/>
<parameter name="P_TO_SO"/>
</parameters>
<lexicals></lexicals>
<dataQuery>
<sqlstatement name="Q1">
<![CDATA[
SELECT tb2.name "OPR_UNIT",
tb2.org_id "ORG_ID",
tb2.header_id "HEADER_ID",
tb2.order_number "ORDER_NUMBER",
tb2.line_number "LINE_NUMBER",
tb2.segment1 "ITEM",
tb2.description "ITEM_DESC",
tb2.ordered_date "ORDER_DATE",
tb2.ordered_quantity "ORDER_QTY",
free_qty "FREE_QTY",
(tb2.ordered_quantity - tb2.free_qty) "DIFFRENCE"
FROM (SELECT tb1.name,
tb1.org_id,
tb1.header_id,
tb1.line_id,
tb1.order_number,
tb1.line_number,
tb1.segment1,
tb1.description,
tb1.ordered_date,
tb1.ordered_quantity,
--xt.free_quantity "FREE_QTY",
(SELECT XX_FREE_ISSUE_DISC_REP (oll.header_id, oll.line_id)
FROM oe_order_lines_all oll
WHERE oll.header_id = tb1.header_id
AND oll.inventory_item_id = tb1.inventory_item_id
AND unit_selling_price != 0 -- and oll.shipping_instructions is null
free_qty,
-- (tb1.ordered_quantity - xt.free_quantity) "DIFFRENCE",
tb1.inventory_item_id
FROM xx_free_issue xt,
(SELECT ou.name,
oh.org_id,
oh.header_id,
oh.order_number,
ol.line_id,
ol.line_number,
it.segment1,
it.description,
ol.ordered_quantity,
TO_CHAR (oh.ordered_date, 'DD-MON-YYYY') ordered_date,
ol.inventory_item_id,
ol.shipping_instructions
FROM oe_order_headers_all oh,
oe_order_lines_all ol,
hr_all_organization_units ou,
mtl_system_items_b it
WHERE oh.header_id = ol.header_id
AND oh.org_id = ou.organization_id
AND ol.inventory_item_id = it.inventory_item_id
AND ol.ship_from_org_id = it.organization_id
-- AND ol.price_list_id = 6007 --Free Issues
AND ol.shipping_instructions = 'Free Issue'
--AND oh.order_number = '1001385'
) tb1
WHERE TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
NVL (
xt.effective_date_from,
SYSDATE))
AND TO_DATE (
NVL (
xt.effective_date_to,
SYSDATE))
AND tb1.inventory_item_id = NVL (xt.item_id, xt.free_item_id)
AND TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
NVL (
:P_FROM_DATE,
tb1.ordered_date))
AND TO_DATE (
NVL (
:P_TO_DATE,
tb1.ordered_date))
AND tb1.header_id BETWEEN NVL (:P_FROM_SO, tb1.header_id)
AND NVL (:P_TO_SO, tb1.header_id)
AND tb1.org_id IN (:P_ORG_ID, tb1.org_id)) tb2
where (tb2.ordered_quantity - tb2.free_qty) = decode(:P_DIFFRENCE ,'DETAIL',(tb2.ordered_quantity - tb2.free_qty))
union
SELECT tb2.name "OPR_UNIT",
tb2.org_id "ORG_ID",
tb2.header_id "HEADER_ID",
tb2.order_number "ORDER_NUMBER",
tb2.line_number "LINE_NUMBER",
tb2.segment1 "ITEM",
tb2.description "ITEM_DESC",
tb2.ordered_date "ORDER_DATE",
tb2.ordered_quantity "ORDER_QTY",
free_qty "FREE_QTY",
(tb2.ordered_quantity - tb2.free_qty) "DIFFRENCE"
FROM (SELECT tb1.name,
tb1.org_id,
tb1.header_id,
tb1.line_id,
tb1.order_number,
tb1.line_number,
tb1.segment1,
tb1.description,
tb1.ordered_date,
tb1.ordered_quantity,
--xt.free_quantity "FREE_QTY",
(SELECT XX_FREE_ISSUE_DISC_REP (oll.header_id, oll.line_id)
FROM oe_order_lines_all oll
WHERE oll.header_id = tb1.header_id
AND oll.inventory_item_id = tb1.inventory_item_id
AND unit_selling_price != 0 -- and oll.shipping_instructions is null
free_qty,
-- (tb1.ordered_quantity - xt.free_quantity) "DIFFRENCE",
tb1.inventory_item_id
FROM xx_free_issue xt,
(SELECT ou.name,
oh.org_id,
oh.header_id,
oh.order_number,
ol.line_id,
ol.line_number,
it.segment1,
it.description,
ol.ordered_quantity,
TO_CHAR (oh.ordered_date, 'DD-MON-YYYY') ordered_date,
ol.inventory_item_id,
ol.shipping_instructions
FROM oe_order_headers_all oh,
oe_order_lines_all ol,
hr_all_organization_units ou,
mtl_system_items_b it
WHERE oh.header_id = ol.header_id
AND oh.org_id = ou.organization_id
AND ol.inventory_item_id = it.inventory_item_id
AND ol.ship_from_org_id = it.organization_id
-- AND ol.price_list_id = 6007 --Free Issues
AND ol.shipping_instructions = 'Free Issue'
--AND oh.order_number = '1001385'
) tb1
WHERE TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
NVL (
xt.effective_date_from,
SYSDATE))
AND TO_DATE (
NVL (
xt.effective_date_to,
SYSDATE))
AND tb1.inventory_item_id = NVL (xt.item_id, xt.free_item_id)
AND TO_DATE (tb1.ordered_date) BETWEEN TO_DATE (
NVL (
:P_FROM_DATE,
tb1.ordered_date))
AND TO_DATE (
NVL (
:P_TO_DATE,
tb1.ordered_date))
AND tb1.header_id BETWEEN NVL (:P_FROM_SO, tb1.header_id)
AND NVL (:P_TO_SO, tb1.header_id)
AND tb1.org_id IN (:P_ORG_ID, tb1.org_id)) tb2
where (tb2.ordered_quantity - tb2.free_qty) != decode(:P_DIFFRENCE ,'BREIF',0)
ORDER BY 4,5 --tb2.order_number, tb2.line_number
]]>
</sqlstatement>
</dataQuery>
<dataStructure>
<group name="G1" source="Q1">
<element name="OPR_UNIT" value="OPR_UNIT"/>
<element name="ORG_ID" value="ORG_ID"/>
<element name="HEADER_ID" value="HEADER_ID"/>
<element name="ORDER_NUMBER" value="ORDER_NUMBER"/>
<element name="LINE_NUMBER" value="LINE_NUMBER"/>
<element name="ITEM" value="ITEM"/>
<element name="ITEM_DESC" value="ITEM_DESC"/>
<element name="ORDER_DATE" value="ORDER_DATE"/>
<element name="ORDER_QTY" value="ORDER_QTY"/>
<element name="FREE_QTY" value="FREE_QTY"/>
<element name="DIFFRENCE" value="DIFFRENCE"/>
</group>
</dataStructure>
</dataTemplate>
Thanks -
Date format issue in oracle database
Hi,
Back end : Oracle 11.2.0.2.0
Front end : Forms 11g
In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
The Nls_date_format parameter at database level is set as 'DD-MON-RR'
Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
pls help us to solve the issue.
Regards.
sathish k892913 wrote:
Hi,
Back end : Oracle 11.2.0.2.0
Front end : Forms 11g
In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
The Nls_date_format parameter at database level is set as 'DD-MON-RR'
Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
pls help us to solve the issue.
Regards.
sathish kWell the solution is right in front of you. As you say, your database environment is set to DD-MON-RR so your database is set to use 2 digit years (something most people moved away from with the millenium bug more than 10 years ago now). You can either change all your code to use RRRR as you've found, or change your database NLS setting to DD-MON-RRRR and change your front end application to pass you a date with 4 digit years so you get e.g. '20-dec-2009'.
So many people worked hard to resolve the millenium bug issues all those years ago, but still we have people, all these years later, who want to reintroduce the problem. So sad. -
EXCEL output logo issues in XML Publisher
Hi,
We are using XML Publisher API to generate PDF,EXCEL outputs using Template. While adding image to the template its showing in the pdf output. But not showing in the Excel output. Then i added url:{/Image} in the alt text of the image in template and submitted the report again now able to see the image in excel output. Can you please tell me why its not showing the image in excel by default which is right happening in case of PDF. Iam getting the same issue for HTML outputs generation also. Please tell me what i can do to get the image by default same as the way i am getting in PDF.
Thanks
SatyaHi Alex,
Thanks for your suggession.
I have two OAF versions and i found the xml publisher version from the below java file
$OA_JAVA/oracle/apps/xdo/common/MetaInfo.class
in both 11.5.10 and 12.1.1 OAF versions i am seeing the below line of code
public static final String VERSION = "Oracle XML Publisher 5.6.3";
when i login to the application and went to the About this page option available there
in 11.5.10 i got to see that the version
is XML Oracle XDK Java 9.0.4.0.0 Production
in 12.1.1 version
XML Oracle XML Developers Kit 10.1.3.130 - Production
But as per your seggession from the MOS document 736897.1, i came to know that it is an issue in 5.6.3
Can you please tell me how to find out my xml publisher version in different EBS versions.
I am using Office 2007.
Finally,
in the document i can see that
Applies to:
*BI Publisher (formerly XML Publisher) - Version 11.5 to 12.1 [Release 11.5 to 12.1]*
Information in this document applies to any platform.
Means this issue is not fixed even in 12.1.3.
To resolve this issue,do we need to do the manual image setup like the way menioned in the document 736897.1?
Thanks
Satya -
Issue in XML Publisher Bursting
Hi,
I am using XML Publisher bursting feature to send the output of report as email to the customer.
I have uploaded Data Template and Bursting control file in XML Publisher Data Defination and ran the report.
The report output generating but the bursting feature is not working.
I couldn't able to figure out what is the exact problem b'coz I m not getting any error.
Is there any setup need to be done? or what might be the reason behind this?
Please suggest.
I am using following code in bursting control file,
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" >
<xapi:request select="/BURSTTEST/LIST_G_APPLICATION_ID/G_APPLICATION_ID">
<xapi:delivery>
<xapi:email server="[email protected]" port="25" from="[email protected]" reply-to ="[email protected]">
<xapi:message id="123" to="[email protected]" attachment="true" subject="Profile Option Details">
Please review the attachment for this message.
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="Profile Option Details Report" output-type="excel" delivery="123"><!--Deliver to printer and email -->
<xapi:template type="rtf" location="xdo://XXCUST.Profile.en.00/?getSource=true"><!--Default template to be used -->
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
Thanks & Regards,
SagarikaHi Kavipriya,
Thanks
I set defaultPackage of data template header and the XML Bursting program get fired.
But XML Bursting program erroring out and I m getting following error.
How to resolve this please suggest.
[110410_054027569][][EXCEPTION] java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at oracle.apps.xdo.oa.cp.CPUtil.setProperty(CPUtil.java:67)
at oracle.apps.xdo.oa.cp.CPUtil.getSessionProperties(CPUtil.java:45)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:84)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
XML/BI Publisher Version : 5.6.3
Request ID: 4842838
All Parameters: Dummy for Data Security=N:ReportRequestID=4842836:DebugFlag=Y
Report Req ID: 4842836
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:AMSGURBLUAPP009
Preparing parameters
null output =/u01/oracledb/VIS/inst/apps/VIS_amsgurbluapp009/logs/appl/conc/out/o4842838.out
inputfilename =/u01/oracledb/VIS/inst/apps/VIS_amsgurbluapp009/logs/appl/conc/out/o4842836.out
Data XML File:/u01/oracledb/VIS/inst/apps/VIS_amsgurbluapp009/logs/appl/conc/out/o4842836.out
Set Bursting parameters..
Temp. Directory:/home/devuser
[110410_054030111][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.130 - Production
[110410_054030138][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=IN, user-variable:cp:ReportRequestID=4842836, user-variable:cp:language=en, user-variable:cp:responsibility=20639, user-variable.OA_MEDIA=http://amsgurbluapp009.in.ibm.com:8004/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=4842836, user-variable:cp:locale=en-IN, user-variable:cp:user=OPERATIONS, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=4842838, user-variable:cp:reportdescription=MAN Invoice Burting Test, user-variable:cp:Dummy for Data Security=N}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
ZIP file must have at least one entry
java.util.zip.ZipException: ZIP file must have at least one entry
at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Thanks & Regards,
Sagarika -
Uk date format issue with ASP and Access Database
I have an Asp form which updates records in an Access
database. Problem is
that the date format in the database record is dd/mm/yyyy
(UK), when
the record is displayed on the form it is mm/dd/yyyy(US)
which after I
update the record in the database the date has changed to the
new format.
I have tried everything I can to change the format but to no
avail...anyone any ideas how I can resolve this issue?
Thanks
Stevestevo.s wrote:
> Hi
>
> I have tried changing the format on the date field on
the server behaviours
> panelto ddmmyyy. Also have tried to set the form field
format to ddmmyy. I have
> also tried to use a function I got from a posting
somehwere on the net to no
> avail. <%function ddmmyyyy(varDate)
> ddmmyyyy = Day(DateValue(varDate)) & "/" &
Month(DateValue(varDate))
> & "/" & Year(DateValue(varDate))
> end function
>
> I believe that this is a recognised issue with
Dreamweaver and Access but
> can't seem to grasp the work around! Problem being I am
teaching myself through
> books and internet articles and can be weeks at a time
without being able to
> look at the issue..each time I come back to it it is
like starting all over
> again! I was hoping that somewhere out there there is a
simple solution the
> issue perhaps a date picker with the built in
functionality to address the
> issue...I am keen to understand how to deal with the
issue rather than just
> change my database date field to fudge the problem as I
am in the UK and when I
> eventually start to use the application I would like
there to be some
> consistency with dates and that users are familiar with
the format.
>
> Any help gratefully received!
Its not Dreamweaver, or Access, its your servers locale, its
set to US
format, not the UK.
On your page at the top use:
<% Session.LCID = 2057 %>
This will force the page into using UK formatted dates. Use
it on any
page that needs to format the page correctly.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html
Maybe you are looking for
-
Networked CM2320nf not able to scan when connected to a networked laptop
We have several HP LJ CM2320nf MFP printers on the network. The scanning feature works great when using a standard pc. However, we have found that when using a docked laptop we can not get scan to work. The scan feature does work on the docked lap
-
I have checked other posts of this nature in this forum and the time/date on my computer appears to be valid. This is so frustrating as I even had difficulty in posting this question and had to go on IE in order to access this page, since it required
-
I want to get Star Wars the old republic on my mac.
If I use bootcamp, do I also need to get windows? Or can I just install SWTOR and run it through boot camp? (I am admittedly a novice)
-
Workitems in MSS UWL Inbox.
Hi All, I have an issue in leave request application in MSS tab in UWL on portal.example employee have created two leaves ,those two leaves are visible in Manager's UWL Inbox(MSS).but when click on 1st leave or second leave,any leave request,it is sh
-
Azure ML "Writer" module not working
Hi, I am attempting to use the Writer module to write to SQLAzure on Azure ML. I am able to read from this database fine with the Reader module and using the exact same credentials (servername, login, password, database name, etc) I get an error tha