Printing System Date on Report Title

How can I print the system date on the title of report generated by SQL*Plus?
I remember it is possible to include SQL.PNO in the statement TTITLE to print the page number. Is there any variable like SQL.PNO which represent system date?
Previously I've include SYSDATE to the SELECT statement of the report. It is the column named TODAY, with option NOPRINT and NEW_VALUE TT_TODAY, where TT_TODAY is include in TTITLE statement. The problem is: if the SELECT statement returns nothing, TT_TODAY will be blank/Null.
How can I work around with this problem?

Dear all,
My colleague told me the way to print System Date on title of SQL*Plus report as followed:
COLUMN today NEW_VALUE tt_today NOPRINT FORMAT A1 TRUNC
TTITLE CENTER tt_today RIGHT SQL.PNO
SET FEEDBACK OFF
SET TERMOUT OFF
SELECT SYSDATE AS today FROM DUAL;
SPOOL RPTFILE
SELECT ....... << to generate report output >> .......
SPOOL OFF
SET TERMOUT ON
SET FEEDBACK ON
It works! The output file contains System Date on each page title.
I don't understand why Oracle didn't implement variable similar to SQL.PNO to represent the System Date. If Oracle is able to create SQL.PNO which can increment on each page break, why not the System Date which remains the same on each page?

Similar Messages

  • Current System date in report

    Hi,
    Iam working on BW reports. Currently iam with report which needs to get the current system date automatically in reports.
    Can anybody help me on how to get the current system date in report automatically.
    I tried in layout but it gives all info. But i need only current system date.
    I even tried variable of type sapexit under 0calday. but as it is an variable it filters values with reg to current system date.

    Hi Ucas,
    U have to write the code for the variable as follows:
    1) Go to transaction SMOD
    2) Enter 'RSR00001' in Enhancement field. Also select the 'Components' radio button. And press 'Display'.
    3) Double click on the function module 'EXIT_SAPLRRS0_001'
    4) Then, double click on code text 'INCLUDE ZXRSRU01'
    5) Now, u reach a screen, where u can write ur include program. U have to write, for example, 'INCLUDE my_code'. Then double click on this to include ur code inside.
    6) The code can be :
    CASE i_vnam.
        WHEN '<write ur variable name>'.
        CHECK i_step = 2.
        s_range-sign = 'I'.
        s_range-opt  = 'EQ'.
        s_range-low  = sy-datum.
        APPEND s_range TO e_t_range.
    ENDCASE.
    Assign points if u find the above info useful.
    Message was edited by: Vishesh Pahariya

  • Date in report title

    I can put the run date/time in the title of a crystal report in Business Objects.  I need to put the data date in the title.  Is there a SQL statement for this, or some other way?

    Ahhh, but you can!  At least when run through InfoView.  Indicate that you want to specify the file name, and there's a "placemarker" %SI_STARTTIME% that will substitute the date and time of the run in the file name.  (It does both date and time, and as far as I'm aware, you can't specify just date, or the format of the output.)
    HTH,
    Carl

  • Display Report Title line in Printer Queue Again

    Post Author: ShowMeTheName
    CA Forum: General
    Hello, this is my question:
    How can I get our Crystal Reports XI printed from our VB application to show again the line u201CCrystal Reports + The Report Titleu201D in the printer queue?
    We first started generating reports with Visual Studio 2003 and Crystal Reports for VB.Net.  Months later, we upgraded to Crystal Reports XI Developers Edition. 
    When we built our application in VB and CR for VB.Net (v.9?) and printed reports from it, they showed the Crystal Reports line with the report title in the printer spooler.  Now that we upgraded to CR XI DE and compiled our program, the reports only show the line u2018Documentu2019 in the printer spooler.  The report title is gone.
    Does anyone know how to get that report title back?  If we open a report in the Crystal Reports program and we print it from there, we do get that line u201CCrystal Reports u201C and the Report Title in the printer spooler.  However, when we print the same reports from our VB application (and whatever upgrades installed by CR XI), the report title is replaced by a very annoying u2018documentu2019 word.
    We need the report title to show in the printer queue to distinguish our reports. 
    In our VB app, we open the reports as a new ReportDocument and then we print them with the PrintToPrinter code.
    Has anyone else had the same problem? Do you guys think that if we replaced the new report references with the original version will do the trick?
    We donu2019t want to change or eliminate the u201CCrystal Reportsu201D words because I know we canu2019t. What we want is that line back so it can show the report title.  I certainly like that line better than the u201Cdocumentu201D one we get now.
    Thanks for your help!

    Post Author: emoreau
    CA Forum: General
    as per http://technicalsupport.businessobjects.com/cs/forums/3054/ShowThread.aspx, it doesn't seem to be possible.

  • Variable in Report Title?

    Hi I'm fairly new to ORACLE BI and want to output the Date in the Filename of the reports when the users run them. So when they download the report as XLS PDF etc is shows "filename DD-MM-YY".
    Is this possible?
    Many Thanks
    Ed

    ahh, now I see what you're talking. Here's the issue you're running into. The download report doesn't use the title as the download file name. Instead, it uses the physical name of the report in OBIEE. So even if you add the system date to the title of the report, it won't affect the download name. It just happens that both the download name and the title default to the name of the Answer Request.
    So if you really wanted someone to download it with a date already in the file name, you have two options:
    1) Physically rename the Answer Request periodically to indicate the last time it was refreshed. The issue here is that links to this Request will get outdated fast. And it's not the prettiest solution
    2) You'd have to go into the Javascript behind OBIEE and edit how it generates the download file. I checked out the web page source code for the download link and here's where you'd want to start digging: onclick="return NQWPopupMenu(event,'idDownloadLinksMenud:dashboard~p:ngm14ept52q4tcnt~r:dr2ss84kj32lkjoi')"
    That NQWPopupMenu function is what generates the pop up window with the different file outputs. Once you dig through there, it will eventually lead you through the script that does the excel outputting. Once you find the piece of code that creates the output file, it should be as simple as appending a sysdate to the file name.
    Good luck!
    -Joe

  • Export Preset to Rename with Current system Date?

    Hi All,
    I'm trying to build some export presets with a naming convention to include the current system date, eg: YYYYMMM-Title-Custom Text. This convention is oftened required for photo club, local, national & international photo competitions. The only date function I can find is the 'capture date'. Is there a way to modify the Export Filename Template Editor to include 'current system date' ??
    Edit:
    Sorry forgot to add, LR5.3, Mas OS 10.9.1
    Regards
    Craig

    You need to click the 'Define' button and choose Date/Time Now (Custom Metadata):
    If you need more help, please contact me outside the forum - thanks.
    Rob

  • Failed to read data from report file : Reason: Crystal Reports: Print Engin

    Hi,
    When we try to migrate the crystal reports from BO R2 to BO R3, some of the reports are faling with the error:
    Failed to create a new Report.Reason: Failed to read data from report file C:\DOCUME~1\xxxxx.rpt. Reason: Crystal Reports: Print Engine Error
    Would please someone help me in fixing the issue.
    Thanks and Regards,

    Few quick checks to identify the cause -
    1. Are you able to run report in your R2 system?
    2. In XI3.1, check SIA running on which account.
    3. Check the acount have sufficient rights on file system and registry.
    4. What's your web server?
    Give proper rights and import again. Hopefully it will resolve.
    Edited by: Das on Dec 6, 2010 9:47 PM

  • Crystal Reports XI String [255] limit with the File System Data driver...

    I was trying to create a Crystal Reports XI report to return security permissions of files and folders.  I have been able to successfully connect and return data using the File System Data driver as the Data Source; however the String limit on the ACL NT Security Field is 255 characters.  The full string of data to be returned can be much longer than the 255 limit and I cannot find how to manipulate that parameter. 
    I am currently on Crystals XI and Crystal XI R2 and have applied the latest service packs but still see the issue.  My Crystal Reports Database DLL for File System data ( crdb_FileSystem.dll ) is at Product Version 11.5.10.1263.
    Is it possible to change string limits when using the File System Data driver as the Data Source?  If so, how can that be accomplished.  If not, is there another method to retrieve information with the Windows File System Data being the Data Source?  Meaning, could I reach my end game objective of reporting on the Windows ACL's with Crystal through another method?

    Hello,
    This is a known issue. Early versions you could not create folder structures longer than 255 characters. With the updates to the various OS's this is now possible but CR did not allocate the same space required.
    It's been tracked as an enhancement - ADAPT01174519 but set for a future release.
    There are likely other ways of getting the info and then putting it into an Excel file format and using that as the data source.
    I did a Google search and found this option: http://www.tomshardware.com/forum/16772-45-display-explorer-folders-tree-structure-export-excel
    There are tools out there to do this kind of thing....
    Thank you
    Don
    Note the reference to msls.exe appears to be a trojan: http://www.greatis.com/appdata/d/m/msls.exe.htm so don't install it.
    Edited by: Don Williams on Mar 19, 2010 8:45 AM

  • How to print formated data/report on client's printer (Web Application)

    Hi All
    I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
    Application is web based
    Technology used are Java - jsp - servlets
    i want functionality like...
    when user click on print button/link, data is fetched from server and all pages (it is formated data so i want alignment on page while printing) should be printed one after another.
    Also printer selection dialog should displayed one time when user click on print button/link.
    Questions:
    1. How i will transfer all data to client (web browser) from the server ??
    2. And how i can print that data on user's printer ??
    There is requirement (or limitation) that I can not use applet for this purpose.
    And also it is not fix that we must use java tech., we can use any othere tech. but condition is that it must support multiple platform (in short platform indipendant)
    There is solution like ...
    I can use window.print() function of DOM/JavaScript,
    but it prints only one page which is displayed on browser.
    I don't want to display any page. and want to print all pages.
    if any one done or have idea then let me know.
    Thanks in Adv.
    Shailesh Koradiya

    thanks linxpda for reply,
    we can use ActiveX component for windows platform for printing purpose, same way we can use platform specific component for printing... (for linux, unix, sun solaris etc...)
    if it is possible then let me inform.
    Thanks,
    Shailesh Koradiya

  • Duplicate report title for every date where records are found in date range

    Hi,
    I have a developed a report that lists multiple entries by date range with a page break separating each date. What I would like to include now is a report title which only appears once for each date, and separated by page break.
    Example:
    (Business Unit)
    (Address)
    (Report Title)
    (Date)
    Entry 1
    Entry 2
    Entry 3
    Entry 4
    Entry 5
    Entry 6
    Entry 7
    (Business Unit)
    (Address)
    (Report Title)
    (Date)Entry 1

    Hi Camelbak2113,
    According to your description, it seems that you want to eliminate the duplicate report title for every date. If in this scenario, I suggest that we can try to add a group grouped on date range, and then add a child group grouped on report title. Then add
    page breaks between each instance of date range group.
    If I have something misunderstood, please provide us more information about the report. Such as provide us some screenshots about the report with sample data. So that we can make further analysis and help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report Title Displaying in Multiple Lines on PDF Format when i Print in PDF

    Report Title Displaying in Multiple Lines on PDF Format when i tried to print in PDF Format, is there any limit for Report Title Characters
    Displaying Like -
    LRDP
    Open
    Label
    Paradigm
    Forecast
    Report
    Any Info Appreciated
    ~Srix

    Got It .. Just need to chnage the Width Parameter.......!

  • How to print formatted data / report on user's printer in Web Application

    Hi All
    I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
    application is web based and tech. used are Java - jsp - servlets
    now prob. is ...
    how i will transfer all data to client (web browser) from the server and how i can print that data on user's printer ...??
    there is requirement that I can not use applet for this purpose.
    if any one done or have idea then let me know.
    thanks
    Shailesh Koradiya

    Hi
    Its simple, first of all break ur data in terms of pages. Write the logic in one JSP.
    suppose i have jsp PrintReport.jsp , for page 1 url will PrintReport.jsp?page=0 ... so on
    get the page parameter in JSP
    String page="";
    if(request.getParameter("page")!=null)
    page=request.getParameter("page");
    get the rowcount from the Result and assume records per page is 100
    if u have 1000 rows then 10 pages u have to serve
    StartRowNumber=page*recordsPerPage
    EndRowNumber=StartRowNumber+recordsPerPage
    Execute a SQL query , select * from table where rownum between
    StartRowNumber and EndRowNumber
    Provide google like pageNumbers in ur HTML page
    ie 1 2 3 4 5 6 ..10
    Regarding printing , Create HTML button called 'print' and add Javascript ' window.print()' on clicking it.
    Hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • How to display metadata such as data load date in answers report title?

    We have a requirement to display the last load date of the data relevant to the report the user is viewing. We have such information stored in a metadata table listed by the fact table the report is referencing. Our proposed solution is to create new answers reports off of this metadata table and put each report (with the appropriate filter on the fact table) on each dashboard section where the corresponding report is placed. One problem with this approach is the load date information will not be reflected in the print form of the report as the date is dashboard content - not report content. Is there any way to overcome this situation (other than create a ton of variables specifically created for this purpose)? I'm open to entertaining javascript ideas, if necessary. I would love to know how to push this OBIEE envelope further. Thanks in advance.

    Hi,
    I discuss with some people who are familiar with SharePoint, we both thought Windows Explorer may
    not accept the custom metadata.
    if we want to do some customization, it is recommended to ask for help in development forum.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • Is there any way to print  the data inside  the Notes field of MIR6 Report

    Hello Gurús.
    We need to include the data inside the Notes field in the report MIR6 - INVOICE OVERVIEW - report.
    Is there any way to print  the data inside (comments)  the Notes field as well in the Report  ?
    We found that the only way is to open the Notes and print it, but it takes time, any idea ?
    Rgds.
    MCM.

    There's nothing built-in that does that. If you only have text fields and they don't have any formatting or other property that would prevent it (e.g., Date, character limit), you can run a simple script to populate each field with the field name, and then print. A more complicated approach would be a script that adds text annotations near/over each field that shows the field name. This would just be for documentation purposes, but it's possible. Post again if you'd like help with the first. You'll probably have to pay someone for the second approach if you don't want to do it yourself.

  • Schedule a report with the system date imbeded in the file name

    Hello,
    Could anyone tell me how I can schedule a crystal report with the system date imbedded in the file name (FileNameYYYYMMDD) through BOE?  When I scheduled the report through BOE, I gave a file name and selected Attach Date Time, but the file name is coming out slightly differently and with the time imbedded as well (FileNameYYYY-MM-DD-HH-MN I think). Is there a way to change the default system date time format in BOE so that the date stamp comes out the way we want it?
    Thanks!

    %SI_STARTTIME% will add the time the report ran too.
    Adding onlt the date will necessarily have to be done via the appropriate SDK.

Maybe you are looking for

  • Restriction of Validity start date in Scheduling agreement

    Hi, I am not able to convert the message 06 170( Start of validity period is in the past) in error message , when i am going to define attributes of system messages in purchasing and converting this message into error , system still does not give err

  • How do I change the BLOCKSIZE variable permanently?

    I want to change the output when I do ls -s to 1024 instead of 512. How do I do this so it stays that way permanently?

  • Searching for words in Album names

    My iPhoto search function is unable to find words that are in the names of newly-created Albums. It can find words in the names of albums I created some time back but not in new one. This is what I do: 1) Select several photos. 2) Push the plus sign

  • ICloud error in Mail whenever macbook put to sleep

    Hey whenever I wake my MBP from sleep I get an error in Mail and no new mail gets delivered. Does anyone have a solution? Thanks

  • Button on gmail screen, deletes emails, what?

    When I open an email on my gmail account on my iphone 5, at the bottom are 5 choices to do with that email, the one in the middle, that looks like a filing box, when i hit that what happens to the email? cuz I cant find it in trash, i cant find it an