Displaying output in new pages

Hi Frds
In my ABAP report output i wants to display 20 lines per pages and heading should be common to all pages.Kindly tell me how to do to ?
Thanks
Pari Vendhan.R

REPORT <Report Name> NO STANDARD PAGE HEADING
           LINE-COUNT <No of Lines> LINE-SIZE <No of Chars>.
In your case line count is 20 .
This addition specifies the page length for the basic list of the program to page_lines lines and fills the system field sy-linct with this value. If the LINE-COUNT is not specifed, and if page_lines are less than or equal to 0 or greater than 60,000, then the page length is set internally to 60,000. This setting overwrites the passed value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-COUNT addition to the statement NEW-PAGE.
If you optionally specify a number for footer_lines, a corresponding number of lines are reserved for the page footer, which can be described in the event block END-OF-PAGE.
You must specify page_lines and footer_lines as numeric literals.
Notes
For screen lists, you should use the standard value since, as a rule, page breaks defaulted through LINE-COUNT are not adjusted to the window size.
You should also use the standard value for print lists, so that you can still select the page size on a printer-specific basis. A print list should be created in such a way so that it can handle every page size.
Specifying a fixed line count is only useful for form-type lists with a fixed page layout. Here, however, you should always check whether such forms can be created by other means, such as SAPScript forms.
Example
The page length of the basic list is set to 65 lines, eight of which are reserved for the page footer. The line width is 132 characters.
REPORT z_myreport LINE-COUNT 65(8) LINE-SIZE 132.
LINE-SIZE width
Effect
This addition specifies the line width of the basic list and details list of the program to width characters, and sets the system field sy-linsz to this value. The line width determines the number of characters in the line buffer as well as the number of columns in the list displayed. The value width must be a positive numeric literal. The maximum line width is 1,023 characters.
When the LINE-SIZE is not specified, the line width of the basic list is set to a standard width based on the window width of the current Dynpro, but is at least as wide as a standard size SAP window. For the standard width, the contents of sy-linsz is 0. The LINE-SIZE overwrites the value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-SIZE addition to the statement NEW-PAGE.
Note
The current maximum line width is stored in the constants slist_max_linesize of the type group SLIST. Also defined there is a type slist_max_listline of type c with length slist_max_linesize.
To print header use the event TOP-OF-PAGE.
This statement defines an event block whose event is triggered by the ABAP runtime environment during the creation of a list. This occurs when a new page is started - that is, immediately before the first line in a new page is to be output. All list outputs that take place in the event block are placed below the standard page header of the list. You cannot output more lines than are available in the page within the event block. The NEW-PAGE statement is ignored within this event block.

Similar Messages

  • Best Way to Output to New Page for Printing

    On my website, I have a page called
    &quot;form.cfm&quot;. The output from the form gets
    processed, and results displayed onscreen, by
    &quot;formProcess.cfm&quot; What is the best way to take
    the form data displayed on formProcess.cfm and output it to a new
    page suitable for landscape printing? I want to have a link on
    formProcess.cfm that says something like &quot;Printer Friendly
    Version&quot;. When the user clicks that link, a new window
    opens with a printer-friendly page. The same form data displayed on
    formProcess.cfm is now displayed on the printer-friendly page. My
    biggest question is, how to get the form data to formProcess.cfm,
    and then to a third page without a bunch of fancy coding that's
    above my thick head?
    Code samples are deeply appreciated.
    Many thanks,
    Gwen H
    www.ResumesForLess.com

    New page named formPrint.cfm with just the following:
    <cfdocument format="pdf" orientation="landscape">
    <cfinclude template="formProcess.cfm">
    </cfdocument>
    have the print link on your formProcess.cfm page submit the
    original form data to the formPrint.cfm page.
    OR, you might just want to put the cfdocument tags in the
    formProcess.cfm page and just automatically provide a pdf page that
    can be printed rather than generating both the htm and pdf
    versions.

  • Displaying values in a new page

    I have a java script code. At the end when the user clicks on the button after entering the values in the 3rd page, the values shall be displayed in a new page. Please help me out with the final approach:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    if (document.form1.cap.value == "")
    alert("Enter value in text box");
    return;
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form2">');
    for(var i =0; i < document.form1.cap.value; i++)
    msg.document.write("<INPUT type=text name=tbAlphaNumeric>");
    msg.document.write("<br>");
    msg.document.write('<input type="button" name="Button2" value="Steal" onClick="javascript:window.opener.WinShow();">');
    msg.document.write('</form></BODY></HTML>');
    function WinShow() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Great!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>Display of second page text elements!</B></h1></CENTER>");
    for(var j =0; j < document.form1.cap.value; j++)
    msg.document.write(document.form2.tbAlphaNumeric[j].value);
    msg.document.write("<br>");
    msg.document.write('</form></BODY></HTML>');
    </script>
    </head>
    <body>
    <form name="form1">
    <INPUT type= "text" name=cap>
    <input type="button" name="Button1" value="Push me" onClick="WinOpen()">
    </form>
    </body>
    </html> 

    This is a Javascript related question, not a Java related question. Those two languages have nothing to do with each other but a slight similar name and syntax. Although the most Java web developers also understand Javascript, it is not the intention of those Java forums to discuss about Javascript. The forums should not be polluted with unrelated questions.
    Post this question in a Javascript related forum. There are ones at [http://www.webdeveloper.com] and [http://www.dynamicdrive.com].

  • How to display each record on a new page on Smartforms layout

    Hi,
    I need to know how "each time a new record is displayed..it should be displayed on a new page in Smartforms". How much ever I try using the COMMAND inside the LOOP, it is always printing the records in the loop continiously in a single page with the remaining records moving to the next page only once the first page is full. But what i need is to print first record in the first page, second record in the second page...
    Please let me know the exact steps how to use the COMMAND or any other options to acheive this.
    Thanks!
    Edited by: sap123 on Nov 2, 2008 11:55 AM

    hi,
    create a command just before the main windows display and in its general attributes check the check box go to new page and in its conditions tab..set Falg = X.
    now inbetween the loop of ut table or templet, crete program lines and write the code as below.
    data : lv_lines type i.
    describe table i_vbak lines lv_lines.
    clear flag.
    if sy-tabix LT lv_lines.
    flag = 'X'.
    endif.
    remember that these program lines must be after command...
    Try this,

  • Is it possible to have the accordian remember which pane was open when the browser jumps to a new page

    I have the same accordion on all of my pages and I would like
    to have the accordion maintain the same open status that the user
    selected after the browser refreshes. IE. it is a 3 pane setup...
    common to all pages with the same content in each pane on all
    pages. The default is pane 1. If the user selects pane 2 then jumps
    to a new page I would like pane 2 top be displayed on the new page,
    not pane 1.
    Thoughts?

    V1 fusion,
    Hope you feel better.... I tried this and am getting ( syntax
    error
    [Break on this error] if (!Spry.Utils) Spry.Utils = {};\n )
    vw2ureg,
    That seems to have corrected the url... it is now (
    http://site.name.com/index.php?option=com_content&task=blogcategory&id=25&pane=0&Itemid=55
    However it is still not picking up the pane. I am getting
    this error in the console:
    [Exception... "Component is not available" nsresult:
    "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
    file:///Applications/Firefox.app/Contents/MacOS/components/nsSessionStore.js
    :: sss_saveState :: line 1749" data: no]
    [Break on this error] oState.session = { state:
    ((this._loadState == STATE_RUNNING) ? STATE_RUNNIN...
    Refering to this line in
    http://sitename.com/SpryAssets/SpryAccordion.js
    oState.session = { state: ((this._loadState ==
    STATE_RUNNING) ? STATE_RUNNING_STR : STATE_STOPPED_STR) };

  • After update to 12 every start is like the first one (add-ons check+what's new page)

    After updating from FF11 to FF12, every start of the browser is like the first one after update: checking the add-ons compatibility, and displaying "what's new" page. I could live with it but it doesn't make it less annoying. Help anyone!

    See also:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved
    Which security software (firewall, anti-virus) do you have?
    Some security software has virtualization features that can cause problems by protecting and restoring files in the Firefox profile folder.

  • Blank page is getting displayed in SAPScript when using NEW-PAGE option.

    Hello Experts,
    We have created a customized SAPScript and in this separate Script is generated based on the currency(WAERS).
    So if we have 3 different currencies, then 3 pages will be created with there details, but we are using NEW-PAGE option in
    MAIN window to separate the pages and after 3rd page it is displaying 4th page also with footer details.
    So how can we avoid last blank page which is getting displayed?

    Hi isha.walia ,
       This issue can be solved by two ways. Please take the one which suits you better.
    Solution 1: If  you need to generate separate prints for different currencies.
    In the driver program, build an internal table for different currencies which needed to be printed. (Using delete adjacent duplicates, build the internal table with exact number of currencies to be printed). Remove the NEW-PAGE option and call the script/form inside the loop. Do the necessary conditions to manipulate the print.
    Advantages of above solution: Better control on spools if needed.
    Solution 2:  Get the count of the number of pages in a variable. Inside the print loop, increment a flag counter. Check it against the variable which contains the number of pages to be printed at the end of each page. Exit the loop when the number of pages to be printed is reached.
    Advantage of above solution: Simple to write the program.
    Thanks and Regards
    Raghesh R S

  • Page numbers displayed incorrectly in TOC in new Pages - does anybody know how to fix this?

    I'm working on a multi-section document with a single TOC for two sections. Section one uses lowercase roman numerals (i, ii,...) and section two arabic numerals (1, 2, ...). The page numbers are displayed correctly on the pages themselves, but in the TOC the first two headings from section two (pages 1 und 3) are displayed as "i" and "iii". This only started after the update to pages 5, everything was fine before that. Does anybody know how to fix this? I already tried deleting the TOC and inserting a new one and changing the numbers to uppercase letters and back, to no avail.
    thanks for any input

    Go back to Pages '09 inside the iWork Folder inside Applications.
    There are so many problems with Pages 5 it is difficult to know where to begin.
    Peter

  • Fbl5n report showing pritn output for a new customer on a new page

    Hello  All,
    In fbl5n when i execute for all the customers and give print command its printing every new customer on a new page but i want to print the data continously.
    Pls let me knw how to avoid this?
    Sunny

    Hi Sunny,
    you're case is quite common, because SAP displays the customer data in a standard layout, putting a page break after every customer and company code.
    In order to avoid this, you may change the grouping criteria. For that,
    1. be sure that you have not clicked on the header of any column in the list
    2. click on button "sort ascending"
    3. here you'll see that fields "company code" and "account" have an asterisk on column NG (new group). This means that, for every change in these fields, SAP will insert a page break
    4. remove these asterisks
    5. (optional) save this layout for further launchings of the report
    I hope this helps. Best regards,
    Alvaro

  • Data display - aligning group data and carry over on new page logic - 11G

    I am fairly new to BI Publisher, so any help would be much appreciated. I am working with a standard pdf form to display Purchase Order Data. I have saved the image of the pdf as the background of the page. I have a simple table where I am inserting all the data and aligning it on the page so it appears to be in the correct place on the form.
    The form has a section containing 10 blank lines to display the PO data. Each line is .25 inches.
    The problem occurs that at the line description can have 254 characters but the space on the line allows for 51 characters. So I need to display the data something like this (for simplicity sake)
    TableA.id TableA.Description254
    Line 1 1 Blah, 1-51 characters of line descr
    Line 2 Blah blah, 52 - 102 characters
    Line 3 2 Blah, 1-51 characters of line descr
    Line 4 3 Blah, 1-51 characters of line descr
    Line 5 Blah blah, 52 - 102 characters
    Line 6 Blah blah, 103 - 153 characters
    anything that carries over needs to go to a second page with a different background image. So I have several questions.
    1. Any suggestions on how to display the PO Line, so I can substring the PO line description and display the remaining data on a following line? A second line would write the next 51 characters of data if it exists, and would not display the first column, (TableA.Id)
    2. Any suggestions on how to load the carry over data (anything over the 10 lines on the first page) and display on the following page.
    I am including a screen shot so this might make more sense. I have lightly dashed orange lines showing of my table which I use for aligning the data. It is only for reference.
    [ http://www.fifthq.com/bi.jpg|Pdf image]
    http://www.fifthq.com/bi.jpg

    Ok, just in case anyone runs into the same issue. Here was my solution.
    I added a made up record to the existing xsd template that served as a place holder for my dynamic content.
    I created an app package that has two properties.
    1. Full String
    2. Single Line String
    The Method takes in the column width as a parameter. It searches through the Full String until it finds the last available word before the column width. It then returns that as the Single Line String and updates the Full String to what's remaining.
    If I have any of the Full String remaining I keep calling the method.
    I can provide more specific details about the method if anyone needs it.

  • Issue in New Page Display in a SAP Script

    Hi All
             I have applied a line count logic in my SAP script, such that if lines are more than 32, Sub Total is displayed on this page(Sub Total needs 4 lines to display) and from next page,another heading starts. (Total around 39 lines can be displayed  in one page)
    Sub Total Text contains 2 lines of text, and 2 blank lines after it (Total 4 lines)
    Now, if number of lines is around 36, Sub Total, doesnt fully display in this page and the 2 blank lines gets passed to the next page. And I am also firing a new page from my code. As a result, the 2nd page comes fully blank and the data is now being displayed at the 3rd page. How can I prevent the 2nd page from coming blank ??
    I am using Function Module 'CONTROL_FORM' (or WRITE_FORM) to fire a new page.
    I do not want to apply a line count logic for this as this wont be fool proof !!
    I hope I have made the issue clear. Kindly help !!
    Thanks
    KP

    Hi,
    otherwise u can do one thing: U call the PERFORM in the SCRIPT FORM passing the &PAGE&(Contains the current Page No) value to it. take a loal variable and pass the PAGE value to the local variable and check for every line whether both &PAGE& & local varaiable are same, if not then set the FLAG value to 'X' (it means the new page has triggered).
    Eg:
    In Script:
    /:  lv_tabix = lv_tabix + 1.
    /: PERFORM new_page_flag IN PROGRAM ZXXXXX
    /: USING &PAGE&
    /: USING &lv_tabix&
    /: CHANGING &FLAG&
    In ZXXXXX Program:
    FORM new_page_flag USING int_tab STRUCTURE itcsy
                                CHANING out_tab STRUCTURE itcsy.
    data : lv_page TYPE i,
             lv1_tabix TYPE i.
    READ TABLE int_tab WITH KEY name = 'LV_TABIX'.
    IF sy-subrc EQ '0'.
      lv1_tabix = int_tab-value.
      clear : int_tab.
    ENDIF.      
    IF lv1_tabix EQ '1'.
      lv_page = '1'.
    ENDIF.
    READ TABLE int_tab WITH KEY name = 'PAGE'.
    IF lv1_tabix GT '1'.
      IF lv_page NE  int_tab-value.
        READ TABLE out_tab WITH KEY name = 'FLAG'.
        IF sy-subrc EQ 0.
           out_tab-value = 'X'.
           MODIFY out_tab.
           clear : out_tab.
        ENDIF.
      ENDIF.
    ENDIF.
    IF sy-subrc EQ '0'.
      lv_page = int_tab-value.
    ENDIF.                          
    Hope it helps!!
    Rgds,
    Pavan

  • New Page in ALV GRID display.

    HI Experts,
    I have a requirement of displaying top of page and corresponding detailed records for specific combination of top of page(say plant,material,batch etc). Again for the next combination I need repeated header and detail list.
    I guess I have to use NEW PAGE to get this.
    However, I am using the REUSE ALV GRID DISPLAY for which the sort table does not display as required.
    Could you please help me  on this?
    In addition could you please suggest how to use NEW page in report without using OOPS concept.
    Please reply.
    Thanks,
    Suchi.

    Hi,
    1.Put a pushbutton  on the ALV o/p say 'Next'.
    2. Now in the user comand routine you have to change the  table contents u supply to reuse_alv_commentary write, also fill the o/p internal table with data corresponding to ur specific combination and supply to reuse_alv_grid_display.
    3.In the user comand routine u have  slis_selfield.
    4.It contains a component refresh, mark it as 'X'.( slis_selfield-refresh = 'X'.)
    5.No need of new page or calling reus_alv_grid_display number of times.
    Regards,
    Phani.

  • When links are clicked, they do not fully display the NEW page until the mouse is moved.I know it is a current bug, and appears in no other browsers that I know of.

    It was pointed out that my links do not function correctly on Firefox on a Windows platform. When links are clicked, they do not fully display the NEW page until the mouse is moved! I have now observed it for myself on my fathers PC running Windows XP on Firefox.My PC is on Windows7
    It is the 5 version of Firefox, so I know it is a current bug, and appears in no other browsers that I know of.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4+ you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Query regarding displaying of a blank page on the output of an invoice

    hi All,
    I am facing a problem in both my development and staging servers. Whenever a print preview of an invoice is seen, there are 3 pages getting displayed (depending on the data) with one BLANK PAGE between 2 pages having data ie., First page has the data, second page is blank and third page has some data again.
    Now its very strange and i could not understand why this problem  is arising.
    I had debugged the invoice SAPScript, but culd not find the issue,. Can anyone please help me out in this regard.
    Regards
    Priya

    hi!
    hav u assigned the next page for ur first page as wanted.....
    or u r calling two pages explicitly by new-page then check the page assigned and check for spaces in ur program.....

  • Display output page by page in ALV

    HI all,
    can anyone pls tell me how to display output page by page in ALV
    this is urgent..
    Thanks

    Hi,
    if your case is like there sales orders,items.
    you want to prints all sales order+its items in one page
    then
    you need to build sort table.
        L_SPOS                 = L_SPOS + 1.
        IT_SORT_DATA-SPOS      = L_SPOS.
        IT_SORT_DATA-FIELDNAME = 'VBELN'.
        IT_SORT_DATA-TABNAME   = 'IT_DISPLAY'.
        IT_SORT_DATA-DOWN      = 'X'.
        IT_SORT_DATA-GROUP = '*'. "this is for page break
        APPEND IT_SORT_DATA.
        CLEAR IT_SORT_DATA.
    pass this sort info to alv fm.
    regards
    vijay

Maybe you are looking for