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.

Similar Messages

  • Extra Blank line inserted at the end of the target file

    Hi,
    This is File to File senario and target files created with a extra blank line at the end of the file.
    Below is the source file structure and the content.
    <ns0:MT_MOD_FL xmlns:ns0="http://file2file/MES">
       <EMPLOYEE>
          <ID>12</ID>
          <Name>SREENI</Name>
          <Designation>M2</Designation>
       </EMPLOYEE>
       <EMPLOYEE>
          <ID>121</ID>
          <Name>RAJA</Name>
          <Designation>M3</Designation>
       </EMPLOYEE>
    </ns0:MT_MOD_FL>
    Below is the generated target file
    12     SREENI     M2
    121     RAJA     M3
    Here Generated target file suppose to have only two line instead of 3.
    What exactly do i need to change to generate the file with 2 line.
    I am not using any mapping as both source and target message structure are same.
    IN FCC i used only fieldSeparator, even i have not used endSeparator.
    Thanks in Advanace...

    Hi! Raghu,
    Just go through the below Help..documantation
    [http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm]
    NameA.endSeparator
    To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
    NameA.fieldSeparator
    If you make an entry here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
    If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
    If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.
    Regards::
    Amar Srinivas Eli

  • Unwanted blank lines inserted into the page bean

    For some reason after using the visual editor and then switching to the java view, I notice that there are extra blank lines inserted between lines in the file. The extra lines can accumulate making the file very large and unusable. This has only started happening after installing the latest hot fix. Is there a fix for this?
    Thanks,

    Hi mitsu,
    We did send out some updates via UpdateCenter just two days back. One of the fixes in there would fix the extra empty lines issue.
    Please get this update downloaded and installed on your Creator Installation.
    It should fix your issue.
    Could you please confirm if this fixes your issue?
    Regards,
    Sakthi

  • My Microsoft Word inserts a page break when I hit return

    If I press delete to remove the page break, it brings the sentence back into the previous paragraph.  If I hit return again to make the sentence into a new paragraph, as it is supposed to be, the computer/program inserts a page break, vaulting me onto the next page and leaving the previous half-page (or a bit more) blank. 
    Ideas?  I have restarted.
    Thanks.

    Hi c,
    Try the following:
    Select the paragraph following the unwanted page break.
    On the Format menu, click Paragraph, and then click the Line and Page Breaks tab.
    Clear the Keep lines together, Keep with next, and Page break before check boxes.

  • Table of Texts results in extra blank lines

    I have a table of texts in a flowed subform that expands for each line of text. The text and font is a chinese font (Adobe Song Std L). I also have autowrapping turn on so it autowraps when the line is too long.
    I would like each new line in the table to have the carriage return as if it is wrapping, but not add an additional blank line like it's a new paragraph.
    So instead of using a table I thought I'd concatenate all the lines together and separate them with a control character for carriage return when I want a line break (still allowing Adobe to autowrap when a particular line is too long).
    I am preparing this string in SAP which gets sent to Adobe. I've tried concatenating '\u000D' but it just shows those characters rather than performing a carriage return.
    Any ideas how I can accomplish this without ending up with a new paragraph (extra blank line) between my lines of text?
    Thanks,
    Scott

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • How to insert a page break in smartform

    hi all
    i have to print only ten records per page. Is there anyway to insert a page break in smart forms?????

    hi
    To insert a page-break you have to Create a Node Called COMMAND.
    Here you can Specify a Different PAGE as next page if u want.
    Smartforms: protect lines in main window.
    It was easy with SAPscript, but how to do it with SF's. For 4.7 version if you are using tables, there are two options for protection against line break:
    - You can protect a line type against page break.
    - You can protect several table lines against page break for output in the main area.
    Protection against page break for line types
    - Double-click on your table node and choose the Table tab page.
    - Switch to the detail view by choosing the Details pushbutton.
    - Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.
    Protection against page break for several table lines
    - Expand the main area of your table node in the navigation tree.
    - Insert a file node for the table lines to be protected in the main area.
    - If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file.
    - Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page.
    In 4.6, Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window) there is not enough space left for the paragraph, the entire paragraph appears on the next page.

  • How to insert a Page Break Programatically ?

    Hello,
    How to insert a Page Break Programatically ? Please Help..
    Regards,
    Aanta
    Message was edited by:
    user526601

    Hi Praveen,
    Thanks for the reply...
    I think <?split-by-page-break?> syntax is used in a loop. In my case i need to check the condition.. if its true i need to insert Page break.
    I have requirement Like as follows
    - In the Invoice Print Report I need to display “Invoice Appendix” On the Last Page of an Invoice.
    - If I am running for multiple Invoices then Invoice Appendix should print on last page of each Invoice.
    As I'm using XMLP 5.6.1, i'm unable to use <?start@last-page:body?> syntax. So i'm trying to achive this as i'm explaing below.
    Invoice Header
    Invoice Lines
    end Of Lines
    If Invoice_Appendix_flag = 'Yes'
    ---------------<Page Break>------------------
    New Page(Or Last Page)
    Start Of Invoice Appendix
    End Of Invoice Appendix
    End Of Header

  • Extra blank lines in table

    I am getting an extra blank line in my table rows using the following statement:
    <?for-each-group@column:TC_CELL;ITEM_DATE?>
    <?for-each-group:current-group();PAY_TYPE?>
    <?if: PAY_TYPE = ‘R’?>
    <?if: sum(current-group()//HOURS)!= ‘0’?>
    <?sum(current-group()//HOURS)?>
    <?end if?>
    <?end if?>
    <?end for-each-group?>
    <?end for-each-group?
    When PAY_TYPE is equal to 'R' it will print the sum, but then there is a blank line under it.
    Ex:
    | 20.00
    |
    But I want:
    | 20.00
    Any ideas?

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Insert a "page break" into web page?

    Creating a certain set of pages for a client's site that will
    primarily be printed by the viewer. Client wants to be able to
    insert functional page break commands at critical spots in a page.
    Anybody got a sweet bit of code to do this simply and reliably?
    Much appreciated --
    Yairah

    Use CSS and the page-break-before/page-break-after styles?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "hrh_abe" <[email protected]> wrote in
    message
    news:ell946$b75$[email protected]..
    > Creating a certain set of pages for a client's site that
    will primarily be
    > printed by the viewer. Client wants to be able to insert
    functional page
    > break
    > commands at critical spots in a page. Anybody got a
    sweet bit of code to
    > do
    > this simply and reliably?
    >
    > Much appreciated --
    >
    > Yairah
    >

  • Why do emails forwarded or replied to gain extra blank lines

    When replying to, or forward emails that contain original email(s), the original emails frequently gain extra blank lines (Spaces). These extra blank lines grow in number each time the message is include in another email until it becomes so big that the emails become difficult to read.
    This happens regardless of whether I created the original emails or not.

    Hi guigs2,
    Thanks for the reply, however, it does not solve the problem.
    I want to include the original message(s) when forwarding or replying. The problem is that the included original message(s) gain extra blank line spaces between paragraphs each time the original message(s) are transmitted. This means the emails automatically grow in length with blank lines. For example: The original message consists of :
    ''Dear guigs2,''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Kind regards,''
    ''gwap.''
    When this message is replied to, and comes back extra blank links between paragraphs appear. For example:
    ''Dear gwap.''
    ''Thank you''
    ''Kind regards''
    ''guigs2.''
    In a message dated 06/03/2014 17:46:35 GMT Standard Time, [email protected] writes:
    ''Dear XXX''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Kind regards,''
    ''gwap.''
    Each time the original message(s) is/are sent the number of blank lines increases.
    Dear guigs2
    My pleasure.
    Regards
    gwap
    In a message dated 0703/2014 17:46:35 GMT Standard Time, [email protected] writes:
    Dear gwap.
    Thank you
    Kind regards
    guigs2.
    In a message dated 06/03/2014 17:46:35 GMT Standard Time, [email protected] writes:
    Dear guigs2
    Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.
    Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.
    Kind regards,
    gwap.

  • ALV: Display Header,  line item, information after page break .............

    Hi .
    I am facing problem in displaying a particular layout in ALV.
    the layout is as follows:
    1. Header part
    2. Line item
    3. There is field customer and after every change of customer do page break and display information like how many record read and how many record processed. below is brief detail about how to get read and processed record.
    I have two internal table  say table1 and table2.
       Looping table1
      increase the counter as counter_read = counter_read +1.
    compare the record with table2.
    if matches
    increase the counter as counter_process = counter_process + 1.
    4. At the end of report display a error log.
       to get the error log we will follow the above logic and if record not matched then display as error record.
    Please help ASAP to find the solution.
    Thanks in advance

    There is a knowledge base article C2014229 (1210986 - Subreports do not have a Page Header) , but instead of providing link I will just copy content here:
    Symptom
    Since subreports are objects in the Main Report, they do not contain Page Headers. How can you create a fake page header for subreports?
    Resolution
    To create a fake page header for subreports, use the following steps:
    1. In the subreport, create a formula:
    @FakePageHeader
    //name of formula
    WhileReadingRecords;
    2. Go to the 'Insert' menu and click 'Group'. Select the @FakePageHeader formula.
    3. Select the 'Repeat Group Header on Each New Page' option, and click 'OK'.
    This inserts a new group at the lowest, or innermost, grouping level. You will need to move this group to the highest, or outermost, grouping level.
    4. Go to 'Report' menu and click 'Group Expert'. Use the up arrow to move this newest group up to the top of the list.
    5. Move all the headers that you would like repeated into this Header for the @FakePageHeader group.
    Hope it will help.

  • Can I insert a page break but carry on on the same page?

    I need to insert a section break in order to have the footnoting restart again, but I don't want any blank space. I want to insert a single footnote using an asterix that relates to the first footnote entry but then restart the footnoting using numbers, at 1, from the next point, and to have that asterix and then the 1 on consecutive lines at the base of the first page. As far as I can see the provision to restart footnoting like this applies only to sections and when i insert a section break the next block of text after it shofts down to the start of a new page, which defeats me. Would be grateful for some advice. Thanks.

    Hi Damien,
    Pages will not let you mix footnote symbols within a section. You will have to cheat, do some tedious editing and have lots of patience. Or use another app.
    "Blah blah" has a footnote inserted (in reality, Footnote 1). Type * before the 1. Go to the footnote, delete the 1 and type *
    "More blah" has is in reality Footnote 2. Type 1 before the 2. Set the 1 as superscript. Go to the footnote, delete the 2 and type 1.
    Now, back in the text, set the colour of the real footnote numbers to white:
    I hope you don't have many footnotes!
    Regards,
    Ian.

  • Image not printed in SapScript, only after page break

    Hi,
    I have a problem in printing an image (stored as text) in a sapscript. The image was uploaded correctly from a TIF file in tcode SE78. The image contains a signature and I need to print it at variable positions within the form. That is I need to print it in the MAIN window. The image does not get printed when a page break occurs when outputing the text element containing the picture. If the page break occurs when outputing any (other) text, the image is printed correctly (after that text).
    Has anybody else encountered this problem? Could it be a sapscript bug?
    Thx in advance.
    Claudiu

    >
    > Looks like the last page is not called !!! I can see data only on one page and it shows page 1 of 1.
    >
    > "make sure ST_TEMP is filled with data" how do I do this ?? My program line node has the data filled in the internal table it_temp and the loop node has the data transferred to st_temp for every row. How can I debug the program lines code ??
    > > Have a break <username> in the program lines. and check it_temp has data in it.
    > "use a command and call the last page at end of the loop on internal table"...how to do this ?
    > > like program lines there is a "command line" do a little search on SDN for more info on how to use command lines for next page.
    >

  • Space after Page Break

    Hi All,
    i have created a smartform and i use page break for  my requirement now my question is in second page it leave some space and after that dispaying the line item how to remove that space or how display the line item in first with out any space
    Thanks
    Surendra

    Hi,
    Create the second page 
    In that resize  the main window size according to your requirement    
    At page break -create command window give the next page as second page
    Let me know if any concerns...

Maybe you are looking for

  • Having trouble opening Crystal Report files from a document library

    I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint di

  • My MacPro 1.1 Keeps Crashing about 4-5 times a day

    Can anyone give me an idea what to do. My Mac Pro 1.1 12GB Ram connected to a 30 Cinema Dislpay keeps crashing about 4-5 times a day. I have a ATY, Radeon X1900 graphics card. Not sure what to do?

  • HT1473 Where is the 'File' menu? It doesn't exist!

    Help please! Just downloadeed the new version of iTunes (yuck) and when I try to add folders of music there is no option! The Help part of the website says 'go to the File menu# but there isn't one!!!! It's the PC version. Thanks

  • Changing the setting from PDF file to a  JPEG file.

    Is there a way I can change the scan setting on my printer. It is a HP Deskjet F4480. I want to change the setting from PDF file to a JPEG file. I want to scan them so I can see them on my screen saver.

  • Does unmarshall operation hold entire XML document in memory?

    Hi, When the unmarshall operation is done on a large XML file, does the root element Java object returned hold the entire XML document in memory? I have a large XML file that I want to unmarshall that contains many <product> elements for example. I w