Display number as Date in report

Hi,
We are getting the date info in the format ddmmyyyy and have to map it in the number field. I want to show this date info in the report as dd/mm/yyyy.
For example, if the date is 10072009 (10th July 2009), it should be displayed as 10/07/2009 in the report.
I tried to
a) CAST the number to string, but that was not allowed.
b) First cast the number to integer and then cast it to character. But when I used RIGHT function to get the last 4 characters, it did not return any values.
Any suggestions how to approach this?
Ady

Hi,
You can do this using CAST and String functions.
Here is an example of the formula- note that I'm using Account Revenue as the base, this can be replaced by any number, integer or currency field:
LEFT(CAST(Account."Annual Revenue" AS CHAR), 2) || '/' || INSERT(SUBSTRING(CAST(Account."Annual Revenue" AS CHAR) FROM 3),3,0,'/')
Refer to the online help for full descriptions and usage of the various functions:
LEFT - clips off the first few characters
INSERT - adds chars to a string
SUBSTRING - clips off the last few characters
CAST - convert from one type to another
|| - double pipe is concatenation
Your error may have been trying to Cast to String - there is no "String" type, CHAR serves the same purpose.

Similar Messages

  • How to display an HTML data which contains images in CR

    Hi Experts,
    I have a HTML file which contains images and text. I will store all this data in to the database as binary data(SQL server 2008). How can I display the whole  data in report.
    Thanks in advance,
    Salah

    hello all,
    most times when HTML is stored in a database there are many tags that will not work. the tags that will work are very basic and limited to the formatting types that you can do within a Text Object...so not much.
    if you need all of the HTML from a database interpreted, you need to activate pass-through html on your system. then if you put the field into a formula (one line in height) the HTML should be properly displayed. for more info on activating pass-through html see the beginning of the Users Guide for webelements that is in the main download [here|Crystal Reports webElements].
    please note that there are some major limitations in this method:
    1) you cannot print the html displayed when using the print button on the crystal reports toolbar as it will show up as text...you can try the browsers print functionality to see if that works for you
    2) you can not export the report and see the html displayed...it will show up as text
    3) pagination may not work for you...i.e. if you have an especially long section of html in your database, the page may not break where you want it to
    best of luck,
    jamie

  • To restrict the number of data columns displayed in BW Web report

    Hi,
    In the corresponding Bex query i am using 'Start Time' characteristic in the row. In the BW Web template i don't want the 'Start Time' to be displayed when i execute.
    I tried to restrict the number of data columns displayed in the web item table properties but that did not help
    Can i get some help
    Thanks,
    Mala

    Hi Mala,
    You can try out the following: Create a view on your query and in that view remove the Start Time char from the drilldown. Use this view as a data provider in the web template.
    Hope this helps...

  • Numeric data is not displayed in BI Publisher 11g report

    Hi,
    I'm using Oracle BI 11g (11.1.1.6.0).
    I'm experiencing a serious issue with numeric data in reports created with Publisher.
    When I define the query in the data model, numeric data gets declared as "integer" (even if it should be "double"). Anyway, when creating the layout all data is correctly shown.
    The issue emerges when I run the report in interactive mode: numeric data is not displayed at all.
    If I run it in HTML mode or other, I get proper results.
    I tried to explicitly CAST numeric data in the query to number(21, 6) but I get no different result.
    Any help or suggestion is warmly welcome.
    Thanks,
    Cristina

    Yes, assuming that you are using the Standalone version, following are some excerpt from user guide.
    10g see Oracle® Business Intelligence Publisher
    Report Designer's Guide
    Release 10.1.3.4
    Part No. E12187-01
    Chapter 6 Building a Data Template
    Supported Column Types
    CLOB (conditionally supported)
    The CLOB must contain text or XML. Data cannot be escaped inside the CLOB column.
    And for 11g see
    Oracle® Fusion Middleware
    Data Modeling Guide for Oracle Business Intelligence Publisher
    Release 11g (11.1.1)
    Part No. E18862-01
    Chapter 3 Creating Data Sets
    Using Data Stored as a Character Large Object (CLOB) in a Data Model
    BI Publisher supports using data stored as a character large object (CLOB) data type in
    your data models. This feature enables you to use XML data generated by a separate
    process and stored in your database as input to a BI Publisher data model.
    Use the Query Builder to retrieve the column in your SQL query, then use the data
    model editor to specify how you want the data structured. When the data model is
    executed, the data engine can structure the data either as:
    • a plain character set within an XML tag name that can be displayed in a report (for
    example, an Item Description)
    • structured XML
    Cheers,
    ND

  • Report to display number of items sold by state

    Hello experts,
    I would need a report with the following paramters:
    Deliver doc number,posting date,ship to state,item number,item desc,quantity.Is it possible to have the selection for the date range?
    Thanks

    Hello Gordon,
    This is what I noticed.
    This query shows the ship to state for the order if they are not on the User defined fields on a delivery document.
    Let me be more clear
    This query is displaying only the customers where the ship to address is entered in the BP master data.If the ship to address is entered at the sales order level it is not displaying the ship to state.
    I hope this makes sense
    Thanks

  • How to display the header data on different position in alv report

    hi all,
    how to display the header data on different position in alv report.
    for example ,
    customer                                                   name
      xxxx                                                         xxxx
                     vendor        name     street 
                      xxxx         xxxx      xxxxx
    pls   help me .

    hi
    as per my understanding you need to trnasfer header internal table data  to pdf..
    please check the following links for internal table to pdf..
    Convertion of Internal table data to PDF
    This link is related to ur issue
    Re: how to insert the calling of the FM: OTF to PDF
    Thanks

  • Crystal Report 9 - Can't Display UTF-8 Data

    Dear Sir,
    I am using PHP with Crystal Report 9.2 and has problem displaying UTF-8 data from MSSQL field. It shows weird characters instead. I am very sure the data stored in database is in UTF-8 because when I ouput it into the web browser with encoding as UTF-8, it shows correctly. Currently is using ADODB recordset to pass data into CR. I tried using ODBC to connect directly to database and preview the data - same issue.
    Now I wonder whether are there any settings need to be done in CR in order to display unicode correctly? From what I read, CR 9 and above should be able to support unicode.
    Thanks
    AL

    To be honest, I have no idea if TTX files supported UTF-8... I kinda doubt it. I'd check, but the only person I knwo of that may have a clue is not in until September 28...
    Re. ODBC, see if adding the following option to your DSN entry in the odbc.ini file will help:
    stmt = SET CHARACTER SET utf8
    Also, if I remember right, MS SQL does not install UTF-8 support by default (at least at one time or another it did not...(?).
    Oh - one more thing. I've attached a non CR app that I'd like you to use to see what the data it returns looks like. Please give that a try.
    - Ludek
    Edited by: Ludek Uher on Sep 7, 2011 10:43 AM

  • How to increase the number of data Business Object can pull for a report?

    Hi,
    I would like to ask around how to increase the number of data Business Object can pull for a report. I have a report which pulls data depending on the date range (ex. From 01/01/2007 - 01/10/2007). But, when the data that is pulled exceeds 5000, the report fails. Is there anyway to increase the number of data that BO can pull?
    Thanks

    Bobby,
       to my knowledge we can't change that. Let me explain this, we have setting in the source system for DS default Data Transfer. there we will assign the processes. if you want to assign 4 you need to change the setting in the source system. For flat files we can change in BW System. We can maintain the setting in the Infopackage level(wht we are assigned in the Source System), but we can't change the process.
    in order to check the setting in source system  SBIW--> General Settings --> Control Parameters for Data Transfer.
    we need to change here, this will effect to all the Data Sources. Before making changes check with your basis.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • Date range to be displayed  & Displaying multiple values on the report

    Hi,
    I have date range parameters, but I also need it to be displayed it on the report. Is there any way I can display it. E.G If a parameter is created one can drag and drop it on the report if it needs to be displayed on the report, I tried to do the same for the date range parameter but it does not work.
    Also If a parameter is created by selecting the option 'Allow Multiple Values', and if you drag and drop it on the report only the first value is displayed and the rest does not show. Has anyone tried this before and been successful in displaying multiple values in the report.
    Thanks in advance.

    Hi,
    A multi-value parameter is actually treated as an array in Crystal Reports.
    To display the values selected in the parameter, create a formula from the Field Explorer and type this code:
    Join({?ParameterName},",");
    Place this formula on the header or the footer sections of the report.
    Regarding the date range issue, please follow Sastry's advice and it should work fine.
    Make sure you're using the parameter in the Minimum and Maximum functions. For eg: If I was to create a date range parameter called OrderDate, my formula to show the start date would look like this:
    Minimum({?OrderDate})
    -Abhilash

  • To display execise number and date in smartform

    Hi Abappers,
    i want to display execise number and date in smartform and by using driver program also.
    i have taken fields from vbrk,vbrp and send to final internal table,but now i want to display execise number in my Smartform also.
    Thanking u,
    sri.

    Create a window inside window create text element inside that insert field your excise number and date field names.
    Go to form interface -> import parameters declare your internal table name type vbrp/vbrk.
    In your print program smart form function module pass this table.

  • Cannot display ods data in report

    Hi All,
    I have a report on multiprovider in which data from ODS cannot be displayed, in both multiprovider and report.
    I also checked,some of the fields from ODS have check mark in  identification(multiprovider).
    can any give the inputs for further analysis.
    Thanks
    Radika

    Hi,
    I guess you have not selected a key figure from the ODS.
    Select Key figure(KF1) from ODS and from the Other Data Target(KF2)
    Then create a calculated KF3 = KF1 + KF3 and hide the KF1 and KF2
    Regards
    Happy Tony

  • How to set a report culture for number and date

    Hi,
    Is there a way to change the report locale for the number and date?
    I've tried using both CrystalDecisions.Share.SharedUtils.RequestLCID and CrystalReportViewer.SetProductLocale and neither work
    The only one that work is to use the Thread.Culture. But that also change the application culture, not just the report.
    Anyone have a solution?
    Thank

    Hi Michel,
    I don't believe you can do this within just the report itself but I haven't played with this very much. Because the App hosts the Viewer it's based on it's culture.
    You should be able to mix if you create a separate thread for each report job that way they are in their own space.
    Search the Object browser on celocale and you'll find more info. Also the SDK help file should have examples.
    No API's to use the Engine, had to use RAS.
    Need to know what version you are using also and WEB or Windows app?
    Here are some samples using RAS:
    rpt1.ReportClientDocument.LocaleID = CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleGerman;
    CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameFormula, CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleUserDefault);
    And using this way you may have to alter every object in the report.
    Thanks
    Don

  • GR Document number & posting date in drill down option? (Reporting)

    Dear Experts,
                          As im new to reporting,i had a requirement from my client..the question is
    This is with regards to report Order Values on Posting Date (0PUR_C01_Q00021) 
    Can you add GR Document number & posting date in drill down option?
    i guess if i keep both of the in free characteristic,it will be the result,please suggest me on this
    Thanks & Regards,
    Srikant

    Dear Experts,
                            My Client requirement is he want GR Document number and GR Positing Date in the drill down option,im not able to find them in the query designer level. the query is under the cube 0PUR_C01. any suggestions will be a great help..
    Thanks and Regards,
    Srikanth

  • Report that can display the installation date of an application or program

    Hi,
    Would like to ask if anyone knows a built-in report in SCCM 2012 that can display the installation date of an application or program, either it was through deployment with SCCM or through manual installation?
    Thanks in advance!

    Got this to give me the report that I wanted but eliminating some entry on the SQL Query that
    Peter van der Woude gave. Here's the Query I used to display the computer name, name of software, date of installation and day since installation of the software.
    SELECT TOP (100) PERCENT
    dbo.v_R_System.Name0,
    dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0,
    dbo.v_GS_ADD_REMOVE_PROGRAMS.InstallDate0,
    DATEDIFF(Day, CONVERT(date,dbo.v_GS_ADD_REMOVE_PROGRAMS.InstallDate0), GETDATE()) AS [days since installed]
    FROM
    dbo.v_R_System INNER JOIN
    dbo.v_GS_ADD_REMOVE_PROGRAMS ON
    dbo.v_R_System.ResourceID = dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID
    WHERE
    (SELECT ISDATE(dbo.v_GS_ADD_REMOVE_PROGRAMS.InstallDate0)) = 1
    GROUP BY
    dbo.v_R_System.Name0,
    dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0,
    dbo.v_GS_ADD_REMOVE_PROGRAMS.InstallDate0,
    DATEDIFF(Day, CONVERT(date,dbo.v_GS_ADD_REMOVE_PROGRAMS.InstallDate0), GETDATE())
    Thanks
    Peter van der Woude!

  • Sales report with Batch number & expiry dates

    Hello friends,
    would any one please help me to frame this query to achieve the above ..
    my query is as bellow, but I want to add the batch number & expiry dates along with the other information.....
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    So which table to join to get the batch & expiry...
    Rgds
    Suman

    HI
    Batch table is OIBT, IBT1,OBTN
    SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[ExpDate] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry inner join
    IBT1 T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry inner join
    oitm T3 on T1.Itemcode=T3.Itemcode inner join OIBT T4 on T1.Itemcode=T4.Itemcode  WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    group by T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T4.[ExpDate]
    Thanks
    Mohammad Imran

Maybe you are looking for

  • How do I remove BlackBerry Maps from the OS?

    I have a Z10 running 10.3 it's a great update and so far love the BB Assistant.  There is one big sore point for me and that is your decision to deeply integrate BB Maps with 10.3 and Assistant.  Appologize upfront but I have to ask....Why would you

  • How do I change the 4 digit passcode to a 5 digit passcode on an iPad?

    How do I change the 4 digit passcode to a 5 digit passcode for an iPad?

  • Replacement Program: headphones required?

    I joined to the iPod nano (1st generation) Replacement Program. Do I have to send to Apple headphones too? Unfortunately I do not have them anymore because they got broken long ago. (I apologize if I did something wrong, this is my first message. And

  • Problem with SCROL BAR

    In my form i have fields in tabelar view and i have scrol bar. When the query has been executed, I want to see all of data in my form and I offcourse must to scrol down, but when I receive a lot of data my action with scrol bar occure system block, C

  • Operations on dimension members

    Hi Experts!! I need ideas to solve this requirement that is a bit strange; Initially I have a KPI and a dimension, which it crosses by. When I drill down on the TOTAL PROCESO, I can check the values for the members of the dimension; What I need; assi