Schedule a Webi XIR2 report to run for all values of the prompt ...

Hi there,
Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all  150 different prompt values in the LOV (and have 150 different instances)?
BOXIR2, Java deployment.
Many thanks.

You'd be scheduling the document 150 different times, each for one value of the LOV.
You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts.  You'd do something similar, but iterate the prompt setting and scheduling:
    IInfoStore iStore  = (IInfoStore) eSession.getService("InfoStore");
    ReportEngine reportEngine =  ((ReportEngines) eSession.getService("ReportEngines"))
                                    .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
    IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                      + " SI_KIND='Webi' And SI_INSTANCE=0 "
                                      + " And SI_NAME = '" + reportName + "'");
    //============================================================================
    // Open Webi document, then get and set Prompts collection
    //============================================================================
    IWebi            webi    = (IWebi) objs.get(0);
    DocumentInstance di      = reportEngine.openDocument(webi.getID());
    Prompts          prompts = di.getPrompts();
    for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
        Prompt prompt = prompts.getItem(i);
        String name   = prompt.getName();
        if("Enter value(s) for State:".equals(name)) {
            Lov lov = prompt.getLOV();
            lov.refresh();
            Values values = lov.getAllValues();
            prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                    values.getValueFromLov(1)});
        } else if ("Enter Shop Id:".equals(name)) {
            prompt.enterValues(new String[] { "261" });
    //===========================================================================
    // Copy prompts over to InfoObject
    //===========================================================================
    PromptsUtil.populateWebiPrompts(prompts, webi);
    //===========================================================================
    // Schedule Webi report to run once now
    //===========================================================================
    webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
    ISchedulingInfo schedInfo = webi.getSchedulingInfo();
    schedInfo.setRightNow(true);
    schedInfo.setType(CeScheduleType.ONCE);
    iStore.schedule(objs);
Sincerely,
Ted Ueda

Similar Messages

  • Help needed in SD VC Assigning Object Dep. for all values at the 1 time

    Dear, Gurus
    I am successful in achieving pricing in VC the long way example: If Characteristic is Car_Color and values Blue, Red. I assign
    $self.Z_CarPrice=u2019Redu2019 and it works. Z_CarPrice is basically the variant condition linkage with tables SDCOM and VKOND.
    My question is how can I achieve the above by assigning it to the header so that it automatically enters the code $self into all values without me having to go into it 1 by 1 and assigning the codes? Or what is the best way in achieving the results?
    If I have 3 characteristics ex: Car_Model, Car_Color, Car_Size? 100's of values?     4th characteristic is Z_CarPrice inside this I have entered all the Values from the 3 characteristics.
    Thanks in Advance

    Hi,
    Try these steps and hope will definitely resolve your issue
    Create one variant table VT_BASE_PRICE with combinations of the char Z_COLOR,Z_MODEL and Z_SIZE as key fields
    Table Structure
    Z_Color               
    Z_Model
    Z_Size
    Z_Car_Price
    Table Contents    
    Z_Color          Z_Model                         Z_Size          Z_Car_Price
    RED          Honda          Big          BP_RED_HONDA_BIG
    RED          Honda          Small          BP_RED_HONDA_SML
    Maintain the table values with all possible combinations and for each combination enter a unique key under Z_car_Price column. Remember the variant key length Max is 26  and you can use any unique value which should give a meaning by looking at
    Once maintained the table write a dependency
    Table VT_BASE_PRICE
    (Z_COLOR = Z_COLOR,
    Z_MODEL = Z_MODEL,
    Z_SIZE = Z_SIZE,
    Z_CAR_PRICE = $self.Z_CAR_PRICE)
    Thus for each combination no need to write the code to infer the variant key. It will automatically choose from table as per configuration values entered.For each variant key you need to maintain price in condition records for condition type.
    Regards,
    Brahmaji D

  • Need to run the report for All Values when Null is passed in parameter

    Hi All,
    In my BIP report, I am using a parameter :asset with Type as Text, which means user will type the values for the parameter in the text box.
    Now, this parameter can take multiple comma separated values. I have a requirement to run the report for All Values when user doesn't enter any value in the parameter text box and if user enters any value(s) then the report will run for those values . The way, I tried to handle that in the query using couple of ways was :
    IMP : My Database is SQL Server
    where
    (table.asset = isnull((:asset), table.asset) or table.asset in (:asset))
    Now this works fine when I give a single asset number but when I give multiple values separated by comma like 123, 345 in the text box, then the statement fails saying 'encountered ,'
    I also tried simply
    table.asset in isnull((:asset),table.asset) -- but this doesn't work as it doesn't allow me to use in operater while using isnull and if i will use = operater then it won't work in case of multiple values
    Any suggestions on how can I handle this? Any help would be highly appreciated.
    Thanks,
    Ronny

    thanks for replying, but i tried this option too, it did not work for me, neither isnull nor coalesce. I mean, the solution work for single value but when i pass multiple values then separated by a comma then it doesn't work and shows me an error like "Incorrect Syntax ','". I am using SQL server as DB and bip is 10.1.3.4.1
    also please share the SR number, so i can also check the same.
    can there be any other work around to this?
    thanks,
    ronny

  • How to avoid report running for all the values in roll up of guided naviga

    Hi
    Thanks in Advance
    I have 3 reports on three different pages of a dashboard. (Implemented guided navigation on one column of each report).When I click on value of guided navigation column it guides me to report 2 for that particular value (is prompted), same way for 3 report also till here it works fine.
    However when I return from report 3 to report 2 and 2 to 1, the reports are running for all the values instead for the value which was passed by guided navigation of previous report earlier (Value on which I clicked to pass to the next report).
    Edited by: 808623 on Nov 9, 2010 2:10 AM

    Yes
    Example : If i click on values 'X' in report 1
    Report 2 shows results for 'X' only. And if i click on Value say 'Y' in 2 then report 3 shows for only 'Y'. But when i rollup from 3 to 2, Report 2 is showing for all values rather than showing 'x'.
    I'm using Link or Image Dashboard Object > Destination>Request or Dashboard (path of previous report)
    Edited by: 808623 on Nov 9, 2010 2:37 AM

  • US Sales Tax Report is running for more than 10 hours

    Hi All,
    Could any one please suggest us on below issue.
    We have observed that "U.S. Sales Tax Report" Concurrent Program is running for more than 10 hours in R12 Production. The system has been upgraded from 11.5.8 to R12. Earlier in 11i, it was running for 1 hour and post upgrade its running more than 10 hours. As this program is a standard Oracle program, We are taking up this issue with Oracle support. But we wanted to know does anyone has the similar issues faced.
    Many thanks,
    Praveen

    Pl do not post duplicates - US Sales Tax Report is running for more than 10 hours

  • How do we create user defined Task in OM & Which report we run for the Task

    Hi
    How do we create user defined Task in OM & Which report we run for the Task.
    Regards
    Rajesh

    You can create tasks using PFCT or path: Human resources> Organizational management> Expert mode> Task catalog in Easy access.
    Check this link may be useful for you: http://help.sap.com/saphelp_40b/helpdata/pt/fb/135d89457311d189440000e829fbbd/content.htm

  • Running-report-for-all-values

    Hi ,
    Based on this link i have implemented this logic....
    http://bischool.wordpress.com/2009/08/26/avoid-running-report-for-all-values-on-dashboard-when-using-multi-select-prompt/
    But for the intermediate report its taking more time to run...nearly 4min...is there any way to reduce it.
    Thanks

    hi User,
    Quick question
    Why you are giving (-1) value's as per the doc we can give any value which has to give no results? Have u tried to give some other value ?
    Next,Do u have left outer joins between those tables? If yes you should face the same problem with the main report because the filters to be same as intermediate report am i right ?
    First tune-up the rpd and get the main report query ,run-it over DB
    Due to huge data and the join taking more time....is there way any thing to add to reduce the time??Huge data ?? Intermediate report will not get any results i think it will not take more time to give a message,but due to join conditions only it is taking long time to run
    Note :Before getting value from DB it will check the where condition( joins)
    Thanks,
    Saichand Varanasi

  • What report is run in SAP to get the DATE on which Users are locked ?

    Hello,
    What report is run in SAP to get the DATE on which Users are locked ?
    I have tried with RSUSR200 ,-- last logon ,last password change , but i did not get a option to find the date on which are Users are locked .
    Can anyone suggest what report should be executed to get the date on which Users are locked and by whom ?
    As a alternate , i  am usig SUIM to get extract this data but i am looking for a report .
    thanks & regards
    Ganesh

    Hi Ganesh,
    You can try the below link where many of the options are described:
    How i can check at what date perticular user was locked and who lock it?
    Regards,
    Nilanjan

  • Reg: MRP Run for all Materials

    Hi Abapers,
    I have an issue where in using MD01( Material Run), i need to raise one PR for all materials below the re-order stock. Currently system creates one PR for each material below the re-order stock.
    Please throw any ideas regarding this.
    Thank you

    Hi ,
    to procure assembly take 10 days.
    And delivery date is after 2 days
    After MRP run , system will take first backward schedulling from delivery date will take 2 days and going forward scheduling and take 8 days .
    So that from current date system will take 10 days so assembly will procure easily .
    Suppose today date 19/05/2011. And delivery date is after 2 days .( on date 21/05/2011 )
    if MRP is run on 19/05/2011. System will create delivery date 29/05/2011.So assembly will be easily procure within span of 10 days from 19/05/2011 to 29/05/2011. Delivery of FG is easily available on 29/05/2011.
    Regards
    Vinod

  • Software Metering Report - Install base for all metered software programs - Returns 0

    Hi All
    I have an issue with one of the software metering reports, Install base for all metered software programs. when run it returns that the metered software is installed on 0 computers.
    All usage reports seem to work correctly and I can see usage data for the monitored applications. But anything related to install base such as the one listed above and "Computers that have a metered program installed but have not run the program since
    a specific date" either return 0 or are blank.
    Any help will be greatly appreciated

    Hi All
    finally found a fix to the problem. It was very closely related to what Gareth  had mentioned regarding Asset Intelligence. The actual method of detecting if a program is installed is done through Software Inventory
    Under Custom Client Settings i had enabled Software Inventory on client but never setup any rules to gather data. So i created a new rule for all *.exe files and around an hour later the report started to show up clients.
    This blog post also describes the method of setting up software inventory correctly 
    Thanks to all the help and hopefully this will aid anyone else encountering similar problems

  • Discoverer report been refreshed for all users

    Hi,
    We have created few reports in discoverer. These reports are been ported on to the portal.
    Totally there are almost 30 portal users. The problem i am facing is the report gets refreshed for all the portal users, due to which we are facing the performing issue. How can restrict a specific report which will refresh only for few users and not for all 30 portal users
    Thanks in advance
    Vishwanath

    Generic, try create as many discoverer portlets as type of refresh you need. and grant access on this portlets for appointed users

  • Costing Run for all Hub Plants

    I just want to understand from you regarding your Monthly Costing Run for all Plants.Actually we have Plant 5000 (Ruwais) which is our Manufacturing Plant having BOM.
    We have two other Plants 7000 ( Shanghai ) and 7100 ( Singapore ) these are our Hub Plants not Manufacturing Plants and having no BOMs. 
    When we run our Monthly Costing Run for Plant 5000 using TCode (CK40N), it’s completes smoothly without any error.
    We have to create a material cost estimate in monthly basis using TCode (KKPAN) before we execute cost estimate for both Plants 7000 & 7100.
    We see these runs at the months end as very time consuming and we are not manage on time set for such update in SAP as part of the month end procedure.

    Hello Yasir,
    In our system I see that PC01 and PC02 are the same for cross plant costing:
    1 - Future Cost Estimate - valid for fiscal year
    2 - Current Cost Estimate - no age restriction
    3 - Previous Cost estimate - no age restriction
    If your system is set this way, then for cross plant costing, it does not make a difference which one you use.
    If all plants are in one company code then the currency should be the same in all, so P rate should not be an issue.
    Take one part number: What period and FY is your current cost estimate? What are the validity dates?
    go to CK11n, input the part number; <b>hub plant</b> number and create cost estimate.
    On the Tab "QTY STRUCT."  you should see only Special procurement data, the plant number should be the mfg plant.
    Look at the Costing Structure.  Top level should be the part in hub plant.
    The first level below should be the part in the mfg plant.
    theTosts should be the same and I would expect it to be the same as the current cost estimate.  (Pay attention to the currency)
    If the first level from the mfg plant is not the same as the current cost estimate, you will need to figure out where that cost estimate is coming from.
    If you would like to send screen shots of your cost estimate screens, give me your e-mail and I will contact you with pictures of what I expect to see.
    Althea

  • You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation

    Hi all
    Have seen a couple threads regarding this but unfortunately nothing that solves my problem thus far!
    Right now, our developers are using the Domain Admin account to promote their website code using MSI files.  I'd like to change this as I feel the Domain Admin account should be on lock down and only used when absolutely necessary, pretty common.  The
    same goes for my account too, I would like to absolve as much use of the Domain Admin as I can.
    Problem is, when they run installers from their own accounts, they receive this error: You do not have sufficient privileges
    to complete this installation for all users of the machine. Log on as administrator and then retry this installation
    The accounts they are using are part of the Built In Administrators group and the Domain Admins group... I'm not sure what other permission you'd need in a domain?  We've gone as far as explicitly giving them local admin access on this server and still
    nothing changes.
    Is there a Group Policy or something that I can change to provide install rights and possibly remove these accounts as Domain Admin and more along the line of Power User?
    Thanks much for your help!
    Ryan

    Hi,
    You could use Software Restriction Policies (SRP’s) or Applocker(supported on Windows server 2008 R2/Windows 7 only) to restrict the running
    of the application for specific user.
    Description of the Software Restriction Policies
    http://support.microsoft.com/kb/310791
    HOW TO: Restrict Users from Running Specific Windows Programs
    http://support.microsoft.com/kb/323525
    How to Implement Group Policy Security Filtering
    http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Security-Filtering.htmlPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Where to look for all value mappings being used in ID

    Hi All,
              Where to look for all value mappings being used in ID?
    XIer

    Hi,
    Let me re-frame it, Do u want to know where all the value mappings(created in ID) is used in Mapping Program of IR, isn't it?
    If yes, then it's not possible( as far as  I know).
    raj.

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

Maybe you are looking for

  • Nav bar problems; please help.

    Home Birthday Anniversary For Her For Him For Mom For Dad Just Because Making Up Can anyone help?  This is the html for my nav bar, but when I "view in browser" I get a cannot display page message.

  • Guys what do i have to do to get turbo or ultra turbo to work

    iam able to use fast but not turbo or ultra turbo. here is my specs and settings can you guys please tell me what i need to change in order to be able to use turbo and ultra turbo settings. P4 2.4GHz HT 800MHz fsb 2* 512mb verto high speed ddr 3500 R

  • IPod shows "Do Not Disconnect", Nothing happens...

    So I bought a Nano 2GB last week at my Wal-Mart and it worked perfectly up until last night. I plugged it into my computer to load some songs when the backlight wen off and showed the black and white "Do Not Disconnet" screen. I tried the updater to

  • Get my temporary IP

    Hi friends I need to get out my temporary IP given to me by my provider. The remote IP doesn't come back with the HTTP protocol to the client. I imagine there must be a service on the web, where the server gets your temporary IP and gives it back to

  • What does unauthorised mean

    i received an email response from a brady req more info to my question when i clicked on the various links to provide the info the support screen opened with - Unauthorized It appears you're not allowed to view what you requested. You might contact y