Write OBIEE report results in database table

Hi everyone,
I need to implement a process that executes an OBIEE report and writes the result rows to a database table.
How can this be done?
Thanks,
Alex

You can do it with delivers/scheduler and a script.
Delviers give the content to the script and you can do what with it.
Check this document :
http://www.oracle.com/technology/products/bi/files/advanced%20delivery%20with%20bi%20publisher%20delivery%20manager%20api.doc

Similar Messages

  • Questions on OBIEE reporting against transactional Database

    Hello guys
    I have a situation where I have to bring in 5 tables from transactional database to do reporting on.. I looked at the tables, there are not typically dimension or fact tables. Each table contains information very specifically, at the same time all tables have numeric values that needed to be aggregated at the lowest level of that table..
    I can join all these 5 tables together knowing the key columns. However, this is basically joining 5 tables with fact measures... Since this is transactional database which we don't own, so I can't create views nor changing the table structures..
    I wonder how would I be able to configure such model in OBIEE?
    Any thoughts?

    Thank you for the reply..
    The specific situation I have here is:
    I have 4 tables that I am polling directly from the4 store's cash register (Oh yea, real real time), they are customer, receipt line, receipt header, inventory,
    The physical join is: they are customer-----> receipt line<-----receipt header <------------inventory...
    In the BMM layer, each of these 4 tables have columns that should be measures, such as customer.customer credit limit, receipt line. quantity, receipt header. reciept tendered, inventory.quantity on hand... They are more measure columns from each table, but I am just listing one from each..
    In this case if i set the aggregation rule on each column, then the BMM model won't a star schema anymore because every table can be fact..
    I thought about adding all the measure columns into 1 logical fact table, which then the logical fact will have 4 LTS: customer, Re Line, Re Header, Inv.. This will be fine if I am only dealing with 1 store... However, in reality there will be 50 stores with the same exact tables/structures but on different servesr. Therefore, the logical fact will end up with 4*50 = 200 LTS each has fragmentation defined "store number = NYC or something else"..
    Just wondering if combining all the measures in one logical table is the only way to model this design or not? What would be the best thing to do if in this situation I have to report against multiple data source of the same tables in 1 subject area?
    Please let me know your thoughts..
    Thank you

  • Trigger a Report after a Database table is loaded

    Hello,
    Does anyone know a good way to trigger a Webi report to run or not run based on if the data is loaded in to the dirving table? I need to stop a report from running if the data in the table loads late, but not sure the best way to make this work.
    Thanks,
    Tammy

    If your database can write a file to a specific location, you could make it trigger the creation of an event on your Webi server. You can then use this as an event to wait for in your scheduling parameters under events.

  • Use Formule on FORM with REPORT - result stored at table

    Hi all,
    What is the best solution for?
    I have region with FORM WITH REPORT on the same PAGE.
    Values stored at table INFO with column ID, MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN, SUM1, SUM2
    ITEMS on the form:
    P1_ID (hidden)
    P1_MYDATE (date picker)
    P1_TIME_START_HOUR (select list)
    P1_TIME_START_MIN (select list)
    P1_TIME_END_HOUR (select list)
    P1_TIME_END_MIN (select list)
    P1_SUM1 (hidden)
    P1_SUM2 (hidden)
    After user fill in MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN then I need proces for calculation SUM1 en SUM2. Result stored (one record) at table INFO.
    Report shows all columns. User had possibility to update the record
    Formule:
    Select
    (CASE
    when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
    THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    (interval '00 00:00:00' day to second)
    ,12,5)
    ELSE '08:00'
    END) SUM1,
    (CASE
    when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
    THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
    (interval '00 04:00:00' day to second)
    ,12,5)
    ELSE '04:00'
    END) SUM2
    FROM INFO
    where id=:ID
    What is the best way for the calculation: computation or processes or etc? The calculation after or before user push button(New:create button of Update:Apply Changes)?
    How to fill the answer (SUM1 and SUM2) at table INFO?
    Thanks Walter

    I have something similar I use:
    DECLARE
      str_day      VARCHAR2(10);
      dt_indx      DATE;
      db_dt_indx   VARCHAR2(20);
      str_st_tm    VARCHAR2(20);
      dt_st_tm     DATE;
      db_st_tm     VARCHAR2(20);
      str_ed_tm    VARCHAR2(20);
      dt_ed_tm     DATE;
      db_ed_tm     VARCHAR2(20);
      shft_flag    NUMBER;
    BEGIN
      str_day    := :P1050_DATE_MM || '/' || :P1050_DATE_DD || '/' ||  :P1050_DATE_YYYY;
      dt_indx    := to_date(str_day, 'MM/DD/YYYY');
      db_dt_indx := to_char(dt_indx, 'MM/DD/YYYY');
      str_st_tm  := str_day || ' ' || :P1050_TIME_IN_HH || ':' || :P1050_TIME_IN_MI || ' ' || :P1050_TIME_IN_AM;
      dt_st_tm   := TO_DATE(str_st_tm, 'MM/DD/YYYY HH:MI AM');
      str_ed_tm  := str_day || ' ' || :P1050_TIME_OUT_HH || ':' || :P1050_TIME_OUT_MI || ' ' || :P1050_TIME_OUT_AM;
      dt_ed_tm   := TO_DATE(str_ed_tm, 'MM/DD/YYYY HH:MI AM');
      --Alter date if night shift
      SELECT NVL(:P1050_NIGHT_FLAG,0) into shft_flag from dual;
      IF dt_ed_tm < dt_st_tm THEN
        dt_ed_tm := dt_ed_tm + 1;
      END IF;
      db_st_tm   := to_char(dt_st_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
      db_ed_tm   := to_char(dt_ed_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
    end;You'll need to modify it for your page variables.

  • Get ALV Report's Result Into Internal Table

    Hello everyone,
    is there a way to get a alv reports result into an internal table?
    For example: is it possible to get the values from transaction S_ALR_87012078.
    I mean i want to write a function an it will give you the alv reports result as internal table, so  you won't have to dig the reports code in.
    thanks to any answers from now. bye.

    Hi
    This is a wrapper program which will execute the standard program and capture the output as we are using list to memory
    Then after we will be using LIST_FROM_MEMORY and 'LIST_TO_ASCI'
    submit rhrhaz00 exporting list to memory
    and return
    with pchplvar = pchplvar
    with pchotype = pchotype
    with pchobjid in pchobjid
    with pchsobid in pchsobid
    with pchseark = pchseark
    with pchostat = pchostat
    with pchistat = pchistat
    with pchztr_d = pchztr_d
    with pchztr_a = pchztr_a
    with pchztr_z = pchztr_z
    with pchztr_m = pchztr_m
    with pchztr_p = pchztr_p
    with pchztr_y = pchztr_y
    with pchztr_f = pchztr_f
    with pchobeg = pchobeg
    with pchoend = pchoend
    with pchtimed = pchtimed
    with pchbegda = pchbegda
    with pchendda = pchendda
    * with pchwegid = pchwegid
    * with pchsvect = pchsvect
    * with pchdepth = pchdepth
    with infty in infty
    with subty in subty
    with vdata = vdata
    with info = info.
    data: list like abaplist occurs 0 with header line.
    data: txtlines(1024) type c occurs 0 with header line.
    clear list.
    refresh list.
    clear tbl_reportlines.
    refresh tbl_reportlines.
    call function 'LIST_FROM_MEMORY'
    tables
    listobject = list
    exceptions
    not_found = 1
    others = 2.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    call function 'LIST_TO_ASCI'
    * EXPORTING
    * LIST_INDEX = -1
    * WITH_LINE_BREAK = ' '
    * IMPORTING
    * LIST_STRING_ASCII =
    * LIST_DYN_ASCII =
    tables
    listasci = txtlines
    listobject = list
    exceptions
    empty_list = 1
    list_index_invalid = 2
    others = 3
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    else.
    tbl_reportlines[] = txtlines[].
    call function 'LIST_FREE_MEMORY'.
    endif.
    Here is the simple example program
    *Example Code (Retrieving list from memory)
    DATA BEGIN OF itab_list OCCURS 0.
    INCLUDE STRUCTURE abaplist.
    DATA END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
    filler1(01) TYPE c,
    field1(06) TYPE c,
    filler(08) TYPE c,
    field2(10) TYPE c,
    filler3(01) TYPE c,
    field3(10) TYPE c,
    filler4(01) TYPE c,
    field4(3) TYPE c,
    filler5(02) TYPE c,
    field5(15) TYPE c,
    filler6(02) TYPE c,
    field6(30) TYPE c,
    filler7(43) TYPE c,
    field7(10) TYPE c,
    END OF vlist.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = itab_list
    EXCEPTIONS
    not_found = 4
    OTHERS = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
    list_index = -1
    TABLES
    listasci = vlist
    listobject = itab_list
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE '0'.
    WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.
    Re: alv to internal table

  • How to delete the complete contents of database table ? should be empty !!

    Hi Guys,
    I have requirement where i have delete the contents of database table..i have make it empty (no records at all) and then i have to fill it with the records from the excel sheet.
    I can upload data from the excel sheet.
    Please tell me how to delete the complete contents of the database table ??
    Regards
    Rahul

    hi ,
    just write like this,
    delete from <database table>.
    commit work.
    sample code, here edpar is database table.
    delete from edpar." FROM TABLE g_tab_delete.
      call function 'DB_COMMIT'.
      loop at g_tab_edpar into g_wa_edpar.
        insert into edpar values g_wa_edpar.
        if sy-subrc  eq 0.
          move-corresponding g_wa_edpar to g_wa_edpar1.
          append g_wa_edpar1 to g_tab_edpar1.
        else.
          move-corresponding g_wa_edpar to g_wa_edpar2.
          append g_wa_edpar2 to g_tab_edpar2.
        endif.
      endloop.
    that's all it works.
    reward points if helpful.
    regards,
    seshu.

  • Ability to send the results of a report query to a table in the database

    Hi Guys
    Is it possible to send the results of a report query to a table in the database ?
    Thanks

    Yes.
    For this purpose, you can use :
    * the delivers advanced option
    http://gerardnico.com/wiki/dat/obiee/bi_scheduler/advanced_publication_delivers
    * the SOA API
    http://gerardnico.com/wiki/dat/obiee/obiee_soap_eclipse
    This two solutions need some development skills.

  • Database Table where MRP Run results are saved-Urgent

    Hi Gurus
    i need your help in identifying the database table where the MRP Run results are saved , this is needed for creating a custom report similar to MD45(but for entire plant) where i can look and pull the sum of all the receipts and issues, ATP Quantity for a given material in a particular plant
    and ignore zero quantities in the receipts and issues field
    i tried in <b>MDTB</b> table, MDTB-MNG01 Quantity received or quantity required but it has no entries maintained in it and so it cannot be used.
    So can you please help me with the table where i can get this information asap
    thank you very much for your time and solution

    Please use the code below which will help you in extracting data from MRP table.
    You can enhance this program basing on your requirement.
    *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    A sample program to extract data from the MRP table.
    *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    REPORT ZMRPTABLE.
    TABLES: MDKP,  "Header Data for MRP Document
            MDTB,  "MRP table
            MDTC,  "Aggregated MRP table items
            T457T. "Description of MRP elements
    DATA: BEGIN OF MDTBX OCCURS 0.
            INCLUDE STRUCTURE MDTB.
    DATA: END   OF MDTBX.
    SELECT-OPTIONS: PLANT FOR MDKP-PLWRK OBLIGATORY,
                    MATNR FOR MDKP-MATNR OBLIGATORY.
    CLEAR: MDKP, MDTB.
    SELECT * FROM MDKP WHERE DTART EQ 'MD'
                         AND MATNR IN MATNR
                         AND PLWRK IN PLANT.
        WRITE:/ MDKP-MATNR, MDKP-PLWRK.
        IF MDKP-CFLAG EQ 'X'.
           CLEAR MDTBX. REFRESH MDTBX.
           IMPORT MDTBX FROM DATABASE MDTC(AR) ID MDKP-DTNUM.
           LOOP AT MDTBX.
             MOVE MDTBX TO MDTB.
             SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
                                          AND DELKZ = MDTB-DELKZ.
             IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
             WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
                                              MDTB-MNG01, MDTB-LGORT.
           ENDLOOP.
        ELSE.
           SELECT * FROM MDTB
                         WHERE DTNUM EQ MDKP-DTNUM
                         ORDER BY PRIMARY KEY.
             SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
                                          AND DELKZ = MDTB-DELKZ.
             IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
             WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
                                              MDTB-MNG01, MDTB-LGORT.
           ENDSELECT.
        ENDIF.
    ENDSELECT.
    This is taken from www.sap-img.com
    Hope this helps you.

  • No data in Portal Database tables for Activity Report

    Hi experts,
    I've developed an Activity Report application in SAP Portal 7.0, which went live but the report shows no data.
    We are pulling data from 2 portal database tables: WCR_WEBCONTENTSTAT and WCR_USERPAGEUSAGE
    In non production environment there is data in the report but there is no data in the production environment.
    The Activity Report service is already activated/started and set to true.
    What could have caused this? And what should we check now?
    What other configurations/setup should be done?
    Regards,
    Greg

    Hi Greg,
    Those are the aggregated tables. If they are not filled with data although the Portal Activity Report is activated, you should check whether the aggregation finished successfully.
    In the older SPs there were some problems that were fixed in later SPs of 7.0.
    In order to have the latest version of Portal Activity report, you can check SAP note 1084379 - Portal Activity Report - Latest Version (SDA file).
    You can compare the SP via the MANIFAST file, as it contains the version and SP number.
    In order to troubleshoot problems in Activity Report, you can follow SAP note: 1690023 - Portal Activity Report - Component-specific Note
    Some basic checks that you can do:
    Run query on the raw data tables to check since when there is data in those tables:
    select min(timestamphour) from SAP<SystemID>DB.WCR_WEBCNODESTAT;
    If there is too much data from long time ago, then you should delete the old data, and leave only the new data (there is anyways retention time for the data to be kept).
    If there is no data, then it means that the Portal Activity Report does not collect data, and not really activated (usually this is not the case).
    The aggregation runs every top of the hour, so you can check in the default traces for an error during that time.
    In most of the cases something went wrong while aggregating the data.
    As a result the aggregation is not finished, so the transaction is not being committed, and the aggregated tables stay empty.
    If there is a DuplicateKeyException in the trace, you can follow SAP note 1054145 - Duplicate Key Exception.
    If you have any more questions, please don't hesitate to ask.
    I hope this information helps,
    Thanks & regards,
    Michal Zilcha-Lang

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • How to increas the width of the Table in OBIEE Report

    Hi ,
    I am creating a OBIEE report, the report has table and 30 column in it. When I am viewing the report in an excel file , its appearing good but the width of the table is so small if I am viewing the same in internet explorer/PDF .I dont know how to increase the width of the table. Could you please sort this issue out.
    Thanks
    Govindan P

    - you can increase the width of a column -> column format values -> Additional Formatting Options
    increase the width:
    - Report level:
    result tab -> Click on Format container of Table -> Additional Formatting Options
    u can assign value width : 500 height:.....
    - dashboard level:
    Edit options -> section -> Format section -> Additional Formatting Options
    here also u can change the width
    u can assign value width : 500 height:.....
    pls mark it helps....
    Edited by: 979481 on Feb 6, 2013 1:25 AM

  • Scheduling Report output to a Database Table

    Hi,
    Scenario:
    I have a RPT - loaded on the BO server (BO XI R2) - (which uses a stored procedure and a formula to populate the report) which generates the data in a tabular format.
    Requirement:
    I would like to insert the resultant rows generated in the report to a database.
    Is there a possibility to schedule a report output to a database table?

    It seems that what you want to do is some kind of ETL, you should consider a right tool for doing this. For example, BusinessObjects Data Integrator. By BODI, you can directly transform the source data to what you need to the destination.
    If you still need the report for presentation, rather than purely using it as a transformation tool, I suggest you do this. Implement a Java program (.NET is also possible) to implement the Program interface, so that you Java program can be added to BusinessObjects Enterprise as a program object. In this Java program, what you do is: first, schedule the report, and then open the report, read the row sets and insert them to the destination table. This process involves the Business Objects Enterprise SDK and the Report Application Server SDK.
    Finally, you can in turn schedule this program objects, so that it will periodically run the report and output to the destination table.

  • Crystal Reports Web Elements - database write back question

    Hi,
    I have a question about Web Elements. In description of them on SAP site it says they can provide "write-backs to the database". This is something I would really like to see. I have a scenario:
    User sees a long report and sometimes she needs to add a quick note that should be saved into the database. That note can be entered into WETextArea I suppose and WESubmit button click can be an event  trigger for such a write back.
    I would like to see example of such functionality on Crystal Report rpt file.
    Please advise if anybody knows, I would highly appreciate your assistance.
    Regards, Grettir

    hello,
    webelements can be used for the interface to database writebacks...they don't do the writebacks themselves but create the interface to make it easier for an end user to add annotations etc...these values are then passed to a second report or a subreport. using the default prompting interface makes this quite difficult.
    here's where the database writebacks are done...since version 9 of crystal reports there have been command objects. command objects have the ability to use any database syntax that is compliant with the database connection. i.e. if the syntax can go through the odbc layer then you can do this in a command in crystal reports.
    commands will honour database securities so you don't have to worry about someone dropping a table if rights have been properly assigned. a word of caution there to ensure that database rights have been done properly as you don't want all end users to have the ability to write a report that can do database updates.
    commands are also database specific so you would have to check your database online help to see what syntax would be appropriate.
    the workflow would be to have 2 reports, one that had the webelements user interface and one that did the writeback. this user interface report would have the text object and submit button and using open document syntax, the values would be passed to the 2nd report that had the command object. the command object would have a prompt that would take the values from the open document url and then use the values in the write back.
    for example,
    1) the user interface report has one text object called "t1" and one submit button.
    2) the target command object report has a prompt called "t1".
    3) the target report command object has syntax like
    INSERT INTO yourtestable
    VALUES    ('{?t1}')
    SELECT     1
    4) yourtesttable in this case has only one text field
    5) the "SELECT 1" at the end of the command ensures that a dummy value is returned after running the update...to avoid a database error
    6) this syntax would be for sql server
    this is of course a very simplified example.
    if you are at tech ed phoenix, please drop by the business objects test drive area & i will be there. i can show you a bunch of different webelements examples and write back reports etc. until you become quite bored
    i hope that this helps,
    jamie

  • Hello! Want to programatically alter the Report.Database.Tables info

    Post Author: RobotSlave
    CA Forum: .NET
    Crystal Reports 2008    CFK0Y-KVURM2M-00UFAFF-N43MCrystal Reports 2008 for Visual StudioMicrosoft Visual Studio 2005Version 8.0.50727.762  (SP.050727-7600)Microsoft .NET FrameworkVersion 2.0.50727
    Installed Edition: Enterprise
    Microsoft Visual C# 2005   77718-007-4000003-41954Microsoft Visual C# 2005
    why? to save time thats why, I have a zillion reports that I have to point at a new database periodically, (and I have some time on my hands here at the ranch) so I decided to automate the process. I made a windows application with Visual Studio that opens the rpt files as objects using the crystaldicisions object object model thingy, pulls out the table logoninfo.connectioninfo stuff and sets it to a new location THEN when I try to set the report.database.tables back to my new modified version it says that the tables property is a readonly thingy. I can open and save, but I cant modify the part I want to... how can I alter the serverName and databaseName properties such that I can save the result?
    thank you!
    much love.

    Post Author: RobotSlave
    CA Forum: .NET
    I was making a new copy of the database.tables and then editing it then trying to set the whole reportdocument.database.tables = to my modified version, it was readonly so it didnt work. when I just iterate through the tables and set the properties on each one, it works just fine.

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

Maybe you are looking for