Schedule a Query Refresh

Hi ,
In BW 3.1 is there anyway to schedule a job refresh a workbook automatically in the background . Can reporting agent be used to acheive this functionality ? I also would like to access the refreshed query from the document store and send it as an email attachment . I know that 3.1 does not support information breoadcasting , but can it be achieved programmatically ?
Any document links that provided more details on this would be appreciated .
Thanks

This is the point-of entry for reporting agent in general:
http://help.sap.com/saphelp_nw04/helpdata/en/28/734d3caa70ea6fe10000000a114084/frameset.htm
For the precalcullation of HTML-reports:
http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/frameset.htm

Similar Messages

  • Error message "Error when scheduling the query(JOB_CLOSE)".

    Hi all,
    While using query extractor (rscrm_bapi) I am getting error message "Error when scheduling the query(JOB_CLOSE)".
    Could you please find what this error is?
    Thanks,
    Uday.

    Hi Uday,
    This problem can occur if you changed the query definition.
    In this case the query definition would be inconsistent with the existing extract structure.
    Certain Meta information is maintained with each extract defined using the RSCRM_BAPI. If the definition of the query is changed and you need to use the same extract table then you need to delete the extract using the report RSCRMBW_DEL_ALL_EXTRACTS selecting the extract you want
    to delete.
    After this you could use the same table name for any further extract that you need to create.
    One caution is that the extract table should not be deleted through any other transaction before you run the report.
    Rgds,
    Colum

  • Schedule a Query with Type "File"

    Hi All,
    We're currently facing an issue when a user schedules the query and selects the Type as "File" and DOES NOT enter the Output Destination. Though the message log says that the report has been successfully published, no report has been published. Message Monitor also does not show a Sub Contract.
    To work around this scenario, we requested the Users to enter the UNC path while running. That also has not resolved the issue, as I can see the file physically located in that UNC path provided during the run, but it is neither visible in the View/Log Trace nor is it available in the Report Manager. I also don't see any Sub Contracts for PSRF ... The report manager seems to be working fine, as all other reports are being posted.
    We're on PT 8.47.11...
    Thought of raising it here prior to creating an SR..
    Any help would be appreciated!!
    Thank You
    Prashant

    If the output type is File then the report will not be posted to the report repository. If the file is not being written to the UNC path, and you have configured your process scheduler as a Windows service, make sure the BEA ProcMGR service is not running as the Local System account. Change the service properties to log on as a specific user account and make sure the user has permissions to write to the UNC path.

  • Last query refresh failde due to internal errors ?

    Hi gurus
    we are working on SRM 7.0 with PPS,
    when Bidder tries to open his login page and wants to see the Rfx raised against him, He is getting error message,
    " Last query refresh failed due to internal error"  , some time this is due to another session witht he same query is open , but
    I am getting the same error in the following situation,
    suppose bidder has submittted his response and after submission he is trying to change the response and couldn't submit before the submission dead line then the version of the response will be c1, and which is not interpreted by the system, and so the error is .
    Any help or advice on the issue is highly appreciated.
    Regards
    NITIN
    Edited by: nitinkk on Jan 12, 2012 7:55 AM

    Dear Rahul,
    Thanks for replay,
    I have checked it but the issue comes  with the discribe procedure.
    and we have solved it now.
    Regards
    NITIN

  • Scheduling Bex Query

    I've been reading the docs. on the reporting agent and I'm still not understanding how to set this up. My goal is to populate the Global Cache with query data.
    I have developed several Bex Queries with 2 selection variables. I have also created a variant for these.
    How can I schedule this query to run each morning possibly after the nightly loads are completed.
    Thanks
    Richard

    Hi,
    Basically under Reporting Agent --> you have to create 'Scheduling Package' for your web template with one given setting.
    Then this can be included in the Process chain for daily scheduling.Use the Process type "Precalculation of Web Templates" and provide your scheduling package.
    The start time will be the start time of the start process.
    Please see below,
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/content.htm
    Thank you
    Arun

  • VBA and Bex 7- Event to use in VB code BEFORE Query Refresh ?

    Gurus.. is there a Bex Event that I can use to 'intercept' a Refresh Query command to Bex and run some VBA first ? I'm trying to find a way to solve the analysis grid overlap problem when two queries are provided on one Excel worksheet, and navigation takes place.
    I've been able to figure out how to bring the results areas together (by deleting blank rows between them), but I'd like to be able to add a chunk of blank rows between analysis grids before the queries actually refresh.

    Hi Charlie,
    if you're interested:
    I've found a way to move the areas after the refresh - using the callback event.
    The logic is generally:
    - Check where analysis-grid for DP1 ends
    - Leave some empty lines
    - Move the offset of DP2 here.
    - Repeat the same for further DP's.
    There's only one hatch: I've got some trouble to reactivate the BEx-context-menu after this momvement.
    So far I found only the workaround "do another refresh" to solve this issue; that's ok but not 'beautiful'.
    Let me know if you need further input.
    Maybe you've got an idea for my issue:
    I'm looking for a way to execute the a routine only once after refresh - even if there are multiple queries in a workbook.
    The problem is that I do not know the order of the query-refresh or any flag that I could use to identifiy the "last query to be processed in this refresh-run".
    Kind regards,
      Marco

  • Materialized views - schedule, indexes, query rewrite, etc.

    I'm trying to get the hang of materialized views and need some help . . .
    running Oracle 10gR2
    I created a materialized view as follows:
    CREATE MATERIALIZED VIEW "MY_SCHEMA"."USERS"
    AS
    SELECT * FROM "USERS"@PRODUCTION -- to copy the USERS table from my production database to this database
    Worked fine. So far so good. Then, I altered it to schedule the refresh:
    ALTER MATERIALIZED VIEW "MY_SCHEMA"."USERS" REFRESH FORCE START WITH SYSDATE NEXT TRUNC(SYSDATE + 1) + 4/24
    -- to schedule a refresh immediately (SYSDATE) and every morning thereafter at 4:00 am (I think)
    then, I wanted to enable query rewrite, so I issued the following command:
    ALTER MATERIALIZED VIEW "MY_SCHEMA"."USERS" ENABLE QUERY REWRITE;
    and I got the
    ALTER MATERIALIZED VIEW succeeded.
    message for both of those commands (I'm doing this in SQL Developer).
    Then, I edit the materialized view in SQL Developer, click on the 'SQL' tab, and get the following:
    CREATE MATERIALIZED VIEW "MY_SCHEMA"."USERS"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TBLSPC_PHIGH"
    BUILD IMMEDIATE
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TBLSPC_PHIGH"
    REFRESH FORCE ON DEMAND START WITH sysdate+0 NEXT TRUNC(SYSDATE + 1) + 4/24
    WITH PRIMARY KEY USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS SELECT "USERS"."User" "User","USERS"."Logon" "Logon","USERS"."Name" "Name","USERS"."Password"
    "Password","USERS"."Level" "Level","USERS"."Producer" "Producer","USERS"."Deleted" "Deleted","USERS"."ClaimDoctor"
    "ClaimDoctor","USERS"."UserType" "UserType","USERS"."Locked" "Locked","USERS"."Scheduler"
    "Scheduler","USERS"."RestrictDays" "RestrictDays","USERS"."First" "First","USERS"."DisableAutoChart"
    "DisableAutoChart","USERS"."MaxChartOut" "MaxChartOut","USERS"."MaxHoursOut" "MaxHoursOut","USERS"."EffDate"
    "EffDate","USERS"."ExpDate" "ExpDate","USERS"."SwipeLogon" "SwipeLogon","USERS"."SwipePassword"
    "SwipePassword","USERS"."PwdLastChanged" "PwdLastChanged","USERS"."Audit" "Audit","USERS"."IsInstructor"
    "IsInstructor" FROM "USERS"@PRODUCTION.REGRESS.RDBMS.DEV.US.ORACLE.COM "USERS";
    The problems I've encountered so far:
    1) I created this two days ago and changed the value of one column in one row in the 'source' USERS table
    (USERS@PRODUCTION) as a test case. So far, that change has not propagated over to my materialized view even though
    it has had two chances to do so (yesterday morning at 4:00 am and this morning at 4:00 am).
    2) I enabled QUERY REWRITE. Why does it still show DISABLE?
    3) The primary key of the table came over (as far as I can tell) because it shows in SQL Developer. However, the
    indexed columns are no longer indexed. Do I need to recreate those indexes manually and will they persist?
    4) As you have guessed, I have just taken the plunge into materialized views, and have not been able to find
    anything on the Web along the lines of 'Materialized Views for Dummies'. So, any and all advice/suggestions/help
    will be welcome.
    Thanks,
    Carl

    The Refresh would be executed by a job submitted in the background.
    Query USER_JOBS (or DBA_JOBS) to see if a job has been submitted and if it has been running (you'd be able to see LAST_DATE, LAST_SEC and NEXT_DATE and NEXT_SEC). \
    If the Refresh job has been failing the FAILURES count would be incremented. If there are 16 consecutive failures, the job is marked BROKEN. (if a job fails, Oracle retries it automatically and keeps retrying till it is BROKEN). If the job has been failing you would get messages in the database instance alert log file and trace files.
    If the Refresh job has not been running check the parameter value for JOB_QUEUE_PROCESSES -- a value of 0 would not run in jobs in the USER_JOBS/DBA_JOBS view. Ask the DBA to increase set this parameter to at least 1.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Materialized View - creation and schedule (To automate Refresh)

    Hi All,
    I have one table based on SQL Query (multiple tables) and loading data every day through procedure.
    When I execute the procedure is taking lot of time to load data. That’s why I am planning to create Materialized view to refresh the data in a table every day at some point of time (ex:-9.00 am).
    Exclude procedure and materialized view are there any ways to refresh the data?
    Can you and all please help me to create materialized view and schedule (Automate refresh).
    begin
    insert into CLAIMS_PRODUCT_TAB
    select
    substr(at.ATN_VOUCHER_NUMBER,1,6) as BRANCH,
    t.MONTH_NAME as MONTH,t.FISCAL_YEAR as YEAR,
    bb.ACC_ACCOUNT_TYPE as TYPE,
    aa.ACC_DEPARTMENT_CODE as DEPT,
    pr.PRODUCT_NAME as PRODUCT,
    case bb.ACC_ACCOUNT_TYPE when '1301' then 'Claims Paid' when '5383' then 'Claims OS' end as HEAD,
    case aa.ACC_DEPARTMENT_CODE when '31' then 'OD' when '32' then 'TP' when '39' then 'TP Pool' end as DEPT_NAME,
    count(distinct at.CLAIM_ID) as CLAIMS,
    --count( distinct at.POLICY_ID) as POLICIES,  
    sum(atd.ATD_CREDIT_AMOUNT - atd.ATD_DEBIT_AMOUNT) as totals
    from
    ACCOUNTING_TRN_DETAIL atd,time t,
    ACCOUNT bb,
    ACCOUNT aa,claim c, policy p,product pr,
    accounting_transaction at
    where bb.ACC_ACCOUNT_ID = aa.ACC_ACC_ACCOUNT_ID
    and at.CLAIM_ID = c.CLAIM_ID
    and c.POLICY_ID = p.POLICY_ID
    and p.PRODUCT_ID = pr.PRODUCT_ID
    and aa.ACC_ACCOUNT_ID = atd.ACC_ACCOUNT_ID
    and atd.ATN_ACCOUNTING_TRANSACTION_ID = at.ATN_ACCOUNTING_TRANSACTION_ID
    and trunc(at.ATN_TRANSACTION_DATE) = t.CAL_DATE
    and (bb.ACC_ACCOUNT_TYPE in ('1301','5383'))
    group by substr(at.ATN_VOUCHER_NUMBER,1,6)
    ,t.MONTH_NAME
    ,t.FISCAL_YEAR,bb.ACC_ACCOUNT_TYPE
    ,aa.ACC_DEPARTMENT_CODE
    ,pr.PRODUCT_NAME
    , case bb.ACC_ACCOUNT_TYPE when '1301' then 'Claims Paid' when '5383' then 'Claims OS' end
    ,case aa.ACC_DEPARTMENT_CODE when '31' then 'OD' when '32' then 'TP' when '39' then 'TP Pool' end );
    end;
    Thanks and Regards
    Venkat

    Is the MV and the source tables on the same database? If this is a remote MV, then check the source site if there are any issues (TEMP, UNDO space issues).

  • How scheduling the data refresh for a published Excel workbook - SharePoint 2013

    Hi,
    I've implemented an Excel workbook that connects to a SSAS Tabular data source and I've published it on SharePoint.
    Now, how can I implement a scheduled data refresh if it is possible?
    Thanks

    Hi pscorca,
    If  my understanding is correct , you want to implement a scheduled data refresh on SharePoint 2013 and the data is from a SSAS Tabular data source.
    Below are some articles for you to take a look:
    Data Sources Supported (SSAS Tabular)
    http://technet.microsoft.com/en-us/library/gg492165.aspx
    Get data from Analysis Services
    http://office.microsoft.com/en-in/excel-help/get-data-from-analysis-services-HA102837073.aspx
    PowerPivot Data Refresh with SharePoint 2013 and SQL Server 2012 SP1 (Analysis Services)
    http://technet.microsoft.com/en-us/library/jj879294.aspx
    Refreshing PowerPivot Data in SharePoint 2013
    http://blogs.msdn.com/b/analysisservices/archive/2012/12/21/refreshing-powerpivot-data-in-sharepoint-2013.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Query refresh

    Hi,
    i get the following error when i refresh a workbook which has 6 queries.
    Cannot find the results area for a query, probably all its cells were deleted. please define a new location for the results area.
    and then when i click ok in the window.
    new window pops up: Repair results areas
    enter value.
    this happen only when i refresh all of the workbook i tried refreshing each query in the workbook seperately n i dont get this message can someone please tell me how to solve this.
    thankyou.

    I think you still not solved this problem:
    Query results
    Did you try what suggested by Eugene ?
    Hope it helps!
    Bye,
    Roberto

  • Query refreshing problem

    Hi All ,
                      We got this message when refreshing a detailed query from PA in an existing work book
                                    RFC_ERROR_SYSTEM_FAILURE
                                    error : No roll memory of length 86716416  available for event stack
                       However, if you refresh the query form the server it works fine
                        Any ideas .. for this problem?..
    Regards,
    Aditya

    txs..

  • Schedule adhoc query

    We want to use Personal ids to record work permits. In this infotype you can enter a valid to date.
    Can we create an adhoc query which can select all data where the valid to date is within the next 90 days ?
    Can we schedule this adhoc query so that it runs nightly and sends the report to a given email address?

    Hi,
    For this you have to use background job processing and workflow..
    Regards,
    Kapil Kaushal

  • Af:query refresh problem

    Hi OTN,
    I am using JDeveloper 1.1.1.3 and ADF Faces with ADF BC Components.I have a search page having af:query component,delete button and a af:table component.While clicking the delete button,It will change the status of selected row and remove from the search result .In my case status is updating in database but not in search grid.It will reflect after clicking the search button of af:query panel.So please point me a solution for programmatically refreshing the af:Query

    Hi Dinil,
    Try this -
    1. Open the View Criteria section in your view object.
    2. On the right top corner, check if Query Execution mode is "Database".
    3. If it is "database", change it to "In Memory".
    Hope it works
    Regards,
    Srinidhi

  • Schedule/ db Query

    Hello,
    At the moment I'm trying to build a webbased
    timesheet/schedule program. However I have a question about how to
    get the results ordered on the webpage. What I would like to show
    on the webpage is a table with the results for a week. I would like
    to use the days as the heads of the columns; mo u we th fr sa su.
    For each day I would like to show the employees that are working,
    and the time IN and OUT that day. How is this possible? Is it
    possible? Some employees work on monday, some every day, some 2x on
    differend times in a day...
    Also in the weektable I only want to show the results for a
    specific department.. Hopefully it is understandable what I mean...
    I use the following query:
    SELECT c.*, u.*, l.* FROM cal AS c
    LEFT JOIN usrs AS u ON c.u_id = u.u_id
    LEFT JOIN lo AS l ON l.l_id = u.lo WHERE WEEKOFYEAR('') =
    $weeknumber
    The I get a couple of rows with results for the employees,
    but not how I would like it.. HOw can I display it on the site the
    way I want? Or is this only possible when I do a query per
    day/column? But then again, another problem; how to show that in a
    table then?
    Thank you in advance.
    Regards,
    Kabbi

    yes there are few
    In 11g you get sql resultset where in 10g only tcResultSet
    use below
    Connection con=Platform.getOperationalDS().getConnection();
    Statement st=con.prepareStatement(query);
    ResultSet rs=st.executeQuery();, execute, executeUpdate
    you can PreparedStatement also instead of Statement for complex query
    use like sql
    you can go through below link
    OIM Task to reset users password automatically in 11g
    Edited by: Nishith Nayan on Feb 23, 2012 7:32 PM

  • Schedule sql query

    Dear all,
    I need to schedule some queries (audit related) running at certain time of the day. I can do this using unix shell script.
    can this be done using oracle scheduler - just running a simple sql query and not using pl/sql block
    for ex: 4.1.     select * from dba_stmt_audit_opts where audit_option like '%TABLE'
    kind regards
    thanks
    SL

    You can not schedule a select statement using dbms scheduler. It should be either pl/sql block or os script.
    Edited by: oracle.beginner on Apr 15, 2010 5:23 AM

Maybe you are looking for

  • Problem writing Imovie to disc using IDVD on my Mac

    Using a Mac OS X Snow Leopard 10.6.8 Intel Core with IMovie 11 and IDVD to create movies.  I created the discs using my Sony DVD Direct VRD MC6 and converted the files to .mp4 using Handbrake. I've created several but had some difficulties - mostly i

  • Prob in freqency of the acquired signal

    Hi frnz,       I have a prob in acquiring a signal. By using DAQ iam generating a sine signal and iam acquring the same. During the runtime   i need to change the frequency. The Prob here is delay in changing the frequency. If the output sampling rat

  • Tweak Discoverer Viewer layout

    Hi , I am facing a strange problem while trying to roll out the discoverer viewer reports through discoverer viewer. The users, who have been using Excel sheets for years, are asking for lots of changes in the way discoverer viewer displays data. Alh

  • I  need to scan docs and send by email

    I need to copy the steps to scan docs and send them by email.   I scanned 1 doc and my computer indicated it was sent to Adobe Acrobat pro 9 bur I couldn't find it to email.  I only have a medium need right now@@@

  • Panic-can't move FCE project to DVD

    Help. I have completed a FCE sequence, saved it, but when I attempt to export it to a quicktime self-contained movie I get an "General error #34" Message. The original video is from a Flip camera in the AVI format. I used Streamclip to convert the fo