Invoice data repeating Address after page break

Hello forum mebers,
i have a problem to create a rtf template which prints invoice data with more than one address.
The original data has more than one invoice to print all papers within one output.
It is for repeat printing. I want to mark several invoices to print.
The source data is splitting into header information (Address,Invoice number,summaries), invoice positions and company information (client).
How to create the xml source ?
How to create the word rtf template to repeat the invoice address on each page also if the first invoice has more than one page.
I have tried the <?template feature, but this only repeats the first address of the data.
I have tried the <?start:body feature, but this creates all addresses on the first page.
I have tried the <?split-by-page-break feature, but this creates no repeating address header.
I am clueless.
Do you have any help or example for this problem ?
Regards
Frank

Hallo Jorge,
danke für die Antwort und das RTF, aber soweit war ich auch schon.
Wenn mann jetzt noch sortiert nach ID und einen Header (template) und Footer hinzufügt, funktioniert es nicht mehr.
Gruß
Frank

Similar Messages

  • ALV: How do I suppress repeating values and page breaks on printed output?

    Good day, everyone!
    First, I've done a LOT of searching trying to find the answer to my question, but I'm not finding an answer.  If this has already been answered and you can point me to a URL, I would appreciate it.
    Here's my issue:  I have a rather simple ALV report.  It has the columns of Person ID, Personnel Number, For Period, In Period, and Amount.  I sort by Person ID and Personnel Number, and if the value repeats on the next line of the report, I want to suppress it (make it blank).
    I thought the answer was in the following code, where I set the GROUP attribute to asterisk:
      CLEAR sortcat_ln.
      sortcat_ln-spos      = '1'.
      sortcat_ln-fieldname = 'PERSONID_EXT'.
      sortcat_ln-up        = c_true.
      sortcat_ln-group     = '*'.
      APPEND sortcat_ln TO sortcat.
      CLEAR sortcat_ln.
      sortcat_ln-spos      = '2'.
      sortcat_ln-fieldname = 'PERNR'.
      sortcat_ln-up        = c_true.
      sortcat_ln-group     = '*'.
      APPEND sortcat_ln TO sortcat.
    It looks PERFECT on the screen -- the values are suppressed if they repeat, and everything appears together on one screen.  However, when I print the report, two things happen:  1) The values repeat on each row, even if they are the same, and 2) I get a page break after each Person ID / Personnel Number combination.
    I now realize that I can't use the GROUP attribute.  Is there some other way in ALV to blank these repeating values and keep all the rows together on one page, rather than page breaking after each value change?
    Thanks!
    Dave

    Hi
    Same requirement i had before, when i try to print preview. the output of the grid display is in grouping is ok, but when i print preview or print it doesnt cater the grouping and page breaks, so what i did i modify the internal table use in alv , after hitting the print preview/print with the format desired by the user. you can do that in user-command. see code below
    FORM user_command USING r_ucomm TYPE syucomm
                            rs_selfield TYPE slis_selfield.
      DATA lt_sort TYPE lvc_t_sort.
      CASE r_ucomm.
        WHEN '&RNT_PREV' OR '&RNT'.
          t_final_x[] = t_final[].
          PERFORM clear_redundant.
          PERFORM set_sort_criteria USING lt_sort.
        WHEN '&F03' OR '&PRINT_BACK_PREVIEW'.
          t_final[] = t_final_x[].
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "user_command
    hope it helps

  • 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.
    >

  • 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.

  • 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.

  • 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...

  • "Space Before" Paragraph after Page Break

    Hello,
    Here is what I am observing : the "Space Before" setting for paragraph styles is ignored if the paragraph is placed after a page break or on a disconnected page. How do I force InDesign to honour my "Space Before" setting ?
    I give you an example : I've created a paragraph style called "Big Title". I've applied this style to section titles and to the index title. I want to lower "Big Title" a few centimeters from the page top, but my "Space Before" setting is ignored. What to do ?

    You can force space above a paragraph by creating a non-printing character in the first line of the paragraph, or above it. Two possibilities:
    * Add a reference-page frame above paragraph to the paragraph format, using the Advanced panel of the paragraph designer.
    * Add autonumbering to the paragraph. Set the autonumber format character to a thin space. Create a character format for the autonumber; set its point size tall enough to create the space above. This has the gotcha of indenting the first line by the width of the thin space.
    For either of these solutions, check that the space above setting for the format doesn't upset your workaround; if necessary, change the space above to let the workaround manage it.
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices   

  • Date Picker null after page submit

    Hi,
    I have created an application with two regions. On one region a select statement displays the list of employees with their employee id's. On other region there is a select statement which shows the leave detail of every employee using range of date on where clause of select statement. Two date picker items are created on region one. when a name of employee is clicked on region one the employee id of that employee uses select statement in second region and its information should display. It is working well without date range. when I use dates in where clause it shows no data because date pickers goes null after page submit. Page is branchig to same page.
    I am not able to resolve why date pickers goes null.
    Oracle Database 11G
    Apex Version 3.0
    Sajjad

    In region one select statement retreives employee id's and there is also search item on region one searching employee names and it retain the value. but date pickers having same setup that you mentioned dos'nt retain values. If they retain values my problem will solve.
    When cliked on employee id select statement should execute using employee id and date picker values on another region on same page.

  • Rebuild dynamic header row in table after page break

    Hi,
    I have a table with dynamic columns. So in the initialize event of the table, I'm build up the header row (add columns with addInstance etc.). The same I'm doing with the table rows. It works fine, so I see correct header row and also several body rows with the right content.
    My issue is now the page break. When I tick the checkbox "Include headerow in subsequent pages", it will show a heade row, but not my dynamic build one. So how can I make sure, that my dynamic creation of the header row will also take place on each page? Is there any event, where I can placed the code it, so the header row is being created on each page freshly?
    I was thinking about to create another header row, for which one I ONLY tick the checkbox "Include headerow in subsequent pages", but this was working neither.
    Do you have any ideas here?
    Thank you & best regards,
    Arne

    Hi Nitin,
    in this case, you must use more nested wrapper subforms and set the root subform layout from "flow" to "positioned". I cannot give advice on how the wrapper subforms are organized, since it depends on your logic, just try it out.
    Cheers,
    Tao

  • Page breaks inside repeating frame

    Hi,
    I am developing a statutory report for India Localisation. In this report there is a repeating frame which has three sections inside. I want to ensure that each of these section prints on a new page all the time. Of course there will be some page wastage, but since the report is statutory it has a prescribed format which mandates this requirement. Each section is like a tabular column and it doesnt look good if it prints without any page break in between the sections.
    Here is what i have tried, I have created three child frames inside the parent repeating frame and I tried to set page break after, page break before and page protect for each of these sections and I also tried various combinations of these 3 settings. But still I couldnot get it right.:-( It will be of great help to me if any one could suggest me a better approach.

    Hi,
    the "page break" properties are only active in parent-child relationships. So if your frame1 is not expandable vertical, frame2 is no child object ob frame1 and so the property page break after of frame1 is not relevant for frame2. So change your layout, that frame2 is child of frame1 and frame3 is child of frame2, then the page break after will run as you expect. You can do this via the property vertical elasticity or via using an anchor between the frames.
    Regards
    Rainer

  • Allow page breaks with content is Disabled for Subform

    Hi,
    I want to display item data on form.I created a subform and dragged table from data view.
    Allow page breaks with content is grayed out!!
    Plus If i want to add a footer in TABLE option this is also grayed out!! Can't we create a footer from the dragged table?
    FYI.. I went to hierarchy view created subform right click page and then dragged table in to this subform.
    Am i doing it right?
    Rgds
    Vara
    Edited by: Vara K on Feb 5, 2009 8:40 PM

    Resolved myself.
    I was creating subforms in page1 instead of the TOP context node.
    So What I did is created a subform from top node and then i got pagebreak options and then dragged table.. so much fun! with forms.
    rgds
    Vara

  • How to give a page break in alv grid display after 65 lines are displayed?

    hi all,
    I need to give a page break in alv grid display after 65 lines are displayed on each page...Please help me with this...

    hai
    give this command beging of the report name... u have to diclar the beging of the report ......
    <b>report</b> ( name of the report)  <b>standard page heading line-size 200 line-count 65.</b>
    ex1.:- report name is  rtpm_trl_show_flows 
    report <b>rtpm_trl_show_flows </b> no standard page heading line-size 200
                                                         line-count 65.
    ex:2
    report  <b>zlpur01</b> no standard page heading line-size 200
                                                         line-count 65.
    type-pools: slis.
    tables: bkpf.
    selection-screen begin of block sel with frame title text-001.
    select-options: s_comp for bkpf-bukrs, " Company
                    s_valut for bkpf-budat. " Invoice Date
                   S_MTART FOR MARA-MTART. " Material Type
    selection-screen end of block sel.
    parameters: p_vari like disvariant-variant. " ALV Variant
    constants: formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
    data:   i_bseg type bseg  occurs 0 with header line.
    data: vatval type p decimals 2 value '0.15'.
    data: xhkont type string value '154000'.
    data COM type c.
    data: begin of invt occurs 100,
            budat like bkpf-budat, " Inv Dat
            bukrs like bkpf-bukrs, " Material
            STCEG like bsak-STCEG, "name of the companycode
            belnr like bkpf-belnr,
            xblnr like bkpf-xblnr, " Inv Reference
            ebeln like rseg-ebeln, " PO number
            lifnr like bseg-lifnr, " Vendor No
            name1 like lfa1-name1, " Supplier Name
            matnr like bseg-matnr,
            maktx like makt-maktx,
            stcd1 like lfa1-stcd1, " Supplier VAT REG NO
            xamt like bseg-dmbtr, " TAX amt
            yamt like bseg-wrbtr,
            wrbtr like bseg-wrbtr, " Base amount
            mwskz like bseg-mwskz,
            dmbtr like bseg-dmbtr, " TAX amt
            gjahr like bkpf-gjahr,
            hkont like bseg-hkont,
            zamt like bseg-dmbtr, " TAX amt
            wamt like bseg-dmbtr,
            shkzg like bseg-shkzg,
            shkzg1 like bseg-shkzg,
          end of invt.
    regard
    nawa

  • Page Breaks in Repeating Frame's

    In my report, my query is a 184 column table. Select query is also a 184 column table.
    There are Repeating frames in my layout editor, each contains 10 columns. From the 2nd repeating frame onwards, the page break before property is "Yes". Now if, for the 1st repeating frame there is data (10 columns only) Then the rest of the page is blank. All the page break before property is "Yes" How do I avoid these blank pages

    Hi,
    the "page break" properties are only active in parent-child relationships. So if your frame1 is not expandable vertical, frame2 is no child object ob frame1 and so the property page break after of frame1 is not relevant for frame2. So change your layout, that frame2 is child of frame1 and frame3 is child of frame2, then the page break after will run as you expect. You can do this via the property vertical elasticity or via using an anchor between the frames.
    Regards
    Rainer

  • Page Break After doesn't work???

    I have a report with a query like foll.
    select Region, District, sum(col1), sum(col2), ...
    from t1, t2, t3....
    where
    ....<< some conditions>>
    Group by Region, District;
    Foll is the sample output:
    Region District Col1 Col2
    R1 D1 100 200
    D2 100 200
    Totals/Avg xx xx xx
    R2 D3 100 200
    D4 100 200
    D5 100 200
    Totals/Avg xx xx xx
    R3 D6 100 200
    D7 100 200
    Totals/Avg xx xx xx
    I created a group Left report on Region.
    Now i need each region to appear on a new page for that i selected the Region Repeating frame & set the property Max Records per page = 1 & Page break after = yes. After doing that i see only first Region on first page & rest of the data disappears. I don't know why but data is hiding. when i remove these properties, my data comes back.
    Any kind of suggestion will be appriciated.
    Thanks

    Hi,
    Try to increase the size of repeating frame, as I follow this strategy in my report find the outermost repeating frame and increase its size to whole page than increase the size of your required repeating frame if you want to break page on this group, no need to set max record and page break properties(as I saw page break property never works).
    Thanks.
    Khawar

  • Text Field repeating at Page Break in Interactive Adobe form in Webdynpro Java

    I have requirement in which Text field containing 'Rich Text' data has a huge data coming at runtime. It is displaying correctly without any scrollbars on a single page .Now the problem is when data exceeds to next page ,text field repeats it with first line and also adds scrollbar to text field.
    I have set text field properties like Allow Page Break,Allow multiple lines ,Height Auto fit.
    Also The Text field is in flowed Subform ,Allow page breaks checked.
    Kindly provide solution in quick time..

    Yes I have checked all the subforms Flowed. Text field is working good in Preview Pdf Option of NWDS.
    But when I generate the pdf on server, when TextField flows to next page, on next page it repeats from first line.

Maybe you are looking for