Page Breaks in REUSE_ALV_HIERSEQ_LIST_DISPLAY

Hello Everybody,
Can someone tell me how can we insert page breaks with the FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.
Please help
Thanks,
Sneha Singh.

Hi Sneha,
<li>Try this example.
<font color=blue><pre>
REPORT ztest_program.
DATA: BEGIN OF it_ekko OCCURS 0,
         ebeln TYPE ekko-ebeln,
         bukrs TYPE ekko-bukrs,
         bstyp TYPE ekko-bstyp,
         bsart TYPE ekko-bsart,
       END OF it_ekko.
DATA: BEGIN OF it_ekpo OCCURS 0,
         ebeln TYPE ekpo-ebeln,
         ebelp TYPE ekpo-ebelp,
         loekz TYPE ekpo-loekz,
         txz01 TYPE ekpo-txz01,
         matnr TYPE ekpo-matnr,
       END OF it_ekpo.
TYPE-POOLS : slis.
DATA : it_events   TYPE slis_t_event,
        wa_events   TYPE slis_alv_event,
        it_fieldcat TYPE slis_t_fieldcat_alv,
        it_sort     TYPE slis_t_sortinfo_alv,
        wa_sort     LIKE LINE OF it_sort,
        wa_fieldcat LIKE LINE OF it_fieldcat,
        list_layout TYPE slis_layout_alv,
        gs_keyinfo  TYPE slis_keyinfo_alv.
DATA:program TYPE sy-repid.
START-OF-SELECTION.
   program = sy-repid.
   "Data retrieval
   SELECT * FROM ekko INTO CORRESPONDING FIELDS OF TABLE it_ekko UP TO 100 ROWS.
   IF NOT it_ekko[] IS INITIAL.
     SELECT * INTO CORRESPONDING FIELDS OF TABLE it_ekpo FROM ekpo FOR ALL ENTRIES IN it_ekko
           WHERE ebeln = it_ekko-ebeln.
   ENDIF.
   "Key structure
   gs_keyinfo-header01 = 'EBELN'.
   gs_keyinfo-item01   = 'EBELN'.
   "Do the sorting like below.
   wa_sort-fieldname = 'EBELN'.
   wa_sort-tabname   = 'IT_EKKO'.
   wa_sort-group     = '*'.
   APPEND wa_sort TO it_sort.
   CLEAR  wa_sort.
   "Field catalog
   DEFINE fieldcatalog.
     wa_fieldcat-col_pos   = &1.
     wa_fieldcat-fieldname = &2.
     wa_fieldcat-tabname   = &3.
     wa_fieldcat-seltext_m = &4.
     append wa_fieldcat to it_fieldcat.
     clear  wa_fieldcat.
   END-OF-DEFINITION.
   fieldcatalog: '1' 'EBELN' 'IT_EKKO' 'EKKO-EBELN',
                 '2' 'BUKRS' 'IT_EKKO' 'EKKO-BUKRS',
                 '3' 'BSTYP' 'IT_EKKO' 'EKKO-BSTYP',
                 '4' 'BSART' 'IT_EKKO' 'EKKO-BSART'.
   fieldcatalog:  '1' 'EBELN' 'IT_EKPO' 'EKPO-EBELN',
                 '2' 'EBELP' 'IT_EKPO' 'EKPO-EBELP',
                 '3' 'LOEKZ' 'IT_EKPO' 'EKPO-LOEKZ',
                 '4' 'TXZ01' 'IT_EKPO' 'EKPO-TXZ01',
                 '5' 'MATNR' 'IT_EKPO' 'EKPO-MATNR'.
   "Functiion module
   CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
     EXPORTING
       i_callback_program = program
       it_fieldcat        = it_fieldcat
       it_sort            = it_sort
       i_tabname_header   = 'IT_EKKO'
       i_tabname_item     = 'IT_EKPO'
       is_keyinfo         = gs_keyinfo
     TABLES
       t_outtab_header    = it_ekko
       t_outtab_item      = it_ekpo.
</pre></font>
Thanks
Venkat.O

Similar Messages

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • Pages '08 does not import MS Word Page-breaks

    Pages '08 imports MS Word 2004 for Mac documents without the page-breaks.
    I love the Mac interface and really want to stop using MS software. I was hopeful with all the good press about Pages '08. I downloaded the 30-day trial and immediately discovered this glitch.
    I must be able to exchange 300+ page manuscripts with MS Office users. If Pages cannot import the page-breaks in these documents, it's a deal-breaker for me. I'm not going to go through and re-insert 300+ page-breaks everytime I have to edit and return a document.

    I've had the same problem as Jeffrey ... but with Appleworks 6 documents. I can import a small amount of Appleworks pages with hard page breaks (Insert Page Break) but when I try to import the entire 300 pages of my manuscript into Pages '08 the page breaks move up and are not where they should be. Also, many of my large Appleworks text manuscript files (no graphics) will not open in Pages '08. On top of that, the line spacing in Pages is a big headache,. I still am unable to place 11 lines on the first page of each Chapter (as I have done before in Appleworks with no problem). Sometimes it will give me 11, next time it will be 12. Hitting return once often moves two lines of type rather than one. Very frustrating. I have followed instructions and even added styles with my own template. I also used "Exact" spacing of 24 pt with my 12pt type because using double spacing is not even close to what double spacing is in Appleworks using the exact same font (Times New Roman, 12pt w/ 24pt spacing.) Any help will be appreciated (before I go back to Appleworks).

  • Page Break in rtf template

    Hi
    We have inserted page break using split-by-page-break in rtf template, it is working if we use page break syntax for 2 sub sections after main section
    where as it is not working if we have 3 sections giving syntax below in both cases
    Groups and syntax used with 2 sections (Page break at G_OPERATIONS is working)
    <?for-each@section:G_JOB?>
    <?start:body?>
    <?for-each:G_OPERATIONS?>
    <?IF:CF_SHOW_RES='Y' ?>
    <?for-each:G_RESOURCES?> <?end for-each?>
    <?end if?>
    <?split-by-page-break:?> <?end for-each?>
    <?end for-each?>
    <?end body?>
    Groups and syntax used with 3 sections (Page break at G_OPERATIONS is not working)
    <?for-each@section:G_JOB?>
    <?start:body?>
    <?for-each:G_OPERATIONS?>
    <?IF:CF_SHOW_RES='Y' ?>
    <?for-each:G_RESOURCES?> <?end for-each?>
    <?end if?>
    <?IF:CF_SHOW_OP='Y' ?>
    <?for-each:G_INSTRUCTIONS?> <?end for-each?>
    <?end if?>
    <?split-by-page-break:?> <?end for-each?>
    <?end for-each?>
    <?end body?>
    Let me know if any hints on fixing this issue

    Try using <xsl:attribute name="break-before">page</xsl:attribute> within a form field instead of using the split-by-page-break.
    You can also use this <xsl:attribute name="break-after">page</xsl:attribute> depending on your requirement..
    Thanks,
    Bipuser

  • Page break problem in rtf template

    I have a nested group as follows:
    For each sub-vote sub-vote desc
    - For Each sub-program details....end of for each sub-program
    total for sub-vote
    end of for each sub-vote
    If the sub-vote and all of its detail records won't fit on a page, then I need a page break.
    The fields are set up in a table. I have unchecked the 'allow row to break across page' for all 4 rows.
    I tried drawing a new table around the existing 4 rows, but I can't seem to uncheck the 'allow row to break across page' for the new table. How do I change properties for the 'parent table' - I'm looking for something that is equivalent to 'select parent frame' from report builder.
    I also tried checking the 'keep with next' checkbox on the paragraph/format for each row.
    When I preview/pdf in word, my sub-programs within a sub-vote are still displaying on differrent pages.
    If anyone can make any suggestions, I would greatly appreciate it.
    Thank you.

    I created a new row and then copied the cells (minus the 'for -each' and 'end of for each' cells) as a nested table. Page breaks are now working correctly.
    Thank you.

  • Page breaks in (html) printed apex report

    I am having a strange problem that appears to be related to APEX page template.
    I have a report that is html generated by a PL/SQL function. I need to have page breaks in the printed report at specific locations. I am adding this style to the html output of the function:
    <STYLE>
    DIV.pageBreak { page-break-before: always; }
    </STYLE>
    and I insert this at the locations I need breaks:
    < D I V CLASS="pageBreak"/>
    (without the spaces in DIV)
    (found this technique here: http://www.unagibay.com/DesktopDefault.aspx?tabindex=1&tabid=100&itemid=1821 )
    This works perfect when I run the report in IE, but FireFox is "ignoring" the page breaks. However, if I take just the output of the PL/SQL function in an html doc, FireFox works fine (breaks at the proper places). This makes me believe something related to the "page wrapper" content generated by APEX causes FireFox to not handle the breaks.
    I have tried copying and editing the Popup and Printer Friendly page templates, but I either remove too much and the page doesn't render, or the page breaks don't work.
    My questions for the APEX gurus are:
    1. Is there an "approved" way to get page breaks in the printed version of an APEX report, or is there a better way to do what I need to do.
    2. What is the minimum contents for a page template (what can I safely remove).
    Thanks,
    Bill

    Hi Owen,
    the page breaks are inserted before/after the section.  Expand the report structure window and make sure that the properties window is open below.  Once you click on the section part, you will see where you can insert the page breaks - the check boxes will appear in the properties.
    yes on the second part - just insert the page break between the data providers and then repeat the header for the data provider on the pages (also check boxes on the properties tab)
    Good luck

  • Page break in html report

    Hi all,
    I am sending a report to external user e-mail id from SAP. The user is receiving the report in html format.
    The user asks me they need a page break on the report after each customer data. I am wondering is it possible to have a page break in html report? If yes, how it is possible?

    Hi,
    I insist : it is not possible with HTML to insert Page breaks. BUT, Tammie is right! You can use CSS (Cascade Style Sheet) to insert page breaks thanks to few lines of code in your HTML page.
    Follow this link to have a look at a very simple piece of code to illustrate this :
    http://www.codeave.com/css/code.asp?u_log=4016
    Here it the code if you don't have access to this URL :
    <html>
    <head>
    <title>CodeAve.com/CSS - Page Break</title>
    <body bgcolor="#FFFFFF">
    <center>
    Page 1
    <br style="page-break-before:always;">
    Page 2
    <br style="page-break-after:always;">
    Page 3
    <p>
    Use print preview on your browser to see how<br>
    this page would print out to three pages
    </center>
    </body>
    </html>
    Hope it helps.
    Don't forget to close the post if solved (so that search in the forum is easier), and reward points (so that SDN members are happy !) 

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • How to Page Break in RTF Format

    Hello XML Gurus,
    We are changing the reports from Oracle Reports to XML.
    For this, We are using RTF template.
    Can you Please let me know, how to put Page Breaks in RTF format.
    Your reply will be much appreciated.
    Regards
    Ganesan

    Put this where you want the page break :
    <?split-by-page-break:?>

  • Page break not applying when using sub report inside main report

    I have a main report inside which there is subreport (using SQL Server 2012). I placed some page breaks inside subreport but they were not working. I read on technet forums that this is a a known issue with SSRS. 
    One solution I found is to put a table inside main report, then in first row add a rectangle and set its property "Add a page break after" and then add subreport after this rectangle in that table in main report. I did that and now in some cases
    it does show sub report on a separate page but sometimes it shows subreport on same page.
    Could it be because in some case sub report has no or less data (hence it cannot cover whole page) and in that case it will always show on one page? How can I show empty subreport on a separate page?

    I fixed it by clicking both "Add a page break before" and "Add a page break after" in rectangle.

  • Page break within a group(s)

    I have a report that uses a group that contains three parts, a details part, a blank lines part, and a totals part.
    What I am attempting to achieve, is to produce the report so that there are page breaks within this group. The page breaks should happen after each part.
    I have been able to achieve the desired look by adding a group for each part, with an additional 'blank' group to provide a page break between the Details Part and the remaining 2 parts. 
    This, however has left me with 3 issues;
    Throughout the report, there will be pages with only the heading and no details.
    There are pages that show 2 headings (one for the ending detail group and the other is for successive detail group)
    How to remove the headings for the blank lines part and totals part (which is now on their own separate pages) 
    The major pain point for me is issue #3. Anyone able to offer suggestions with the amount of information provided?

    Hello,
    Based on your description, you have three part in one group. You have add page break between each part. You have mentioned that the heading will repeat in each page. You have set the tablix repeat headers on each page, right?
    Since you have blank line part in the group, when we add page break between each part, we will get a blank line page. When we have set the heading will repeat in each page, we would also have repeat page header in blank page.
    Now, what your requirement is not get the repeat header in the blank page and total page, right? Please refer to the following steps below:
    Cancel the headers repeat in each page configuration.
    Add a total row before of the detail group. Change these text box values with headers values.
    Please refer to the screenshot below:
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Page break in between group and subreport

    I have created a report with one group based on the customer order number.   We want the user to be able to run a range of customers orders. For example, print 10 customer orders at one time.  The group pulls the required information for each
    customer order.   After each customer order,  I have a sub-report that is a pallet pick sheet.   We want a page break after each group, so the sub-report prints on a separate page. It goes like this
    customer order 137158 detail - 1st iteration of the group.
    page break
    sub-report pallet pick sheet for 137158 - starts on a new page.
    page break
    customer order 137159 detail starts on a new page. - 2nd iteration of the group.
    page break
    sub-report pallet pick sheet 137159 - starts a new page.  
    I would really appreciate if someone can help solve this issue.  I've spent over half a day reading forums and trying different solutions, and every attempt at adding page breaks seems to be ignored.   I'm working with SSRS 2012. 
    Jeff

    I had the company logo and a title outside of the data tablix.   When I moved these into the list table, the issue with the additional white space was resolved.   At this point, we have resolved the page break and the extra white space
    on the report.   I have one more issue.  
    On the main report, I have two parameters for starting customer order number and ending customer order number.   I created the same parameters on the sub-report.  When I run the report, I enter a range of 139818 to 139824.   The
    main report which is the customer order information prints correctly.   However, instead of getting just the sub-report for the first order which is 139818,  I get a sub report for every order in the range.   Then, the main report
    prints order 139819, and then repeats the sub-report loop for every order.  So, each time the main report prints, I get 7 sub-reports.   How do I link the main report to the sub-report so there is a one to one match so only
    one sub-report is generated per customer order?    
    I really appreciate the help,
    Jeff

  • Page break/empty page issue

    Hi,
    I have big report with 4 data sections.
    This is the structure of the report.
    Main Frame
    --> Repeating Frame
    -->Frame1 - PageBreak After - Yes
    Some Fields
    -->Frame2 - PageBreak After - Yes
    Some Fields
    --> Repeating Frame
    -->Frame3 - PageBreak After - Yes
    Some Fields
    --> Repeating Frame
    -->Frame4 - PageBreak After - Yes
    --> Repeating Frame
    The size of the report with all the fields and frames in designer is coming up to 30 inches.
    When I run the report leaving the Main Section Height property setting to 11 inches,
    I get the following error
         REP-1212: Object 'M_6' is not fully enclosed by its enclosing object 'Body'
    When I changed the Main Section Height property setting to 30 inches then the report runs fine,
    but each page break is taking 30 inches even though there the data is not 30 inches.
    Meaning even though section 1 (frame 1) has only 10 lines section 2 is displayed after 30 inches of section 1.
    Can anyone help me fix this problem?
    I hope I explained the problem clearly.
    Thanks
    Sathish
    Edited by: sathish009 on Aug 6, 2009 11:17 AM
    Edited by: sathish009 on Aug 6, 2009 11:32 AM

    In my report there are four major sections and each section should start on a new page.
    After I add all the fields to all the sections the report height is 30 inches.
    For it to run I had to set the page height property to 30 (Main Section --> Height). I think I am correct here.
    So, when I run the report each section is starting in a new page but each section is taking 30 inches.
    That is the problem.

  • When exporting to epub, only about 1/3 of my chapters are getting the page breaks. Each chapter is in its own doc, and I've tried splitting it apart by doc. and by H1, with no luck. HELP

    All my paragraph styles seem to jive, and no matter what I do, most of my chapters seem to miss their page breaks. I've heard of others having this issue with older versions of Indesign, but I'm on CC2014, and I thought that should be fixed by now. I really don't want to have to learn HTML code and go break open the epub doc to fix it manually, because that doesn't always work across all devices either.  I know others have to of  run into this problem before. What am I doing wrong?

    Make sure the paragraph style applied to the chapter title (if that's the first line of each chapter) is tagged. Open the paragraph style and go to Export Tagging and check Split Document (epub only). Then when you export (assuming you are using reflowable) under General>Split Document check Based on Paragraph Style Export Tags. Try it and let us know if this helps.

Maybe you are looking for

  • Is it possible to make a subtitle on have a captioned look?

    I have a client that has a HD video, and wants a white text in a black ( caption-like )box that has an on/off option. Is there an add on software that might be able to do this ? I work in both FCP and DVDStudioPro, but would be glad to buy somethng t

  • Capture an error while creating a purchase requisition (BAPI_PR_CREATE)

    Hi All,     I am using FM BAPI_PR_CREATE to create purchase requesition, Now my problem is that i have various items for single material now i wan to capture the error if any item has ? Please let me know how to do so? Thanks & Regards, Ruchi Tiwari

  • Hyperlink to a certain page converted from word

    Hello! Another question to convert word documents to pdf files: I have word documents, which are linked among themselves through hyperlinkes. After converting in pdf the links work fine. Now the question: Some of the links in the Word document refer

  • Pop-up button issue: Mac vs PC

    Hello- I'm creating an interactive form for my company and having an issue when the pdf is used on a PC.  Here's the run down: First off, this is my first attempt at creating an interactive pdf so please forgive any incompetence on my part. 90% of th

  • Loading flash through ajax does not work in IE 6.

    Hi all, I am having some problems on a site I'm developing. When I load a video from youtube, etc, and do so dynamically through ajax, it does not work on IE 6. Mind you it does work on all other browsers. This problem happens with multiple copies of