Export Parent Child Report data

Hello,
Does anyone know if it is possible to export Child - parent report data in one file?
Kind regards,
Oli

Thanks for your suggestion. In looking at this some more I see now that the queries are finding my data, but the data is not printing. Simply put, my parent query has student name & number, my child query has attendance dates for that student. The parent portion is working fine with the student name & number appearing on the report, but my child attendance dates are not showing on the report. The repeating frame in which they reside is also not showing. I know the queries are pulling the right data though, because the number of pages I am getting for each student corresponds to that student's attendance data. But the entire frame and data within it are not showing on my report. I have checked to see that the Visible value is set to Yes. Does anyone know what I am overlooking?

Similar Messages

  • Defining Report LayOut for a parent child report

    I have a parent child report. I want to print this report in PDF using BI Publisher. Now I wanted to define a layout for that report using BI template builder. My stratagey for defining Report layuout is
    1. Write a query containing all fields that I need
    2. Convert that query data to XML, one way or the other
    3. Load that XML into template builder.
    4. Define the layout.
    Now the problem is that I need some fields for parent and some from child. If I do not use group buy clause in the query I will not be able to use the tabular format in template builder (taht I wanted to use).
    IF I use a group By caluse then I am unable to select the child fields as they are not the part of group by clause.
    Plz help

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • User defined Parent child report

    I trying to create parent child (dril down report).
    I able to refer parent column as bind variable in child report but unable to refer child column as bind variable in subsequent child report.
    select a,b from parent.
    select x,y,z from child1
    where x = :a
    select e,f,g from child2
    where e = :x ==> this does not work
    Did anyone tried this, if yes please me know did it worked for you and how
    thanks
    -K

    I agree whole heartedly :)
    If you want to make things even more interesting, create some 3rd generation child reports and carry the bind variables throughout the multiple levels - here's an example
    http://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/

  • Creating a new page and new layout in a Parent/Child report.

    Hi,
    Currently I have a Parent/Child Report in Oracle Reports 6i. The report shows Contracts as the parent and the detail of the contracts are the Ads. Sometimes there are many ads which extend the contract to another page. Just a normal Parent/Child report. This report can display many contracts at once. My problem is that at the end of each contract I need a new page with a different layout, for a disclaimer page. I've tried many different scenarios using Anchors and page breaks. Is this even possible with Oracle Reports 6i, to have a new page with a different layout in a contract level repeating frame? Any suggestions would help.
    Thanks.

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • Parent/Child Report

    I have a parent/child data report but am not seeing the data for the child portion. I have a repeating frame which is printing the parent portion. Within that frame I have another repeating frame which should be displaying the child portion of the data but it is not. I have a data link between the two based on an id number. I think the problem is that the child portion is not being passed the id number from the parent. I have some field names which are showing up, but not the data itself associated with these field names. So I think my frames in my layout are good. Why is the parent not passing the id number to the child? I'm thinking there must be something wrong with my data model. Any suggestions on creating this type of report?

    Thanks for your suggestion. In looking at this some more I see now that the queries are finding my data, but the data is not printing. Simply put, my parent query has student name & number, my child query has attendance dates for that student. The parent portion is working fine with the student name & number appearing on the report, but my child attendance dates are not showing on the report. The repeating frame in which they reside is also not showing. I know the queries are pulling the right data though, because the number of pages I am getting for each student corresponds to that student's attendance data. But the entire frame and data within it are not showing on my report. I have checked to see that the Visible value is set to Yes. Does anyone know what I am overlooking?

  • Parent/Child Master Data Type

    I recently created a new master data type in my model, which included one attribute with the 'parent' check box checked - to signify that it was to be used as the parent.
    Upon activating the master data type - the system auto generated several other attributes within the master data type.  My question is, what is the purpose of these additional attributes and how are they to be used?
    Before Activation:
    Attribute
    Description
    Notes
    ID
    ID
    << marked as key and as required
    DESCR
    Description
    << no special check boxes checked
    PID
    Parent ID
    << marked with parent check box
    After activation:
    Attribute
    Description
    Notes
    ID
    ID
    << marked as key and as required
    DESCR
    Description
    << no special check boxes checked
    PID
    Parent ID
    << marked with parent check box
    IDA
    Ancestor: ID
    << auto added after activation
    IDL
    Level: ID
    << auto added after activation
    IDLA
    Ancestor: Level: ID
    << auto added after activation
    IDPTH
    Path: ID
    << auto added after activation
    IDPTHA
    Ancestor: Path: ID
    << auto added after activation
    DEACRA
    Ancestor: Description
    << auto added after activation
    PIDA
    Ancestor: Parent ID
    << auto added after activation

    https://share.sap.com/a:r2l29c/MyAttachments/38b00c31-a7f4-404c-8247-1a99ef4b0509/
    Hey JJ,
    The purpose of these attributes is for parent-child hierachy relationship.
    In addition to above mentioned attributes, you should also notice (via HANA studio), that another Planning object gets generated automatically.  The new planning object should be the name of your parent-child object plus "_ANC" prefix at the end.
    If you take a look at this planning object, you will notice that the object contains all the generated attributes (your attriubute plus "A" prefix at the end) in the definition.
    Once you load data into your parent-child hiearchy object the "_ANC" object will automatically get populated with parent-child node relationship.
    "A-prefix" attriubutes essentially represents the attributes of ancestor in this case.
    In addition, in order to do Ancestor rolllup in your calculation you will also need to create an ancestor planning level which contains all the attriubutes of your base planning level as well as these "A-Prefix" attributes.
    Please take a look at the document we created for "How to configure Parent-Child Hiearchy" from the share link
    It has more detailed information.
    Thanks.
    Daniel.

  • Parent/child reporting

    Hello all,
    I am struggling a bit with a reporting requirement and maybe you as experts can help me to come up with a solution.
    In a report we want to show the turnover of (parent/global) accounts based on a custom field 'expected turnover' in the Opportunity object type. We can show this of course per account, so that's not the problem. The problem is that we want to calculate all the expected turnover for the account in the top of the account hierarchy. We have for example company A (headquarters), which is parent of B, which in turn is the parent of C, which is the parent of D and E. We can do business with all the companies, so they can all have opportunities with the field 'expected turnover' filled out.
    Example:
    Company D has 1 opportunity with an expected turnover of 1,200,000 and another opportunity with an expected turnover of 500,000.
    Company E has 2 opportunities, each with an expected turnover of 450,000
    Company C has one opportunity with an expected turnover of 200,000
    Company B has 1 opportunity with an expected turnover of 1,350,000 and an opportunity with an expected turnover of 750,000.
    Company A has no opportunities at the moment.
    Now we want to report on the total expected turnover for the entire company of which A is headquarters. So we want to know E+D+C+B, but only company B is directly linked to company A, so the question is, how can we report using the indirect links between all the companies.
    We cannot change the account structure, so we cannot say that Company A is the parent on all the accounts. Also we cannot add a field to the account that can select the master account, because there is only one field which allows the user to select another account, and putting the master account or parent account in manually, leaves too much room for errors.
    Does anyone know how this can be solved?
    Thanks in advance.
    Kind regards,
    Niels Rekers

    Niels,
    I know you said you didn't want to put in the master account manually but I think it's the only way. However what if you created a Parent Reporting ID, this will avoid any mistypes of account names? Create a unique identifier for each record and then for those that have a parent account overwite the unique ID with the Parent Id eg
    Company A Parent ID=1234
    Company B Parent ID=1234
    Company C Parent ID=1234 etc
    This would then give you a field that will link your records together without affecting the Account heirarchy.
    Either this or a very long formula that would need modifying every time an account was created.
    These are my only suggestions.
    To maintain this going forwards you create a new "create account" weblink that passes the Parent ID onto the new record, so if they want to create a new account for company F then they go to Company A and click create Account.
    A good way to get a unique ID is to take the last 6 characters of the Row ID into another field as a default value.
    cheers
    Alex

  • What is parent child alv report

    what is parent child ALV report?

    Hi,
    I thing u r asking about Hierarchial sequential list display report.
    Kindly go through the below report it may helps to u the concept of parent child report.
    REPORT  YMS_HIERSEQLISTDISPLAY                      .
    Program with FM REUSE_ALV_HIERSEQ_LIST_DISPLAY                      *
    Author : Michel PIOUD                                               *
    Email : [email protected]  HomePage : http://www.geocities.com/mpioud *
    TYPE-POOLS: slis.                    " ALV Global types
    CONSTANTS :
      c_x VALUE 'X',
      c_gt_vbap TYPE SLIS_TABNAME VALUE 'GT_VBAP',
      c_gt_vbak TYPE SLIS_TABNAME VALUE 'GT_VBAK'.
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.    "#EC NEEDED
    PARAMETERS p_max(02) TYPE n DEFAULT '10' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_2 FOR FIELD p_expand. "#EC NEEDED
    PARAMETERS p_expand AS CHECKBOX DEFAULT c_x.
    SELECTION-SCREEN END OF LINE.
    TYPES :
    1st Table
      BEGIN OF ty_vbak,
        vbeln TYPE vbak-vbeln,             " Sales document
        kunnr TYPE vbak-kunnr,             " Sold-to party
        netwr TYPE vbak-netwr,             " Net Value of the Sales Order
        erdat TYPE vbak-erdat,             " Creation date
        waerk TYPE vbak-waerk,             " SD document currency
        expand TYPE xfeld,
      END OF ty_vbak,
    2nd Table
      BEGIN OF ty_vbap,
        vbeln TYPE vbap-vbeln,             " Sales document
        posnr TYPE vbap-posnr,             " Sales document
        matnr TYPE vbap-matnr,             " Material number
        netwr TYPE vbap-netwr,             " Net Value of the Sales Order
        waerk TYPE vbap-waerk,             " SD document currency
      END OF ty_vbap.
    DATA :
    1st Table
      gt_vbak TYPE TABLE OF ty_vbak,
    2nd Table
      gt_vbap TYPE TABLE OF ty_vbap.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
      v_2 = 'With ''EXPAND'' field'.
    START-OF-SELECTION.
    Read Sales Document: Header Data
      SELECT vbeln kunnr netwr waerk erdat
        FROM vbak
          UP TO p_max ROWS
        INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
      IF NOT gt_vbak[] IS INITIAL.
      Read Sales Document: Item Data
        SELECT vbeln posnr matnr netwr waerk
          FROM vbap
          INTO CORRESPONDING FIELDS OF TABLE gt_vbap
           FOR ALL ENTRIES IN gt_vbak
         WHERE vbeln = gt_vbak-vbeln.
      ENDIF.
      PERFORM f_display.
          Form  F_DISPLAY
    FORM f_display.
    Macro definition
      DEFINE m_fieldcat.
        ls_fieldcat-tabname = &1.
        ls_fieldcat-fieldname = &2.
        ls_fieldcat-ref_tabname = &3.
        ls_fieldcat-cfieldname = &4.       " Field with currency unit
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        ls_sort-tabname = &1.
        ls_sort-fieldname = &2.
        ls_sort-up        = c_x.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_layout   TYPE slis_layout_alv,
        ls_keyinfo  TYPE slis_keyinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        lt_sort     TYPE slis_t_sortinfo_alv," Sort table
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv." Field catalog
      ls_layout-group_change_edit = c_x.
      ls_layout-colwidth_optimize = c_x.
      ls_layout-zebra             = c_x.
      ls_layout-detail_popup      = c_x.
      ls_layout-get_selinfos      = c_x.
      IF p_expand = c_x.
        ls_layout-expand_fieldname  = 'EXPAND'.
      ENDIF.
    Build field catalog and sort table
      m_fieldcat c_gt_vbak 'VBELN' 'VBAK' ''.
      m_fieldcat c_gt_vbak 'KUNNR' 'VBAK' ''.
      m_fieldcat c_gt_vbak 'NETWR' 'VBAK' 'WAERK'.
      m_fieldcat c_gt_vbak 'WAERK' 'VBAK' ''.
      m_fieldcat c_gt_vbak 'ERDAT' 'VBAK' ''.
      m_fieldcat c_gt_vbap 'POSNR' 'VBAP' ''.
      m_fieldcat c_gt_vbap 'MATNR' 'VBAP' ''.
      m_fieldcat c_gt_vbap 'NETWR' 'VBAP' 'WAERK'.
      m_fieldcat c_gt_vbap 'WAERK' 'VBAP' ''.
      m_sort c_gt_vbak 'KUNNR'.
      m_sort c_gt_vbap 'NETWR'.
      ls_keyinfo-header01 = 'VBELN'.
      ls_keyinfo-item01 = 'VBELN'.
      ls_keyinfo-item02 = 'POSNR'.
    Dipslay Hierarchical list
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-cprog
          i_callback_user_command = 'USER_COMMAND'
          is_layout               = ls_layout
          it_fieldcat             = lt_fieldcat
          it_sort                 = lt_sort
          i_tabname_header        = c_gt_vbak
          i_tabname_item          = c_gt_vbap
          is_keyinfo              = ls_keyinfo
        TABLES
          t_outtab_header         = gt_vbak
          t_outtab_item           = gt_vbap
        EXCEPTIONS
          program_error           = 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.
    ENDFORM.                               " F_LIST_DISPLAY
          Form USER_COMMAND                                             *
    FORM user_command USING i_ucomm     TYPE sy-ucomm
                            is_selfield TYPE slis_selfield.     "#EC CALLED
      DATA ls_vbak TYPE ty_vbak.
      CASE i_ucomm.
        WHEN '&IC1'.                       " Pick
          CASE is_selfield-tabname.
            WHEN c_gt_vbap.
            WHEN c_gt_vbak.
              READ TABLE gt_vbak INDEX is_selfield-tabindex INTO ls_vbak.
              IF sy-subrc EQ 0.
              Sales order number
                SET PARAMETER ID 'AUN' FIELD ls_vbak-vbeln.
              Display Sales Order
                CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
              ENDIF.
          ENDCASE.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
    END OF PROGRAM Z_ALV_HIERSEQ_LIST ******************
    Thanks,
    Sankar M

  • Child reports for a PL/SQL Parent?

    Hi forum,
    I would like to create a parent-child report based on a given package.
    Unfortunately I (guess I )need to have a PL/SQL DBMS Output parent, and I'm searching to create a child based on some rows of this.
    a slightly simplified example:
    I have a type and a package with a procedure & function (I can not change the package):
    create or replace TYPE         SimpleStringArrayType AS TABLE OF VARCHAR2(2000);
    create or replace PACKAGE  MyPackage AS
    procedure get_filelist(vReturnArray OUT SimpleStringArrayType);
    function get_file(filename in varchar2) return clob;
    My idea is to get a list of filenames with procedure get_filelist in the parent report, and in the child report I show the content of the file according to function get_file.
    the current PL/SQL script is (simplified)
    DECLARE
      VRETURNARRAY SimpleStringArrayType;
      v_cnt number:=0;
    BEGIN
      dbms_output.put_line('<html><body>');
      GET_filelist(vReturnArray => VRETURNARRAY);
      v_cnt:=VRETURNARRAY.count;
      dbms_output.put_line('<br>');
      dbms_output.put_line('<table>');
      dbms_output.put_line('<tr> <th><th>file</th>');
      for i in VRETURNARRAY.first..VRETURNARRAY.last loop
        dbms_output.put_line('  <tr>');
        dbms_output.put_line('<td> ' || VRETURNARRAY(i) || ' </td> ');
        dbms_output.put_line('  </tr>');
      end loop;
      dbms_output.put_line('</table></body></html>');
    END;
    again, I can't change get_filelist to a function.
    Any suggestion is highly welcome!
    Martin

    And syntax (basic or otherwise) is covered in the pl/sql manual:
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm

  • Getting parent-child data into an Oracle level-based OLAP hierarchy

    We have some organisational data which we need to represent in an Oracle OLAP 10g dimension, preferably populated using Warehouse Builder.
    The organisational hierarchy is listed as parent-child pairs, and is both ragged (unbalanced) and skip-level (noncovering). This would lend itself to a value-based hierarchy, but our client would rather we use ROLAP rather than MOLAP, i.e. avoid the use of an Analytical Workspace, which rules out the use of a value-based hierarchy.
    Is there a straightforward way to populate a level-based hierarchy using parent-child pair data, and if so how can it be done?
    Pointers to tutorials would be welcome, especially if they use Warehouse Builder.

    If you have an Oracle DB have a look on the CONNECT BY PRIOR functionality.
    regards
    John
    http://obiee101.blogspot.com

  • Child reports and bind variables

    I'm working on a user defined parent/child report. What I'm having an issue with is using a parents bind variable value in a child. To simpify my example:
    The master query is:
    select count(*), document
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    which returns a count of downloads for each document in the last :DAYS days. I want the child report to then list the person that downloaded a selected document:
    select document, user_id, activity_date from download_audit
    where activity_date > sysdate - :DAYS
    and document=:DOCUMENT
    This does not work because the initial :DAYS bind isn't sent to the child.
    If I add the :DAYS as a selected column to the master sql it works. e.g.
    select count(*), document, :DAYS days
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    My question is, do child bind variables all have to be selected columns in the master query or is there a way to have a "global" bind variable that gets carried from master to child?
    I'm using SQL Developer 3.2.20.09 on OS X Lion
    Edited by: RoboMan on Nov 16, 2012 11:23 AM

    I agree whole heartedly :)
    If you want to make things even more interesting, create some 3rd generation child reports and carry the bind variables throughout the multiple levels - here's an example
    http://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/

  • Filter child report based on filters in the parent report

    My requirement is as follows:
    I have two reports, parent and child. Parent report just shows Account Name, Time Spent on Account and it's percentage, so when you click on Account Name, child report is displayed filtered based Account Name and it shows the breakdown in time-spent i.e. different Project Types. So I am filtering Parent reports using Column Prompts(namely Date Range, Task Status, Project Status). So far this works fine. Now when I drill down on Account Name, child report displaying total time spent which I don't need. Child report should get filtered based filter values in the Parent report.
    Can someone please help me out of this situation.
    Thanks in Advance.

    Hey,
    This is tricky to trouble shoot. Firstly ensure all of your child report columns are set to 'Is Prompted' through the filter and try again. If this doesn't work then open your parent report and save another copy (also make sure things are 'Is Prompted' in your new copy and make sure your Intitial parent report navigation points to your new parent report). Drill from the initial parent report to the new one you just created, if this works and filters then build out your new parent report with all the fields you need to eventually become your new child report.
    Thanks
    Oli @ Innoveer

  • Calling drill through report using parent child hierarchy

    Hi,
    I am using Parent/child hierarachy and I want to open a report using drill through on that hierarchy, whenever i click on column it opens the report but showing whole data. It is not restricing the data.Please tell how can i prompt a heierachial column or parent child column at detail level.
    Another issue i am facing is after clicking on + sign at the child column acton link is not working.
    Please reply on that issue.
    Edited by: HZ on Aug 15, 2012 12:15 AM

    Refer to:
    http://www.rittmanmead.com/2010/07/obiee-11gr1-support-for-ragged-skip-level-value-based-hierarchies/
    This should give you an idea.

  • Merge data/result sets that are't parent/child?

    Hi:
    I've seen a few examples of making a data template so that a BI report can have master/detail data. They make a Q1 data set and a Q2 data set with a bind variable to link the two in a parent/child relationship.
    But what I need is effectively a UNION. I have the same table on multiple database instances and I want to show the grouped results in one report as if it all came from one table. The master/detail examples have a section defining grouping but they group by Q1 (see here)
    http://blogs.oracle.com/BIDeveloper/data_template/
    and I need to group by a column that is in Q1 and Q2 to "merge" the two data sets.
    Has anyone done this?
    Thanks.

    I've messed up what I had! lol
    I'll try and recreate things tomorrow and get it to you, thanks.
    I seem to be having some quirks with all this (or I'm just confused). I initially had a data model that selected a few columns and a count(*) an grouped the results. I modified the data model to not have the count but every time I do "insert table/chart" in RTF the count column shows up as a possible column to move over with >>. I've re-opened the document so it should have the latest data model. Is this normal? A bug? Am I just lost?
    Thanks.

  • Getting parent-child data from a single column in a table

    Hi,
    I have a parent-child data in a column.
    Eg:
    0
    00
    01
    010
    011
    1
    10
    11
    These values are present in the single column itself. My need is to get the parent values for the given child value.
    For eg: If I am giving the input as 011, the query should return all its parents, i.e. 01 and 0
    Could you please give me any inputs on this?
    Thanks,
    GV

    Frank Kulash wrote:
    Assuming that each child's id is formed by adding exactly one character to the end of its parent's id:
    SELECT     id
    FROM     table_x
    START WITH     id          = :target_id
    CONNECT BY     PRIOR id     LIKE id || '_';
    Small tweak to yours Frank if it's just the parents that need identifying...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '0' as x from dual union all
      2             select '00' from dual union all
      3             select '01' from dual union all
      4             select '010' from dual union all
      5             select '011' from dual union all
      6             select '1' from dual union all
      7             select '10' from dual union all
      8             select '11' from dual)
      9  -- end of test data
    10  SELECT     x
    11  FROM       t, (select '&required' as req from dual) req
    12  WHERE x != req.req
    13  START WITH x = req.req
    14* CONNECT BY PRIOR x LIKE x || '_'
    SQL> /
    Enter value for required: 011
    old  11: FROM   t, (select '&required' as req from dual) req
    new  11: FROM   t, (select '011' as req from dual) req
    X
    01
    0
    SQL> /
    Enter value for required: 11
    old  11: FROM   t, (select '&required' as req from dual) req
    new  11: FROM   t, (select '11' as req from dual) req
    X
    1
    SQL>

Maybe you are looking for