Grouping multiple tables by parameter before page break.

Hello, all.
I've been tasked with doing an internal invoice for my organization. There will be two categories for purchases, we'll call them Tables and Chairs, just for the sake of discussion. There are several internal teams within my company, and I need to format
the report in such a way that there will be one table for Tables purchased, and another for Chairs purchased. And they want one page per team, then on to the next page. So in crude terms, it'll look like this:
Team 1
Tables Purchased
Chairs Purchased
(Page break)
Team 2
Tables Purchased
Chairs Purchased
(Page break)
And so on down the list. How do I accomplish this?
Many thanks in advance.

Hi,
Add a List and group by team,than add a text box and two tables  inside the list
as  shown below
In  the tables add tables and chairs related data.
Right click the list ,go to page break and check between each instance of group
as shown below
You can also add a heading for each team in a textbox in the list as 
="Team : "+Cstr(Fields!Team.Value)
Many Thanks
Chandra
Please mark the post as answered if this post helps to solve your issue.

Similar Messages

  • How can I be sure a table is printed with at least 1 item before page break

    I've got a form with several tables (small and large ones, depends on the selection) and I don't like to print only the header on the first page (without any items) while a page break is needed. I like to reserve lines for every table (like in smartforms) or to check a line counter of the page to trigger the page break on my own if not enough space is available
    Do you have any idea how I handle this problem?
    Thank you very much
    Lagogar

    To specify the minimum number of repetitions, select Min Count and type a number in the associated box. If this option is set to 0 and no data is provided for the objects in the subform at data-merge time, the subform is not placed when the form is rendered.

  • ?for-each-group? dosen't work with page break - rtf template???

    Hello all,
    When I give a page break inside the for-each-group the group doesn't iterate any code after the page break. I can't give <?split-by-pagebreak?> in this case because I want that loop to be iterated for every department, and should show the report in one column(ms word column), and the department description in two columns.....as this has to happen for every department I can't write separate code........everything should go into one file......
    Final file should look like:
    <for every department>
    <department_report-a table>--one column(ms word column)
    <department_description-a huge text>--two columns(ms word columns)
    <next department>
    how can I achieve this - please help, its urgent.
    Thanks for your time.
    DK

    bipuser thanks for your response
    i will have table data also so i cannot keep in the same line.
    its strange for the last 2-3 days below syntax gave me space at the beginning of each group now it is working i didnt do any change
    <?for-each:G_1?>
    ABCDEFDG
    <?split-by-page-break:?><?end for-each?>

  • Extended table printing issues over page break

    I have an extended table on a form that may have many rows - multi pages generated from a database.
    when printing or print pdf - safari and firefox will split a row at bottom of a page and start of next page... page break problem...
    if i control database output wich 50 recs per page then user would have to print each page separately - wasting time - so that is not a good option....
    Q: how do I get this to print best for viewing without page break problem?
    Thaks in advance for your help - dave

    Hi Amruta ,
    I hope the following steps will solve your problem :
    1. Merge the data from the 3 tables into a single table (say gt_outtab).
    2. The table gt_outtab should have a field (say tab ) to indicate the table from which the data has come . Depending on the tables conatining the initial data , you can assign 1, 2 , 3 into the new field (tab).
    3. Bulid the fieldcatalog with the particular column (TAB) of the output table as no_out='X'.
    gs_fieldcat-COL_POS = lv_line.
      gs_fieldcat-fieldname = 'TAB'.
      gs_fieldcat-outputlen = 1.
      gs_fieldcat-just      = 'L'.
      gs_fieldcat-coltext   = 'Table'.
      gs_fieldcat-seltext   = 'Table'.
      gs_fieldcat-NO_OUT   = 'X'.
      APPEND gs_fieldcat TO lt_fcat.
    4. Define the data of type lvc_s_print
    DATA: gs_print TYPE lvc_s_prnt.
    5. Before calling the method set_table_for_first_display assign grpchgedit of the structure gs_print as 'X'
    gs_print-grpchgedit = 'X'.
        CALL METHOD gr_grid->set_table_for_first_display
            EXPORTING
               is_print            = gs_print
               is_layout           = ls_layo
            CHANGING
              it_outtab           = gt_outtab[]
              it_fieldcatalog     = lt_fcat.
    6. Run the report . The particular column is not displayed in the list.
    7. Go to Print Preview mode. Press the sort ascending or descending button on toolbar (without selecting a column).A dialog box appears asking for sort order.
    8. Add the field(TAB), from the available list on right hand side.
    9. In the last column titled NG of this sort order dialog box, write * for page feed .
    10. Press the copy button .
    Hope this solves your problem .
    Thanks ,
    Sudipto

  • Single row editing for multiple tables in a single page

    Hi!
    I have split a table with many many columns into more tables with a lower number of columns. There is an ID column (sequence generated) that is Primary Key common for all tables. Obviously, the relationship between these tables is 1 to 1, so it’s not about having to build master-detail pages.
    What I need now is to edit all these tables in a single page: one single row from each table. The Automated Row Fetch & Automatic Row Processing (DML) processes used for the old table must be replaced by something else.
    Is there a way to use in a single page more pairs of such processes for more tables?
    I want to avoid manually writing processes with lot of PL/SQL code to handle row fetch & update.
    Keep in mind that the page will have an ID item that can be used to identify unique rows in all my tables.
    Thanks,
    Sorin

    I have split a table with many many columns into more tables with a lower number of columns
    IMHO that is a very bad idea. There is nothing wrong with having many columns in a table. If you would like to split them to better "categorize" them, just create views on the table and expose different subsets of the columns.
    I want to avoid manually writing processes with lot of PL/SQL code to handle row fetch & update.
    That is unavoidable given how you have designed the underlying tables.
    You could try creating a view that joins all the tables by the PK and creating a form based on that view. Then write a INSTEAD OF trigger on the view that "doles out" the DML on the view to each of the underlying tables.

  • How can I sort multiple tables on a single page as if they were one continuous table?

    I have a single narrow column of numbers that cover multiple pages. I would like to do either of the following: break that long single column into multiple colums that fit on one page and are still able to be sorted in that arrangement OR sort the long column as it is (spread out over multiple pages) and then break that long sorted column down into multiple segments that can be placed onto a single page.
    I have been sorting the long single column, then copy and pasting sections from the column onto a new page so that I can print them on a single page.
    I am hoping there is a more elegant method to do this.

    Hi Walt,
    Sorting is one of the things that changed between Numbers '09 and Numbers 3. If you are on Mountain Lion I want to assume you are using '09. Is that true?
    This will work in '09 and 3. Table one is a single column with entries 1-89.
    A2 ==INDEX(Table 1 :: $A,ROW())
    B2 =INDEX(Table 1 :: $A,ROW()+35)
    C2 =INDEX(Table 1 :: $A,ROW()+70)
    The formulas are filled down.
    You can adjust the formulas in B and C to reflect how many rows fit on your page.
    quinn

  • Inserting values into multiple tables in one jsf page with single commit op

    hi all,
    i have two tables ,
    one is parent table and other is child record.
    record details:
    table1:(parent table)
    emplid (primary key)
    empl_name
    table 2:(child table)
    empl id ( Foreign key)
    empl_name ( Foreign key)
    contact_no (primary key)
    my senario is , i need insert values into both parent and child table in one save option.
    and both the tables will be in one jsf page.
    is this possible to do?
    thanks all,
    regards,
    M vijayalakshmi

    hi,
    i feel my question is not clear.
    let me explain my question clearly.
    1. i have two records
    *1. emp_names*
    attributes of this table is 1.emplid
    2.emp_name.
    emplid is a primary key.
    2. emp_contact
    attributes of this table is 1.emplid
    2. contact_no
    In this table emplid is forigen key from emp_name table
    contact_no is primary key.
    and my senerio is,
    for one emplid there are many contact no.
    in database diagram i have created these two entities. and from that i have generated two views objects.
    now in jsf page ,
    i shd have all fields from both the records.
    wn ever i click on add button , i shd be able to insert one complete row of data to both the tables.
    means,
    emplid
    empl_name
    contact_no.
    and if i click on commit button data shd be insert in both the tables.
    so how to achive this?
    am very beginner to the jdeveloper tool.
    regards,
    m vijayalakshmi.

  • Keep Group headings with data - control your page breaks

    Trying to keep the group heading with the appropriate transaction information.  Currently, get a group heading at the bottom of a page and then the transactions print on the next page.   Difficult to determine what the transaction information is without the appropriate group headings displayed.   The amount of transaction data is not static, it varies from page to page.  Some of the reports can be close to 100 pages.   Please advise.

    Hi Kim,
    You can use the option u201CNew Page Afteru201D in Section Expert for Group Footer section so that the new group Header will display on the next page.
    Regards,
    Alpana

  • Pivot Table, "Insert Page Break After Each Item" Setting Only Works for the First Item Change

    I have a flattened pivot table generated from Powerpivot and I would like to insert a page break for each change in the row item.
    When I use the pivot table Field Settings>Insert Page Break After Each Item, Excel inserts the first page break then returns to normal pagination for the rest of the output.
    Is there another setting required to maintain the page breaks after the item change?
    Thanks.

    We are experiencing the same problem. Did you ever find a solution?

  • Page Break Before / After

    Hello All,
    In MS Office word, Insert > break made to page break.
    In the Report, I have challenges in the Page Break Before / After.
    If any one help me out, it will be great.
    Thanks in advance,
    REF:
    Tool
    Property Inspector
    Object Navigator
    Report Editor
    Template Editor
    General layout
    Page Break Before
    Page Break After
    Page Protect
    Advance Layout
    Print Obeject On

    the picture worth a thousand wordsDon't you think it would be better to tell us what your problem is? So you changed the property to 1. And now? Does it work? Does it not?

  • Problem with printing ALV - repetitive page breaks

    Hi,
    I have a problem with ALV during printing or print preview. First, let me describe the situation. My requirement was to have a page break for every Material Number. This was working fine already. However, the user had a change of heart and decided he didn't want to have a page break for every material. Now, they wanted only one page for all materials.
    I thought this was easy to do since I only needed to comment out the SORT (and all codes related to SORT) table that was used to create the page-break. Thing is, it's not working anymore. Although I was able to display one table only, the old page breaks still appear! For example, if there were 7 materials before, therefore, 7 page breaks with 7 blocks of internal tables. Now, only 1 full internal table is displayed while the other 6 are empty! Please help me how to get rid of the other tables or page breaks.
    I hope this is clear. Thanks. I appreciate all the help I can get.

    Amit,
    Using sort option.
    Do one thing. Just create one ALV program with SORT options anf GROUP = '*'.
    Now go to output and save the Variant.  Print the report.
    with out sort option and variant.
    Now come back and Delete the sort options , activate the code.
    And see the output. Choose the variant which you created beofre. and print the report.
    See both the case. it triggeres the same output. you just copy paste it and un comment the commented sort code
    Just test with this code,
    REPORT  zalv_total_sub.
    TYPE-POOLS: slis.
    INCLUDE <icon>.
    DATA: layout TYPE  slis_layout_alv .
    DATA: BEGIN OF it_flight OCCURS 0,
           carrid  LIKE sflight-carrid,
           connid   LIKE sflight-connid,
           fldate   LIKE sflight-fldate,
           seatsmax LIKE sflight-seatsmax,
           seatsocc LIKE sflight-seatsocc,
          END OF it_flight.
    DATA: it_fieldcat TYPE  slis_t_fieldcat_alv,
              wa_fcat LIKE LINE OF it_fieldcat.
    DATA: it_sort TYPE  slis_t_sortinfo_alv,
              wa_sort LIKE LINE OF it_sort.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name         = sy-repid
        i_internal_tabname     = 'IT_FLIGHT'
        i_inclname               = sy-repid
      CHANGING
        ct_fieldcat              = it_fieldcat
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2.
    SELECT  carrid
           connid
           fldate
           seatsmax
           seatsocc
    FROM sflight
    INTO CORRESPONDING FIELDS OF TABLE it_flight
    wa_fcat-do_sum = 'X'.
    MODIFY it_fieldcat FROM wa_fcat TRANSPORTING do_sum
    WHERE fieldname = 'SEATSOCC' .
    CLEAR wa_fcat.
    *wa_sort-fieldname = 'CONNID'.
    *wa_sort-up = 'X'.
    *wa_sort-group = '*'.
    *wa_sort-subtot = 'X'.
    *APPEND wa_sort TO it_sort.
    *CLEAR wa_sort.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program      = sy-repid
        i_save                         = 'X'
        i_callback_user_command = 'USER_COMMAND'
        is_layout               = layout
        it_fieldcat             = it_fieldcat
        it_sort                 = it_sort
      TABLES
        t_outtab                = it_flight
      EXCEPTIONS
        program_error           = 1.

  • Extra blank line inserted after page break

    Hello,
    I am currently having trouble with alignment using templates in BI Publisher.
    I am trying to create a template that will be printed on a pre-printed form.
    Each group in the report should be separated by page so the group has a <?split-by-page-break:?> right before <?end-for-each?>.
    However, when the next page begins, there is a blank line inserted. This messes up the alignment altogether.
    Code is like this:
    <?for-each-group:G_Document;./DOCUMENT?><?sort:current-group()/DOCUMENT;'ascending';data-type='text'?><?for-each:current-group()?>
    ----INSERT Table TEMPLATE HERE---
    <?split-by-page-break:?><?end-for-each?>
    Output turns out like this:
    (Page1)<TABLE TEMPLATE>
    <Page Break>
    (Page 2)<New Line>
    <TABLE TEMPLATE>
    <Page Break>
    (Page 3)<New Line>
    <TABLE TEMPLATE>
    <Page Break>
    I have found this old thread Split-By-Page-Break inserting extra line that has the exact same problem, however, I have tried all suggested solutions even the last one, and I still am encountering the problem.
    Any help would be greatly appreciated.
    Regards,
    Jovee

    Thanks Varma, for the solution you provided.
    The code for page break was inserted right after the for-each tag, and looks like this:
    <?for-each:current-group()?><xsl:attribute name="break-before">page</attribute>
    Template now works without the extra blank line.

  • Interactive Reporting Reports w/ Page Breaks and Charts

    I have an IR report that is Grouped. I would like to page break after each group; however, when I set this up, it page breaks be/tw the report header and the very first group. Is there a way to avoid this issue?
    Also, I have created charts from queries. When I drag them into a report body, I can not figure out how to control where the go (and stay). It seems the only way around the issue is to drag them into the report footer, but then if the report body is shorter from one query run to another, it seems to leave the charts on the pages where they were before instead of moving them up to the end of the report body. How can I fix so the chart's location moves depending on the length of the report?
    Thanks.
    Terri T.

    Terri,
    to clarify...Spring works within the same report area, for example a table followed by a chart in the Body. Spring allows the position of the top of the chart to be relative to the bottom of the table so as it grows or shrinks the chart maintains the same space between the two objects. without spring the top of the chart would be relative to the top of the report area it is in and as the table grew the objects would end up being layered.
    You should not need to upload a new CSV file. You can just "Process" it and it will refresh the data. if the CSV file is moved from where it was first imported you will be prompted to find it otherwise the imported file section within the BQY will have any additional Rows and/or Columns that the updated CSV file has.
    Make sense?
    Wayne D. Van Sluys
    TopDown Consulting

  • Page Break Issue

    Hi All,
    I would need to apply page break on one BI Publisher report.
    For each empoyee the result should get displayed in separate page. I have made Emplid as Group by field in the rtf and applyied <?split-by-page-break:?> on this group.
    I have the below tags in my rtf...
    <?for-each-group:ROW;./Emplid?>
    data filed1,data filed2..................
    <?split-by-page-break:?><?end for-each-group?>
    If rtf file is having one page of report fileds and applied <?split-by-page-break:?> at end of the group, the PDF output places the page-breaks perfectly. In a case of report fileds are in more than one page(rtf contains 2 pages of code) and If I apply <?split-by-page-break:?> at the end of the group. So the report is not making page breaks rather it shows continues data.
    I am using BI 10.1.3.3.2 and word2007. Is the version makes any difference? Can you pls help me on this?
    Thanks in advance!!!
    Regards,
    Ramesh

    The scenario directly below puts an extra line on the top of the page after a group page break:
    <?for-each-group:ROW;.//row?>
    data filed1,data filed2..................
    <?split-by-page-break:?><?end for-each-group?>
    The scenario directly works perfectly, no extral line:
    <?for-each-group:.//row?><xsl:attribute name="break-before">page</xsl:attribute>
    data filed1,data filed2..................
    <?end for-each?>
    Thanks for this one!

  • Table skips to second page when full

    Hi,
    I have a couple tables inside of subforms in my pdf.  When the last table in the attached .pdf, 11. DESCRIPTION gets full enough, the cell under 11. DESCRIPTION, skips to the second page.  I just want the extra text that won't fit on page 1 to skip to page 2, not all of the text.  It should create as many pages as the text needs to fill.  It doesn't seem to create the pages as needed.
    Can someone help me out?
    I've attached the file.

    within your hierarchy window, select your table.  now in your object window, in the table tab, select 'allow page breaks within content'.  that should get you where you want to go.  it will probably break at the affected row though.  if you want the individual row to break then the table must be allowed to break before you can allow the row to break.  follow?  have fun.
    rpeterson

Maybe you are looking for