Query to schedule my report

Anybody provide me the query to schedule my report for last 2months.
I have the date column in this format 20 mar 10(dd mmm yy).
I want to execute my report from back 2nd month first day to last month last day
Ex:if I schedule this repot on 3rd oct2010,report should execute it from aug 1st to sep 31.
Anyone please provide me the query for my date format.?
Thanks in advance...
Edited by: user12255470 on Oct 22, 2010 9:58 AM
Edited by: user12255470 on Oct 22, 2010 4:54 PM

though you are telling schedule date.. that i can treat it as current date ..
Because, report will be scheduled to specific date when it occurs.. and will become current date ..
you should use combination of timestampAdd function with between operator to define range between
I don't want to give you entire code.. so that you 'll try
but i can point to this blog: http://obiee101.blogspot.com/2008/12/obiee-first-last-of-month.html
this will explain how to get first day of month and last day of month in order to define date range for that report.
Thanks in advance...anyway I will give you the points....Not sure, whoz is working here for points... You should understand it's knowledge center who will share ideas and provide possible solutions for your issues. All that we want is: closing of threads, which will helpful to other folks who are really facing the same issue can quickly refer this.. And, assigning points will be dependent on you, if you are satisfied and want to give then can assign points and you'll be treated as Gentle man who follows forums Etiquettes..
all the best.
Edited by: Kishore Guggilla on Oct 22, 2010 10:37 PM

Similar Messages

  • Date error when scheduling webi reports

    Hi,
    When i click the prompt option in re schedule the scheduled webi report, i got the error "while trying to invoke the method java.util.date.gettime() of a null object loaded from a local variable 'date' "
    The BI version is 4.1 SP03
    The scheduled webi reports failing and got the error as "Unparseable date: "01/01/1900" "
    How to solve this issues?
    Regards,
    Kathir

    This might fix it from the note http://service.sap.com/sap/support/notes/1981477
    Create a WebI report that uses a date object in the Query Filters
    Schedule the report
    Reschedule by manually entering date value which shows only date and no timestampExample: 12/31/2007
    Reschedule by selecting date value from the calendar which shows date timestampExample: 12/31/2007 12:00:00 AM
    Create a biar file using the Import Wizard and migrate to BI 4.1 SP2
    BI 4.1 SP2 BILaunchPad, navigate to and Right click the report and go to “History”
    Right click the instance without a timestamp for the date parameter and select “Reschedule”
    Click on “Prompts” on the left menu and note an error is produced:This error occurred: while trying to invoke the method java.util.Date.getTime() of an object loaded from local variable ‘date’
    Attempting to schedule this instance (as Run Now or Reschedule) without selecting a Prompt value fails with the error:  Unparseable date: “12/31/2007”
    Using the instance with a timestamp works as expected

  • Scheduling the Report

    date from the source for the date field is coming in this format(Jan - 10).
    can anybody have query to schedule the report for last 3 months(back 3rd month first day to last month last day)?

    Hi user12255470,
    I'm having a little trouble understanding your request.
    First of all, is it an Answer Request or a BI Publisher Report?
    You mentioned you have a field that contains date information, however, it's coming through as a string data type, formatted 'MON - RR'. Is that correct? Or is it really a DATE datatype and you are using a custom date mask to display it in the format 'MON - RR'?
    Third, you are trying to schedule the "report" using iBots? Bursting? Other?
    What do you mean by "schedule report for last 3 months"? How do you go back in time 3 months and schedule something? Do you mean you want to filter the report to only include data from three months ago?
    If you are trying to do a filter to get the three previous months (not including the current month), then try the following.
    1. Put a filter on your DATE field (assuming it's an actual date)
    2. Set the condition to be BETWEEN
    3. Set the first condition to SQL Expression: 100*YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -4, CURRENT_DATE)) +
    MONTH(TIMESTAMPADD(SQL_TSI_MONTH, -4, CURRENT_DATE))
    4. Set the second condition to SQL Expression: 100*YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -1, CURRENT_DATE)) +
    MONTH(TIMESTAMPADD(SQL_TSI_MONTH, -1, CURRENT_DATE))
    And voila, previous three months filter.
    Please award correct points if this satisfies your requirement.
    -Joe

  • BI Publisher: Issue while scheduling the report/query to be executed daily

    Hi,
    We are using Oracle Business Intelligence 11.1.1.6.3 and while we schedule a report(RTF Template) we are facing issue.We use bursting query and when we select option to execute immediately it runs fine and sends notifications,it also executes when we schedule it to run Once but fails when i schedule the report to be executed DAILY .

    hii
    The query does not includes any RKF, CKF any complex calculations. as I said before also query is based on MP which is designed on a single Cube. There are no such navigational Attributes used for selection, Number of records are not more than 300 on that particular selection parameter
    there is only one info object which is creating issue & it is a master info object. If i am restricting this info object in the query & then executes the query , it gives the error msg also i put a variable for input parameter, & there I restrict the value, then also query executes with an error msg
    But if query is not restricted with  any value for that info object then query executes with in a second.
    Thanks
    neha

  • Unable to schedule a report to email and print

    I have been working on a task to both print and email a report to recipients whose email addresses are obtained at runtime.  So far I am able to email the report as a PDF attachment, however, I am not able to get the report to print.  I have three thoughts as to why the report is not printing.
    1. The printer is in a subdomain under the domain where InfoView and the Enterprise server reside.
    2. It is not possible to schedule a report for both an SMTP and print destination simultaneously.
    3. The format is causing an issue in printing - the SDK API states "Printer is a report format specific destination and can only be used when the report object is a Crystal Report."
    I have looked at the scheduled report in InfoView and can see that the print settings I am passing are correctly set for the scheduled instance.  Does anyone know if there is a problem with trying to schedule printing and email at the same time, or if the report format must be .rpt?
    Below is my code. Thank you for your time.
    String query = "Select SI_ID, SI_NAME, SI_PROCESSINFO, SI_SCHEDULEINFO, SI_SCHEDULE_STATUS From CI_INFOOBJECTS Where SI_ID=" + reportId;
            IInfoObjects results = null;
            ISchedulingInfo schedulingInfo = null;
            try {       
               results = iStore.query(query);           
            } catch( SDKException sdke ){
               logger.error(sdke);
            if( !results.isEmpty() ){
                // get the actual report object from collection and set scheduling information
                IInfoObject report = (IInfoObject)results.get(0);
                schedulingInfo = report.getSchedulingInfo();
                schedulingInfo.setType(CeScheduleType.ONCE);
                schedulingInfo.setRightNow(true);
                schedulingInfo.setRetriesAllowed(3);           
                try {
                    Set<String> keys = destinations.keySet();
                    Iterator i = keys.iterator();
                    while( i.hasNext() ){
                        String dest = (String) i.next();
                        if(dest.equals(CrystalDestinations.EMAIL)){
                            // get the destination object and set it to SMTP plugin
                            List emailAddress = destinations.get(CrystalDestinations.EMAIL);
                            IDestination destinationObject = schedulingInfo.getDestination();
                            destinationObject.setName("CrystalEnterprise.SMTP");    
                            IDestinationPlugin smtpPlugin = (IDestinationPlugin) iStore.query("SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 29 AND SI_NAME='CrystalEnterprise.SMTP'").get(0);
                            ISMTPOptions smtpOptions = (ISMTPOptions) smtpPlugin.getScheduleOptions();
                            smtpOptions.setDomainName( emailDomain );
                            smtpOptions.setServerName( smtpHost );
                            smtpOptions.setSMTPUserName( smtpUser );
                            smtpOptions.setSMTPPassword( smtpPass );
                            smtpOptions.setSubject( "Email for report " + report.getTitle() );
                            smtpOptions.setMessage( "This is the message body" );
                            smtpOptions.setSenderAddress( smtpUser + "@cdrh.fda.gov" );
                            smtpOptions.setSMTPAuthenticationType( ISMTPOptions.CeSMTPAuthentication.LOGIN );
                            for(int j = 0; j < emailAddress.size(); j++ ){
                                smtpOptions.getToAddresses().add( emailAddress.get(j) );
                            destinationObject.setFromPlugin( smtpPlugin );                                                                               
    } else if ( dest.equals(CrystalDestinations.PRINT) ){
                            List printers = destinations.get( CrystalDestinations.PRINT );                   
                            IReportPrinterOptions printerOptions = ((IReport)report).getReportPrinterOptions();
                            printerOptions.setCopies(1);
                            printerOptions.setEnabled(false);
                            printerOptions.setPrinterName( (String)printers.get(0) );                   
                            printerOptions.setPageLayout(IReportPrinterOptions.CeReportLayout.USE_SPECIFIED_PRINTER_SETTING);
                    List reportPrompts = ((IReport)report).getReportParameters();
                    for(int j = 0; j < reportPrompts.size(); j++){
                        IReportParameter prompt = (IReportParameter) reportPrompts.get(j);                   
                        if(prompt.getParameterName().equals(mdrParamName)){
                          IReportParameterSingleValue v = prompt.getCurrentValues().addSingleValue();
                          v.setValue(reportParameters.get(mdrParamName));
                        } else if(prompt.getParameterName().equals(addressParamName)){
                            IReportParameterSingleValue v = prompt.getCurrentValues().addSingleValue();
                            v.setValue(reportParameters.get(addressParamName)); 
                    IReportFormatOptions format = ( (IReport) report).getReportFormatOptions();
                    format.setFormat(IReportFormatOptions.CeReportFormat.PDF);
                    iStore.schedule( results );

    Hi Jason,
    Based on your code, I could not tell if you were scheduling a Crystal Report or a WebI document.
    Regardless, what I would suggest is you try scheduling the report/document on InfoView.
    Once you schedule it on InfoView, you can retrieve the instance on Query Builder (or through code) and compare the properties that are being set through InfoView and the one you set through your code.
    This should indicate if you are missing some properies or have set some properties incorrectly.
    Hope this helps.
    Regards,
    Dan

  • Error while scheduling DESKI report in infoview

    I m scheduling a DESKI report to users enterprise inbox from infoview using a server group. This server group has DesktopIntelligence Job server, Destination Job server, Adaptive Job server and Program Job servers and all these servers are running.
    When I schedule the report to boldusers enterprise inboxbold it get failed and shows this error message
    bolddestination DLL disabled. []: [CrystalEnterprise.Smtp] bold
    I m wondering what has to be enabled for scheduling a report to infoview's own inbox.

    Abhilash
    You are correct that it shows all the prompts but only when we run the report either directly from the CR Designer or via View on Demand in Infoview/CMC.
    But if I try to schedule an instance of this report, I am getting a check box in the parameter section which says "Show unused parameters" to see this dyanamic prompt. And When I check that box in Infoview still I am not able to select any value for this prompt as it's greyed out.
    Hope I am able to explain my query to you.
    Also attached a screen shot of the scenario for your reference.

  • Error Code:942 While Scheduling a report in BI Publisher

    Hi All,
    I am trying to schedule one report in BI Publisher.
    After Clicking Submit Button while scheduling report,i get following error:
    Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist Error Code: 942 Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'JOB_ID_SEQ' Query: DataModifyQuery()
    Kindly Help me in resolving this issue
    Regards
    Amrita Singh

    i know the issue,i can give quick fix, but in-order to make sure you don't get another glitch like this.
    I would recommend, you to install the scheduler in another schema or another db.
    Re-installing the scheduler schema tables will fix this.

  • Scheduling the report from Infoview portal does not show up data

    "The crystal report is based on a SAP BI query. The parameters of the report are basically the parameters(SAP variables) of the SAP BI query. When we run the crystal report in the CR Report Designer tool, it runs fine showing all the data correctly. Then we published the crystal report to the Crystal Enterprise Server from the SAP BI system. Through the Infoview portal, the user clicks on the 'Schedule' link for the report and sets the parameters. When the 'Schedule' button is clicked, it runs successfully but no data is seen in the report except for the template. But under the same report, in Infoview portal, if the user selects "View" link, sets the parameters and then clicks the 'Execute' button, it runs successfully showing all correct data.
    Dont understand why it works for 'View' link but doesn't work for 'Schedule' link. Is there any setting that needs to be made for this?"
    Thanks in advance,
    Sri

    Hi Sri,
    When we are able to see the report and unable to schedule the report with in the Info view, then check with the user rights.
    Just try to login with admin account and try to schedule the report.
    Also check the report in CMC and see the preview of the report.
    If the user doesn't have enough rights to schedule the report, then  it doesn't allow it.
    Also check with in the Folder rights with in the report is saved.
    Regards,
    Naveen.

  • How to schedule webi report in bulk (multiple report in one request)

    hi,
    I am little bit new to BOXI. I have little bit work experience in Crystal X on scheduling which was used in one of our enterprise java application. We are exploring options in BOXI.
    Currently i am scheduling a report with following api
    infoStore.schedule (webiDocs);
    This will schedule one report instance.
    My question is
    Is there any way to schedule multiple instances of a same report in one request.
    Is there any way to schedule multiple instances of a different report in one request.
    If above things are possible please provide the apis for the same.
    thanks in advance
    Shreenidhi

    Scheduling multiple Webi reports in one command:
    infoStore.schedule takes 1 arhgument of type IInfoObjects which is a collection of InfoObject. IInfoObjects is retrieved by the query. So if you to retrieve all the Webi Docs you want to schedule , then with infoStore.schedule(WebiDocs), it will schedule them all in 1 shot. Scheduling Info properties for each Webi Docs should also be set. Please refer to the samples on scheduling at link below.
    https://boc.sdn.sap.com/node/3211
    Scheduling one Webi Doc multiple times in one command:
    I donu2019t think it can be done in one command. Do you want to schedule the object multiple times each time running it with different prompts? Or do you want it to be sent to different destination in each schedule? Otherwise you can schedule it once and then access the scheduled instance multiple times.
    I hope this helps.
    Regards
    Aasavari

  • Error with Scheduling a Report to run in SSRS 2000

    Getting the below error when trying to schedule the report to run.
    I can run the report just fine as a stand-alone and not thru the scheduler.
    I have several others that run just fine in the same way.
    ReportingServicesService!processing!5d4!8/24/2010-01:15:02:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'DataSource1'., ;
    Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'DataSource1'. ---> System.Data.Odbc.OdbcException: ERROR [01004] [AcuCorp, Inc.][AcuODBC Driver][ISAM]Unable to open xfd file
    at System.Data.Odbc.OdbcConnection.HandleError(HandleRef hrHandle, SQL_HANDLE hType, RETCODE retcode)
    at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method)
    at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
    at System.Data.Odbc.OdbcCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
    at Microsoft.ReportingServices.DataExtensions.CommandWrapper.ExecuteReader(CommandBehavior behavior)
    at Microsoft.ReportingServices.ReportProcessing.a1.v()
    --- End of inner exception stack trace ---

    Hi Brian,
    Looking at the error, the server is not able to get to the data source. If you are using ODBC, make sure the server machine has access to the file.
    The exception is coming from your ODBC driver.
    ERROR [01004] [AcuCorp, Inc.][AcuODBC Driver][ISAM]Unable to open xfd file
    Brad Syputa, Microsoft Reporting Services This posting is provided "AS IS" with no warranties.

  • WebI does not return failed when scheduling a report which only holds parti

    WebI does not return failed when scheduling a report which only holds partial results.
    We have scheduled reports which take some time to run. When they are scheduled they sometimes show successful even though the report only holds partial results. The only indication is when you open the report as webi report you see the warning that it holds partial results.
    When running the report manually, it works file.
    The issue is not in the no of rows in the universe settings because we this unselected. The issue is that it times out.
    The reason that it times out is that a lot of resources are used for loading and processing data when the report is scheduled. When running it manually, it works because at this time the serverload is less. the time in the universe is set to 10 min.
    The version we have is BOXIR2-SP4.
    Ok. Issue identified.
    The question is - why is the report successful when it holds partial results? If this is normal behavior, noone can really trust the scheduled reports, especially when you save it to excel and send it by mail.
    Is there a solution for this except increasing the allowed query time which would not solve the issu but only allow more reports to complete?
    Edited by: Karlgren Michael on Sep 17, 2009 1:22 PM

    Hi ,
    Currently this problem exists in XI R2. This feature will be part of thenext Service Pack i.e XI R2 SP6.
    This CER will be delivered from IDC Webi and BIP Platform as part of Jupiter Sp6.
    Problem Statement:
         Scheduled WebI Reports which are partially refreshed are distributed to the destinations for Users to View and make decisions. These users arenu2019t usually aware that these reports have u201CPARTIAL RESULTSu201D
    Recomended Solution:
        Allow the Schedule Creator / Modifier to set a parameter to stop the distribution of the u201CPARTIALLY REFRESHEDu201D WebI report.
    Thanks
    Salini

  • Scheduling webi report error

    Hi Guys,
    How u all? Guys I need help from your side, While refreshing Webi report in 3.1, getting error:
    A database error occured. The database error text is: Failed to execute MDX query. Reason: Inconsistent input parameter (parameter: <unknown>, value <unknown>). (WIS 10901).
    Kindly help me.
    Thanks,

    Hi,
    This error is very common when the report is based on BW query.
    1. try to schedule the reports and when selecting the prompt values click on refresh the prompt data which will pull the new data values from BW, many times it happens that we take the by default value when refreshing which may have a space etc.
    if the above condition doesn't work try
    2. I would recommend to refresh the universe structure and map the objects i.e. pull the objects again in the reports
    or
    last option would be to enable MDX and SOFA logs to get more details: (Instrucitons on capturing the MDX statement from the Webi Server can be found in SAP Notes 1260004, 1380517 or 1235111.)
    Thanks,
    aKs

  • Can you schedule a report to send to a email address that is pulled from a database field?

    Post Author: huber.molly
    CA Forum: Crystal Reports
    Currently, we are collecting email addresses in a database field. We want to send the generated reports to only these email addresses. Is there a way to add a dynamic value to the "To:" field when scheduling a report?
    The goal is to schedule the reports and let them be sent to these addresses so it removes the step of manually entering the addresses.

    Post Author: IdoMillet
    CA Forum: Crystal Reports
    It's not clear what tool you are using to schedule your reports.This may require a 3rd-party tool.  See list of such tools at: http://www.kenhamady.com/bookmarks.html. My Visual CUT software allows you to drag & drop an email field/formula from the report itself into the "Email To" option, to dynamically drive email options by the data in the report.  Alternatively, it allows you to use an SQL Query or a Text file to specify email addresses.- Ido

  • Scheduling a report with System Date as prompt

    Hi Experts,
    We have came across a requirement where users want to have a date prompt.
    While scheduling the report, by default prompt is to be populated with system date and it (prompt) should also allow us to select a different date.
    This report is used for regular run and also for scheduling.
    We need a single report with single prompt which allows us to run for any random date when prompted and also to be scheduled for the latest date.
    Please give us advice/ suggestion.
    Thanks
    Uttam

    Hi Neil,
    We have tried both the approaches given by you, but it is not working for my requirement.
    Let me explain it with the below scenario.
    scenario:
      we have developed the report by using 2 data providers,
    Dp1: It is a custom Query with date as follows ( it is a Transaction data) which brings the data from 1st day of month(user prompt) to user's prompt date.
    TRANSACTION_DATE BETWEEN last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\Transaction Date',Mono,Free,Persistent,,User:0)
    Dp2: It is also Custom Query, but it has only data on month ends.
    DIMV_plant_EOP.TRANS_END_OF_MONTH_DATE = last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\EOP plant Attributes\EOP Date',Mono,Free,Persistent,,User:0),-1))
    Report is having 3 prompts, namely
    1) As of date (prompt)
    2) Plant (prompt)
    3) Country (Prompt)
    For example: if my report is ran on 06-june-2014,
    DP1: Brings the data from 1st of June to 6th of june.
    DP2: Brings the Data from Inception to last month(say 30-may-2014) because it has only month end data.
    Upto this it is fine.... but
    My requirement is to schedule the report daily......
    Example: User want to schedule a report today(10-July-2014), tomorrow(11-July-2014) and so on...
    Scheduling should be done daily i.e, it has to fetch the data 10-Jul-2014, 11-july-2014,12-july-2014.... so on. 
    Automatically scheduling has to take the current date.
    Thanks,..

  • Schedule a report with parameter

    Hope this isn't a silly question - I'm very much a new boy to Business Objects.
    I have a report that the user wants to have run weekly. However, the report prints weekly data forecasts for the current week and for a number of weeks to come - probably 12. The only way I've found to limit the query is using an actual date prompt when running the report to restrict the query range.
    I could probably schedule individual occurences, but this would be quite an overhead. Is there a way to schedule the report and pass in a parameter of (today + 12 weeks) or something similar?
    TIA
    Malcolm

    There are a couple of approaches that you can take, but both require some assistance from your universe designer. For the first approach, your universe designer can create date-based objects like "today" or "start of this week". These objects would be based on database functions (like sysdate for Oracle or getdate() for SQL Server) that return the date of "today" and perform other operations on that value to turn it into various date ranges. You can then make conditions on these objects.
    Another approach is to create what I (and others) call a "Magic date" which is used in prompts. When the report is run interactively you can enter any date you want. When the report is scheduled, the "magic date" value is entered instead. By using this technique you can have one report that runs both interactively and in batch. The magic date is converted to today's date when the report is run, so as each week expires and a new week starts the report will run for that new week automatically. Yet the report can still be run interactively by entering any other date.
    I have a number of blog posts on [dynamic date objects|http://www.dagira.com/category/design/dynamic-dates/] as well as the [magic date process|http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/] that can provide more material for you (or your universe developer) to read.

Maybe you are looking for

  • I want to share files between my MacBook Pro and G5, I am using an AirPort

    I want to share files between my MacBook Pro and G5, I am using an AirPort Extreme Base Station. I can see the MacBook Pro on the G5 and vice versa, I have file sharing turned on both, as well as Screen Sharing. I currently am sharing using Target Di

  • User status linking between wbs and network

    Dear All, I got one requirement in which i am using user status at wbs level to block all the transactions. Now the  problem which i am getting is that even though i am maintaining the user status at wbs level, users are able to post the data on netw

  • With the new FCPX 10.1, my external hard drive is not being recognized.

    Today I updated my FCPX application to 10.1, but when I plugged in my 'passport for mac' (which has all my important 500 GB projects on it) It does not come up like it used to. I have tried to import the files as libraries, but either it doesnt work,

  • Tcode FB01

    I m populating FB01 tcode...using BAPI BAPI_ACC_DOCUMENT_POST..in my flat file for populating Fb01..i have two fields vendor and account...but where r these fields in BAPI structure...but while entering values in FB01 i m entering both vendor and acc

  • UI Shell with BTF from ADF library issue

    I've created an application component (Bounded Task Flow) wrapped in an ADF library for reuse. I am able to import this into "normal" ADF applications and place it on a page as a Region. Works as expected and looks good. I'm attempting to add this to