Date format in Excel report output
Goodmorning All.
Am using XML publisher for some reports. The current report is in Excel. Everything is fine on this. I want to print the date parameter in 'MON-YY' format.
In the 'Text Form Field' option, I have used the type as 'Regular Text'. In the 'Add Help Text' using the formatting as follows: <?format-Date:P_TO_DATE1;MM/YYYY?>. This seems to send the date parameter '1-Jun-12' as 'Jun-12'. But when it opens in excel, Excel assigns the cell 'Custom' format and type as 'd-mmm-yy' instead of 'mmm-yy'. So the final output still comes in DD-MON-YY format.
I have tried changing the type to 'DATE' and date format to 'MMM-yy' in the 'Text Form Field' option. But still the excel custom format is overriding the final output.
Any suggestions?
Thanks
Z
Hi Alex,
I used the following code in the 'Form field help Text': <?xdoxslt:format_date(P_FROM_DATE1,'MMM-yy','yyyy-MM-dd', 'en-us', $_XDOTIMEZONE)?>
Then I wrote some letters immediately after that and ran the report. When I opened it in excel, Excel assigned format category as 'General' to the output cell. So the output now comes as desired format as 'Jan-12XYZ'.
So it seems, if there will be some additional characters after the dates, then excel does not auto reformat the XML output to the custom date category.
Now the big question; How to do it without the trailing characters i.e. 'XYZ' in the above output. If I remove them, then Excel will again try to custom format the date. I read soemwhere that blank space can be used to append but am not sure how it will be in the code.
By the way in the 'text Form Field Options' I am using type as 'Regular Text'.
Appreciate any help.
Thanks
Z
Similar Messages
-
Hi Experts,
Is there anyway I could print the current date in the YYYY/MM/DD format in the excel report. The format works in a pdf format but in excel the date gets auto converted into MM/DD/YY format. The format-date doesnt work. Please help.
Thanks,
SwarnaHi Gordon,
It took some time for me to verify in the client machine.
I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
04/10/09
04/11/09
13/04/09
14/04/09
19/04/09
(Ignore the *)
I think, the problematic dates seem to be exported to excel in the paste special text format.
Any Idea why this is happening?
Regards,
Mohan
Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM -
Incorrect date format in excel reports
Hi,
Some Activity exported from Activity overview to excel have wrong date format. For example
Some have 21/04/2008 u2013 Correct
Some have 13/04/09 u2013 Incorrect
All the dateu2019s in the database seems to be correct like '2008-04-13 00:00:00.000'.
Client is using SAP B1 2005 SP01 PL-48. Is there any know issue?
I tried the same in B1 2007 upgrading the database. All the date seems to be correct when I export it here.
What may be the reason?
Any suggestions will be appreciated.
Regards,
MohanHi Gordon,
It took some time for me to verify in the client machine.
I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
04/10/09
04/11/09
13/04/09
14/04/09
19/04/09
(Ignore the *)
I think, the problematic dates seem to be exported to excel in the paste special text format.
Any Idea why this is happening?
Regards,
Mohan
Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM -
hi all,
i am using form6i.
i am writing data into excel sheet(using ole2 package). i have one date column among them. The date format in excel should be in 'DD/MM/YYYY'.
In my form i have date format like 'YYYY/MM/MM HH:MI:SS'. so i have converted that column using
TO_CHAR(TRUNC(:date_col),'DD/MM/YYYY').So i am getting output in the format what i need,but still in excel i am seeing data format as 'DD-MM-YY'.
is any conversion is required while writing into excel?
but when i set the excel data format should be in 'DD-MON-YYYY'
i am getting output as '26-JAN-10' but i want output in excel like
'26/JAN/2010'.
Please help.
Thanks..
Edited by: GD on Nov 26, 2011 8:21 PMIf you want the field to be treated like a DATE in excel, you have to set the column-format to DATE and apply the appropiate Format. To get the needed ole-statements, start the macro-recorder, do the changes in excel and then check whats written in the macro and convert it to OLE.
If the field should only be shown as a date, you can put a ' in fornt of the date-value. -
Formating MSA Excel Reports created in MSY
Hello All,
we want to format a excel report, that was created in MSY.
for example we use the Business Query BSACTIVITY with 'from' and 'to' date parameters.
The result is then in the Excle sheet BSACTIVITY.
We have created some programming in the sub "Workbook_BeforeSave"
to copy the data from BSACTIVITY to a new sheet called Calender.
When we run the report creation a second time, the data is written to the same file again, but is not creating a new workbook.
Has anyone experience with the formating of those excelreport ?
We run CRM 40 SP 09.
Thank you for your help.
Best reagards
FrankHi,
I just want to push this topic.
For me it's the same problem. I want to format a Excel report which was created in MSY.
How can it be done to save the customized design of the excel sheet? Is it possible to save the design in MSY or is it necessary to create an excel makro?
Thanks in advance!
Regards,
Christian -
How to Create MultiSheet Excel Report Output in XML Publisher in Oracle R12
Dear All,
How to Create MultiSheet Excel Report Output in XML Publisher in Oracle R12.
My Requirement is to develop RTF Template and geneate Excel output in Multiple sheet.
plz guide me on this..
thnx
Khushalplz see
BI Publisher: How to create Multisheet in Single Excel file using Excel Template [ID 1352000.1]
for r12 you can use excel template
i think it more appropriate for excel output -
Is there a way to set a custom date format on a report column? I am trying to use a format mask and it doesn't appear to be working. Maybe someone can spot my mistake:
Query: Hours Worked = Clock_IN - Clock_OUT
Format mask for Clock In/Clock Out - DD-MON-YYYY HH24:MI (from list)
Format mask for Hours Worked column: HH:MI (hand typed)
actual display (Timecard ID is edit link):
Timecard Employee Vehicle Clock IN Clock OUT Hours Worked
6 20044 26045 30-JUN-2006 13:28 30-JUN-2006 13:31 +000000000 00:03:43.000000
28 20044 144 06-JUL-2006 10:11 06-JUL-2006 10:39 +000000000 00:28:43.000000
48 20044 144 07-JUL-2006 09:03 07-JUL-2006 16:30 +000000000 07:27:50.000000
108 20044 26045 18-JUL-2006 15:35
128 20044 144 19-JUL-2006 14:57 19-JUL-2006 15:02 +000000000 00:05:06.000000These programs also..
GFW_PROG_BAR : Bar chart example
GFW_PROG_PIE: Pie chart example -
Changing date format in bw report
Hi,
Could anybody pls Explain How can I change date format in bw report from 19-03-2008 to 19 mar 2008.Is there any setting we need to do. Else do i need to write some ABAP code to get desired format.
Regards,
SarathHi Sarath,
I could have the routine enabled and its wrk for my DATS obj ...
else pls go through the following code
Check this example of how to get this format..
TABLES: T247.
DATA: V_DATE TYPE SYDATUM.
DATA: V_STRING(20).
V_DATE = SY-DATUM.
SELECT SINGLE * FROM T247
WHERE SPRAS = SY-LANGU
AND MNR = V_DATE+4(2).
IF SY-SUBRC = 0.
CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)
INTO V_STRING.
WRITE: / V_STRING.
ENDIF.
or make use of the routine make use of the FM
CONVERSION_EXIT_IDATE_OUTPUT
hope it helps you out...
regards,
pradeep
Assign points if useful. -
Application Date Format in Interactive Reports
Hi,
What should we define in Number/Date Format in interactive reports column attributes such that it will use application level date format?
ThanksHi,
You do not need define anything , then it use application date format
Br,Jari -
Controlling the data formatting in excel using jsp.
Hi,
How to controlling the data formatting in excel using jsp with out using external jar files such as "jexcel" and "POI". And one more limitation is that it should be compatible with java 1.2.1dineshniot wrote:
Hi - Is there any possibility to automatically display the chart for the logged datas using write to measurement file or write to data file? Please let me know as soon as possible.
Thanks and Regards,
Dinesh
As an aside, "data" is already a plural. The singular is "datum."
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all. -
XML Publisher - how to make column as date format in excel output
Hi,
I am having a XML publisher report , output is excel format. There are some date fields in reports, which are being displayed as "General" type in excel.
Any way to restrict it in Date type only.
Please explain the solution in detail. I am using rtf template.
Regards
SandeepHi Sandeep,
I have the same issue. After looking at a lot of replies from various blogs, some suggest to use this format in your rtf.It did not work for me. You could try this and check if it works for you.
<?format-date:datefied;’yyyy/MM/dd’?> where the format can be specific to your use. -
HI guys
i got two obiee server running in our env . both are identical . on one server when ever we rite any report with date column in it it comes up with dd/mm/yyyy output on another server if we right any report all the date column comes with dd mon yyyy format .. i want both of them should show date like dd mon yyyy format .. i checked all the conf files are both are looking same still not able to figure out where should i change for this to work .
please let me know if you need more info from my end.
Regards,
DevHI Kishore
Thanks for your reply i checked all the things but with no success. do think there could be any other place where i should check .
1. nqsconfig date format
its same for both the two installations
DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;
DATE_DISPLAY_FORMAT = "yyyy/mm/dd" ;
TIME_DISPLAY_FORMAT = "hh:mi:ss" ;
2. make sure that you didn't save date format in column properties from front-end
Just checked and we havan't saved anything in column properties .. even i created new report as well but still format was same ..
3. Did you mention anything in connection pool settings to set date format.
no we havan't mention anything in connection pool
4. Make sure that you are connecting to same database, and date format set for date is same here and there
yahh both the two installatiosn are connected to same database .. but not sure about "date format set for date is same here and there
" hw i can check this
finally, check this: http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
no its not on one column .. its to all the date format columns on all the reports .. so i think its not case with me .
please let me know if you need more info
Regards,
Dev -
We do see different behaviour of date fields in exported Excel files and are not able to clearly identify why this happens.
And even after reading through dozens of documents, web pages and forum posts it is still not clear how this should work.
The questions are quite simple:
Can we expect that dates in exported Excel files (exported from for example the ActiveX viewer) will be formatted as per the format set during the design of the Crystal report or will it follow the Regional Settings on the PC where it is exported?
If it does not follow the Regional Settings is there any 'easy' way to accomplish that?
Thanks and regards, StigBut I do not know what gave you the impression that there is any SDK or any development going on here.
1) ActiveX is used in one of two scenarios:
a) COM SDK
b) BusinessObjects Enterprise
Never in the CR designer... Not sure why you'd place a question that in your mind clearly concerns BusinessObjects Enterprise into the Report Design forum. That was most certainly an incorrect forum by the above definition...
2) Given the info you provided, I had a 50% chance of being correct about SDK...
3) Since you are using BusinessObjects Enterprise ActiveX and have a question on that, you want to pose the query to the correct forum, which is [SAP BusinessObjects Enterprise/Edge, and SAP Crystal Reports Server Administration|BI Platform;.
Re.
Our question is just a simple question related to using the standard export function via the export button in the ActiveX viewer.
- Trust me, in light of my guess re SDK, your question was not "simple"...
- Ludek -
Implicit date format conversion of report column
Hello,
The following expression defines date format for report column implicitly and doesn't reflect FSP_LANGUAGE_PREFERENCE with language independent format mask of the column attribute anymore:
decode(end_date, to_date('31.12.2047', 'dd.mm.yyyy'), null, end_date) closed
end_date is of TIMESTAMP(0) WITH LOCAL TIME ZONE type, format mask of the column attribute: DS TS
Is it expected behavior?
ThanksEdward Shevtsov wrote:
Hello,
The following expression defines date format for report column implicitly and doesn't reflect FSP_LANGUAGE_PREFERENCE with language independent format mask of the column attribute anymore:
decode(end_date, to_date('31.12.2047', 'dd.mm.yyyy'), null, end_date) closed
end_date is of TIMESTAMP(0) WITH LOCAL TIME ZONE type, format mask of the column attribute: DS TS
Is it expected behavior?
ThanksThe reason might be that you compare different datatypes in the SQL statement. The output of decode depends on those parameters.
You can cast the column to a specific datatype or you make sure that your wanted datatype is used during the decode.
example
decode(end_date, to_timestamp_tz('31.12.2047', 'dd.mm.yyyy'), null, end_date) closed
or
cast(decode(end_date, to_date('31.12.2047', 'dd.mm.yyyy'), null, end_date) as timestamp(0) with local time zone) closed -
Display date prompt in crystal report output
Hi There,
In my report output the values entered in date prompt(range) is not displayed.
I've prompt that is created on document created on field. The properties of prompt are
Posting date...... date.........static values
value field : ERDAT.....
value options:
optional prompt: false
allow custom values: true
allow multiple values : false
allow discrete values: false
allow range values: trueHi Raj,
I believe you're trying to display the start date and the end date of the date range parameter.
Create a formula called 'start':
Minimum(?Postingdate) //This formula extracts the start date from the date parameter
Similarly, create another formula called 'end':
Maximum(?Postingdate) //This extracts the end date
Place these formulae on the desired report section.
P.S: You may even do this in a single formula.
Hope this helps!
-Abhilash
Maybe you are looking for
-
How can I see how many songs in my playlists?
Is there a way to see the total number of songs in my playlists?
-
My 4 year old was on the computer & now my Itunes can't be found
My 4 year old was on my IMAC playing computer games. I left the room to do some things around the house & when I came back she had all my desk top items off of the desk top & all kinds of weird windows opened. What I was really concerned about was th
-
Analog distortion and digital's lack thereof
Djokes wrote: "analog is distorting - without a doubt - tape decks were like compressors in a way and that is what being simulated by e.g. mcdsp or crane song... However, using no eq or tape deck - the distortion is minimal.... but analog is distorti
-
Problem with Trackpad on OSX Lion
I just downloaded the OSX Lion. After 5 miutes of enjoying the new features, I undesrstood that I can't open the files on my desktop with 2 clicks. The same goes for my documents. I have to click 3 times in order to run them. All my work is on this c
-
Facebook App On Curve 9360 Not Working Help Required
Hey all recently purchased the new Blackberry Curve 9360 as a early xmas present from my parents... I've upgraded from the old curve 83??... I had facebook running perfectly on it and also had 'facebook messenger' which would send PM to a separate ap