Steps to Create a new DataProvider?

Please let me know the steps to be followed to create a new DataProvider(Query) to a newly created Web Intelligence document
Thanks in advance

here is a code snippet that should work in 3.1, in BI  4.0 it won't.
DocumentInstance documentInstance = reportEngine.newDocument("UnivCUID=" + universe.getCUID());
     //Get the name of the default data provider created when the Web Intelligence document was created.
     DataProviders dataProviders = documentInstance.getDataProviders();
     DataProvider dataProvider = dataProviders.getItem(0);
     String dataProviderName = dataProvider.getName();
     //Add data source objects to the query.
     addDataSourceObject(documentInstance, dataProviderName, "Customer Id");
     addDataSourceObject(documentInstance, dataProviderName, "Contact First Name");
     addDataSourceObject(documentInstance, dataProviderName, "Contact Last Name");
     addDataSourceObject(documentInstance, dataProviderName, "Order Amount");
     addDataSourceObject(documentInstance, dataProviderName, "Quantity");
     //Add filter objects to the query.
     addFilterObjects(documentInstance, dataProviderName, "Order Amount", Operator.GREATER_OR_EQUAL, "75000", LogicalOperator.AND);
     addFilterObjects(documentInstance, dataProviderName, "Quantity", Operator.GREATER, "120", LogicalOperator.AND);
     //Run query to update data provider.
     dataProvider.runQuery();
     //Now create a new report and define the report's formatting.
     String reportName = "My Report";
     ReportContainer report = documentInstance.createReport(reportName);
     //Add a new free cell for the title of the report.
     PageHeaderFooter header = report.getPageHeader();
     Cell headerCell = header.createFreeCell(reportName);
     FreeCell cell = addFreeCellToReportBody(report, " Customer Orders ", "Tahoma", 12, StyleType.BOLD + StyleType.ITALIC, 10d, 10d);
     //Add a specific table to my report.
     ReportBlock tableBlock = addTableToReportBody(documentInstance, report, cell);          
     //Add a new chart to the report.
     addChartToReportBody(documentInstance, report, tableBlock);
     documentInstance.applyFormat();
     //Uncomment the code below to save the Web Intelligence document back to Enterprise.
     //Save document to the logged in user's favorites folder.
     IFolder folder = reCommon.getFavoritesFolder();
     //Name of the new Web Intelligence document.
     String documentName = "MyWebIntelligenceDocument";
     //Save document.
     documentInstance.saveAs(documentName, folder.getID(), null, null);

Similar Messages

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

  • Steps to create a new Oracle Application server

    I am in unfamiliar territory and need to create a new Oracle Application Server. I would appreciate any direction or direction to documentation that explains the steps required to establish a new server. Thanks.

    William,
    Have you looked at the Portal section on OTN? We recently added a whole bunch of information under the documentation section.
    It can be found by clicking on Internet Servers under the Products heading on the left hand navigation bar. That page will have a section for Oracle9i Application Server and under that you will see Related Features & Products where there is a link to Portal.
    Rich

  • Steps to creat a new event in Calendar

    Are there guides for Built-In Apps...or all Apps for that matter?
    Seems pretty basic but how is a new event entered into Calendar...what are the steps?

    Open the calender app.  Go to the day you want and double touch it.  (depending on what view you are using, this will open up the day).   At the bottom right of the screen there is a little+ sign. Touch it to create a new event.

  • Is it possible to make the attachment icon on my journals form a compulsary step when creating a new manual journal entry?

    Good day,
    Our company uses EBS 11.5.10.2. The company has a policy whereby any new manual journal needs to have the supporting documentation attached to it, using the attachment icon in the task bar.
    Users sometimes forget to do this, though. This has now prompted management to request that we try and make this process of attaching a document when creating a new manual journal compulsary to the process.
    Is this possible on the current version we are running on?

    Well, that depends on if you are using client/server or web. Currently there is a bug being investigated, which is preventing the cursor size from being altered. For client/server, do the following on the client machine (assuming Windows):
    Control Panel > Accessibility Options > Display > Cursor Width
    By increasing the width, the cursor will be more visible. The same is expected to work on the web, but currently is problematic and being investigated.

  • Steps to create a new order type

    could someone plz tell me how to create a new order type and what other things i should look into to make it work.
    Thanks

    Hi sri
    if you want to go for new order type then copy standard into Z doc type. for example (OR to ZOR) , because there are tables which are assigned to the doc type internally  that get copied when you copy from standard .
    If your requirement is for same sort of doc type with diff changes suggestions is go for  (OR to ZOR)
    Now when you copy form standard to Z doc type , you need to configure as per your requirement in the VOV4  also
    Regards
    Srianth.

  • Detailed Steps to create a new LOV in AK Regions

    Hi,
    Can any one give the information on how to create a new LOV using AK Developer responsibility?
    Thanks

    Hi,
    Can any one give the information on how to create a new LOV using AK Developer responsibility?
    Thanks

  • The "welcome to Thunderbird" pop-up keeps on saying "sorry were unable to communicate with our sign-up server", how do you get past the step and create a new em

    I tried to turn off the firewalls to no avail and have, on multiple occasions tried to complete the setup for a Thunderbird email account and continue to get the same message, the pop up flashes in red "sorry we are unable to communicate with our sign-up server"
    any ideas how you result this issue?

    If it works, the sign up page will connect you to a 3rd party email account provider such as hover or gandi who will require payment. Is this really what you want to do, given that your ISP and other providers (gmail, gmx, hotmail, yahoo) will be happy to give you an account for free?
    To connect an existing email address to Thunderbird, use the route '''File|New|Existing Email Account'''.

  • Step 20 - Create new connection for NORTHWIND user, Northwind - Migrated

    Hello,
    I am migrating the Northwind database from Access to Oracle, and I am following the directions, but when I get to step 20, create a new connection for the Northwind User, Northwind - Migrated, I cannot create the connection. After running the converted model script that was generated by the workbench -- I don't see the Northwind - Migrated database. So how can I create a connection to it?
    Also -- after I ran the script, I did not see any messages in the log showing I ran the script, but the status bar at the bottom of the tool said script finished..... I am confused.
    Thanks!
    Jeff

    Anyone have this same issue trying to migrate the Northwind database to access using migration workbench?
    Thanks so much,
    Jeff

  • I tried creating a new profile to fix my firefox crash issue as well as reinstalling it, is there anything else I can do to fix it?

    When I try to open firefox it immediately crashes and says "Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts." There is no crash ID. I tried to submit a report yesterday, but received no email that it was received. I do not know how long it normally takes for a response. Anyway, I have Windows Vista. I tried reinstalling firefox, which did not work. I followed the steps of creating a new profile and did not try to bring any of my saved settings over to the new profile. Firefox opened, but when I tried to go to comcast.net it immediately closed and came up with the same exact crash error.

    You do not get a response if you submit a crash report.
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)
    *https://support.mozilla.com/kb/Mozilla+Crash+Reporter
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes
    *https://support.mozilla.com/kb/Firefox+crashes+when+you+open+it

  • How to create a new document type for PO and Requisition

    Hi All
    Can you please help me with the steps of creating a new document type for PO and PR. Also the steps that need to be update for the procure pay cycle to work properly. 
    Once the document type is been created. I want to create the PO referecing the new PR and PO document type.I am new in MM.
    Thanks, Ros

    Hi,
    1. You can create new PR and PO docu types at the following path:
    For PR docu type:
    First you need to create number range for docu type or you can use existing number range also. The path for creation of no. range is
    SPRO>Materials Management->Purchasing->Purchase Requisition->Define Number Ranges
    Then create PR docu type at below path and assign no. range to PR docu type here only
    SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types
    For PO docu type:
    Follow same procedure as mentioned for PR docu type. Path is
    SPRO>Materials Management->Purchasing->Purchase Order->Define Number Ranges
    SPRO>Materials Management>Purchasing->Purchase Order->Define Document Types
    If you want to create PO referencing new PR docu type, link the PR docu type to PO docu type at below path:
    SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types--> Link purchase requisition - document type
    Regards
    Chetan

  • Creating a new portal in a new domain - no baseportal template

    Using Weblogic Platform 7.0 on Solaris 8, I'm trying to work through the
    procedure at http://edocs.bea.com/wlp/docs70/dev/newdom.htm "Creating a
    new portal in a new domain."
    Step 1 "Creating the new domain" goes fine. I can start the portal
    server using WL/user_projects/domainname/startPortal.sh and connect to
    its console at http://server:7501/console.
    In Step 2 "Create the new portal", I start up ebcc.sh, open the project,
    and run the Portal Wizard. I get as far as "Portal Templates". The
    portal templates comes up empty; there is no baseportal icon, and I
    can't go any further.
    What's wrong?!?!
    Larry Mulcahy [email protected] [email protected]
    http://www.nyx.net/~lmulcahy/ http://www.frii.net/~lmulcahy/
    PGP key at http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE6F89645
    "I like Linux, but I don't have any part of my body pierced." Roland Latour

    Michael -
    See this document. It should help you out.
    http://edocs.bea.com/platform/docs81/confgwiz/startcw.html#1049231
    Regards,
    Kunal
    "Michael Meyer" <[email protected]> wrote:
    hi,
    I am running BEA Weblogic Portal 8.1 on a linux machine without any grafical
    user interface. On Windows I was using the 'Configuration Wizard' to
    create
    a new domain. Can someone please tell me, how I can create a new domain
    without an grafical user interface? Are there any command line tools?
    Michael

  • How to create a new report using MS Word add-ins?

    Hi, I am a newbie. I am using BI Publisher 10.1.3.4 and l want to create a simple report using BI Publisher from MS Word add-ins. I don't have a default template. What are the steps to create a new report from scratch. I want to create a simple report for one table contains 4 columns & 2 rows data, and then save the report under my folder.
    I am in an urgent need to learn this, any suggestions are highly appreciated.
    Thanks all.

    Thx Everyone, I figured that out. It's simple and clear to me.

  • How to create a new TRANSPORT PACKAGE in BI 7.0

    Two issues
    1) How to check avaliable TRANSPORT PACKAGES in BI 7.0 and
    2) How (steps) to create a new TRANSPORT PACKAGE,So that i can assign all the transport request to that package.
    Thanks

    Hi,
    Steps for creating TRANSPORT PACKAGE
    Go to SE80 and in the obj edit mode select Select DEVELOPMENT COORDINATION tab where u can giv ur PACKAGE NAME and create the package
    Select your Software Component ,Transport Layer
    Package Type = NOT A MAIN PACKAGE and create a request
    and save it.
    Assign points if useful..
    Regards,
    NR
    Edited by: N R Pradeep Reddy on Apr 10, 2008 11:29 AM

  • How to create a new object for a particular class?

    Hi,
      Can anybody please tell  the steps for creating a new object for a particular class.
    Thanks,
    Sreeja

    Declare the object as TYPE REF TO the class and use the CREATE OBJECT statement to create an object.
    DATA <obj_name> TYPE REF TO <class_name>.
    CREATE OBJECT <obj_name>.
    Please mark points if the solution was useful.
    Regards,
    Manoj

Maybe you are looking for

  • Acrobat 9.1.1 pro, Excel 2007, pagination problems

    I have just upgraded from CS3 to CS4 Design Standard. I have been accustomed to producing PDFs from Excel 07 with Acrobat 8 pro, normally selecting a number of sheets from the same Excel workbook to creat a single PDF. I normally use the "page # of 

  • What is a good solid state hard drive for a Macbook Pro (2007 model)?

    What is a good solid state hard drive for a Macbook Pro (2007 model)? I imagine they're still expensive, but I'm curious which would be good picks if I were to go for it.

  • Re: Some Tables are missing: Query Builder

    Thank you!!! I had the same problem and this (table.xml) has helped, I can now see the tables in the left. I'm also not able to see any tables in the "Query Builder". I have tried to explore to see if the fix is similar with no luck. Does the Query B

  • Network Controller for Lenovo N100 3000 0768-EJU running XP PRO

    I am sorry to bug people with this but I am SO frustrated with this.  I have tried everything I can including what I think to have been to load all drivers from the support site.  I cannot get my networking to work and keep getting the message that t

  • Need Help: Trying to remove last shapes from canvas

    I'm trying to move the last shapes from canvas using jButton. when i click on button it doesnt do anything but when i click on that shape it does remove it...can anyone please help me here .. i dont see anythign wrong with it..but may be you guys can