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

Similar Messages

  • Smartform issue with page break

    Hi All,
             I have an unusual issue with page break. Here is my scenario, I have a group of items in my table main area and for each group there is sort of header that prints. Similarly there are multiple groups needing a header whenever there is a new group printing. So far it prints fine. But whenever there is a page break and when items from the same group also print on the next page the same header needs to print on the top of next page similar to how the header area repeats on each page. Unfortunately I did not see any page break event for table main area.
    Here is an alternative I have tried but having issues: I have created two rows for this group header one printing from header and another printing from main area. Whenever there is a page break the same group header prints as part of the header and on the rest of the page it prints from the main area. But in a particular scenario, there is a new group starting at almost bottom of the page but as there is not enough space left on the same page (page protection) jumps to next page. In this case there are two group headers printed one coming from the preivous page main area and another coming from the next page header. I hope my explanation is clear enough to understand.
    Please suggest if there is any basic feature of smartform that I have missed out can solve this issue or if there is another alternative you can think of. I appreciate your responses.
    Thanks..

    I was able to solve this issue on my own.
    Instead of checking for a page break on header line I am using a flag that is prepopulated in the table. I set this flag whenver a new group of items starts. If the flag is set I print it from the main area and if it is not set I print it from the header. This helped in avoiding the multiple header lines..

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

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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Printer issue: All pages after first one come out horribly wrong.

    Install: Arch64
    Printer: Canon MP520
    Connection: USB
    Programs printed from: All
    Driver: AUR mp520 packages
    Problem start: recent... last couple of days
    Description: printer was working fine until I decided to print something a few days ago.  I was printing a resume and all the pages after the first (only 3 pages long) came out as if the data got corrupted during it's send to the printer... the first 10th of the page was repeated all the way down the page with large black squares in various places (patterned like the actual part of the page that was printed repeatedly down the sheet)... I have tested this and proven it is the second and all following pages in an individual print (if I print all 3 pages of this resume one at a time, back to back, they all print out in consecutive order with no errors... and I can put in the jobs so that they overlap and it "looks" like a single job). 
    If anyone is willing to help, ask any and every question necessary to get this figured out, cause it's bugging me like nothing else... it's a hassle to print each page individually (has the same effect when printing PDFs from epdfview as well as prints from within GIMP) and I'd like to have my printer back to normal.  Restarting the printer has not worked.  The only thing I can think that I haven't tried is restarting the desktop, but I have a VERY long data download (2 days in) that I'd sincerely hate to have to start over for this error, as it's more than halfway done at this point... so I'm saving that as a last resort to be tried after my download completes... if anyone can come up with some things to try while the comp stays up & online, that would be great... below is a list of things I've tried.
    Things I've tried:
    * restarting cups
    * restarting hal
    * restarting printer
    * physically removing and reconnecting printer
    all other suggestions are welcome.
    EDIT: almost forgot, cups.error is 0kb in size and completely empty, so no output to work with on that level, telling me the error may possibly be in the printer itself, but I'm not sure.
    Last edited by CPUnltd (2010-12-15 05:42:08)

    interesting development... printing business cards with GIMP with Gutenprint and consecutive prints come out just fine (just did a set of 30)... how does this affect the problem that we are having with these printers?  Can people with other printers that have this same issue (canon as well as others) do a few tests with Gimp+Gutenprint to see if they experience different results (pretty sure 2 consecutive prints should be enough.  I'm guessing Gutenprint is a separate printing "engine" (I know, probably a bad term to use, but it's what came to mind) so I'm wondering what could be done as far as being able to use Gutenprint in other programs or what other possible solutions this info may present.
    Disclaimer: I'm probably showing my noob with this statement, cause I don't really know the details when it comes to printing in linux, but I'm still noting my experience nonetheless... and if I look a little "dumber" because of that, so be it!   Gotta learn somehow...

  • ID3 Printing issue-multiple pages per sheet mirror image printing

    So, like the title says, I'm trying to print 4 up per sheet out of ID CS3. The first page prints fine, but all pages that follow print as mirror images. I have gone through all the print settings for InDesign and specific to the printer (Xerox 7665) to make sure that flip and mirror print is not on. Still, it keeps printing every page aside from the first mirrored. Any ideas?

    A friend of mine rang me last week with a similar problem. I didn't know what to say, it was every page after the first one printed upside down.
    To me that can't happen, they should all send at the same orientation.
    Perhaps you need to update your printer drivers. But to me it sounds like an issue with your printer and not InDesign.
    As another test
    Go to File>Print and the advanced menu and choose Print as Bitmap
    I'm not sure what that will prove though?

  • Print issue over network with Vista

    Hello,
    hope this is the right place for this message. I have a dymo 400 turbo installed and working properly on my imac. I want to be able to print to it from my wives vista home laptop. In Vista I goto add it and it does see it on the network and show the imac it installs it but will not print says its unable to connect.
    Any suggestions? I m assuming this a is Vista issue not seeing the imac correctly? I have a HP Officejet connected to my router directly and that prints on both machines fine.
    Thanks,
    MARK

    Can't be 100% sure - I don't have one of those.
    Mac print queues expect to receive postscript, so try changing the driver on Vista to a postscript one, like Apple Color Laserwriter.

  • Print FBL5N without page breaks

    Hi,
    I have a problem in printing the output of tcode FBL5N. If I print the output (for many customer) I obtain the print of ONE CUSTOMER FOR EVERY PAPER SHEET. So if I had to print the open item for 20 customer I obtain 20 sheet!!
    Does someone know which are the parametrizations to do in order to solve this problem?
    Thanks in advance,
    Marco

    Hi,
    Got to menu - Settings - Switch list (To ALV) and then try to take print.  If it is unsuccessful, u need to get the help of the abaper
    Regards,
    Sridevi
    <i>Assign points, if useful</i>
    Message was edited by:
            Sridevi

  • Page Breaks for Customer Open Balance Letter when printing

    Hi All,
    We are running 'Customer Open Balance Letter' report and printing the output(View Output). Which is printed irrespective of page breaks.
    I mean print is like in a single page two letters got printed, which in not expected.
    Are we missing any thing in print setup or the way of printing.
    Please let me know the possibilites of printing a letter per page or different letters printed in different pages without customization of that report.
    thanks in advance.
    Edited by: 834095 on Jun 1, 2011 2:34 AM
    Edited by: 834095 on Jun 1, 2011 2:34 AM

    What is your application release?
    What is the type of the report (text, postscript)?
    Is the issue with this specific report only? Can you reproduce the issue if you print to another printer?
    What if you download the output file to your desktop and print it, can you reproduce the issue then or it is when you print directly from the application only?
    Please post the details of the printer setup/style/driver.
    Thanks,
    Hussein

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

  • Custom page breaks with "@media print" in CSS when creating a PDF from HTML?

    Searching for threads containing the text string "@media print" gave me zero hits, so I guess I'm either the smartest guy in the entire universe for coming up with this idea or the dumbest for the same reason since I must be missing something that everyone else knows by heart without even asking.
    Namely, I would like to make use of the CSS "@media print" wrapper when I'm converting an HTML file to PDF through Adobe Acrobat - as opposed to printing an HTML page through a web browser using the Adobe PDF virtual printer device. These are, as I understand it, two equivalent though not entirely identical (as they make use of and rely on somewhat different settings) procedures that both convert an HTML file into a PDF document.
    Here's my CSS code:
    @media print { span.pagebreak {page-break-before: always} }
    And here's my HTML code invoking the page break:
    <span class="pagebreak"></span>
    Bottom line, this works great when I print the HTML file through my web browser, using the Adobe PDF printer device. However, when converting the HTML file through Adobe Acrobat, this print-related setting is ignored. Obviously, printing and converting a file isn't technically identical but as I said, it's for virtually all intents and purposes the same procedure.
    I'm guessing that someone at the Adobe HQ must have thought through this issue during a brainstorming session and come up with a simple yet elegant solution to cater for the needs of those who want to use custom page breaks when converting their HTML documents directly through Adobe Acrobat. Maybe a simple setting somewhere or a custom CSS tag like "@media adobe", or something similar?

    I've never heard of anyone succeeding in this.

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

  • Acrobat PDFmaker is ignoring hard page breaks in Word docx

    I'm working with a client's Word docx file which is formatted almost entirely with tables and uses hard page breaks throughout. When the document is exported to a PDF using Acrobat PDFMaker, some of the hard page breaks are rendered but some of them are completely ignored. In those cases, section breaks, extra spaces and anything else is ignored, too. It simply runs the table and/or text together as if there was nothing between them. I'm totally baffled. I turned off all widow/orphan control and keep options.

    Glad you found a solution. I am not quite sure what you did or why what was suggested did not work. If you can ever post a document or part of such that demonstrates the problem and the inability of Acrobat to resolve it, I would be interested (a learning process!).
    In terms of WORD, I have seen many forms that folks create in WORD and have similar problems. In many cases they like to use as much of the page as possible. When I try to print the form on my printer, or even view it, it is generally messed up. This WORD form aspect is similar to the book issue you have mentioned. It is characteristic of the reflow of word processors based on the printer metrics.
    You might find this link (http://office.microsoft.com/en-us/word-help/preserve-original-appearance-for-viewing-or-pr inting-HP005189614.aspx) helpful in maintaining the layout. In OFFICE 2007 use of printer metrics was turned off by default in the Options>Advanced>Compatibility. I believe they turned it back in with later updates and versions. The article also mentions the issues with various fonts and the need to embed fonts. Unfortunately, the newer versions of WORD do not embed the fonts of vector graphics.

  • Printer issues for HTML document.

    Hello,
    We are facing a critical problem.In our project we are using sql server 2005,from one of the SP we are generating an HTML document.Ideally this document should be printed in 2 pages.When we print that with Laser JET 2430 printer it gets printed in two pages but when we print that with other version printer it gets printed in four pages.Our client has different version printer due to which they get that document printed in four pages which they want to be in two pages only.
    Workflow of this Document generation is as foloows:
    1)When this SP is executed it generates a HTML document and places at some shared folder.
    2)Then we open the document and apply follwing settings to document in order to view and print it properly as:
    View>>Text Size>>Medium.
    Also check if the size is A4 and margins are set to default values by doing the following.
    Go to
    File>>Page Setup
    Size: A4
    Left: 0.166 Right: 0.166
    Top: 0.166 Bottom: 0.266
    And then click on Print Preview.
    When the document is previwed it should be on two pages only.
    Basically here problem is that document gets printed perfectly when its Top margin is set to 0.166 but each printer has its own minimum Top margin settings due to which in different printers it takes different Top margin values for e.g when we print the document with HP Laser Jet P3005x its minimum Top margin are 0.196 then that document expands to 3 pages.Even we try to set this to 0.166 it gets overwritten with 0.196.
    Can you please tell us what changes should be done to SP which is generating the HTML so that its setting doesnt change printer wise and document gets printed in two pages only.Or else can you please suggest the links of forums where we can discuss this issue.

    Hi
    Quest_RG,
    This is actually very simple question, but it is an CSS question and not sql :-) once you open the HTML document the part of the SQL is over.
    You can use CSS to configure the printing way. using page-break-before and
    page-break-after you can insert CSS breaks where ever you want. for example:
    content here
    <DIV style="page-break-after:always"></DIV>
    content here
    I Hope this will help you,
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for

  • How to restore a previous backup?

    I backup my iPhone 4sregularly.  I recently needed to reset it back to factory settings.  However, the only restore options I had in iTunes were two backups from just minutes before I did the reset.  How do I find other restore selections?

  • How to open psb files in mac

    how to open psb files in mac

  • My computer crashed and I need to transfer songs from my ipod to a new PC

    My computer crashed and I need to transfer songs from my ipod to my new computer. This seems harder than I thought. Does anyone know how to do this?

  • Numerous ATV DAAP ports to MacBook Pro

    This is related to Apple TV3, sorry for the long intro. My internet connectivity pretty much *****. Speed Tests show I'm receiving 16M download as advertised. When I try to connect to a web page, it often freezes and only partially downloads Using "n

  • Oracle Outlook Connector Deployment Problem

    I am trying to deploy Outlook 2003 with the Oracle Outlook connector. I am using the Custom installation Wizard provided by the Microsoft Office 2003 Support Tools. I have set the Oracle connector to piggy-back on the install, however, it will not se