Print tpage number/total page number in a report with width more than 240

Dear all,
I need to display total page number as following code sample.
But I need to put it after position 240.
this program can print total page number if   it is placed at postion 239 or before.
WRITE: /234(10) 'Heading',  239 SY-PAGNO,'of ', '-----'.
Whenever I put  240 or more WRITE: /234(10) 'Heading',  240 SY-PAGNO,'of ', '-----'.
Total page num could not be displayed.
Please tell me the solution.
thanks
REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-SIZE 276  LINE-COUNT 65.
    DATA L_PAGE_COUNT(5) TYPE C.
TOP-OF-PAGE.
  WRITE : /234(10) 'PAGE', SY-PAGNO,'/ ','-----', ''.
   WRITE: /234(10) 'Heading',  239 SY-PAGNO,'of ', '-----'.
    ULINE.
START-OF-SELECTION.
  Real list output takes place here
    DO 1000 TIMES.
        WRITE: / 'Line #', SY-LINNO.
    ENDDO.
  Page count will be printed on each page here
    WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
    DO SY-PAGNO TIMES.
        READ LINE 1 OF PAGE SY-INDEX.
        REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
        MODIFY CURRENT LINE.
    ENDDO.

Using Values Greater than 255 for the LINE-SIZE of a List
If you define a fixed column width greater than 255 using the LINE-SIZE addition in the REPORT or NEW-PAGEstatement, the following notes apply:
Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum width (SLIST_MAX_LISTLINE).
Accessing the entire contents of a line: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).
Horizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".
Output length: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.
Example
NEW-PAGE LINE-SIZE 1000.
DATA: F1(500) VALUE 'F1'.
WRITE: /      F1 COLOR COL_NORMAL.  " Output with length 255
WRITE: /(500) F1 COLOR COL_NORMAL.  " Output with length 500
Awrd Points if useful
Bhupal

Similar Messages

  • Page Number - Total Page number in Blocked ALV

    Hi Gurus,
      I need to print the page numbers like 1 of 5 in the ALV footer. Am able to print the current page number but am unable to print the total page number in the footer of the Blocked ALV. Can any one guide me how to display the total number of pages.
    Points will be awarded
    Thanks
    Ravi

    Hi,
    Please refer to the link below :
    http://www.sapdev.co.uk/reporting/alv/alvgrid_events.htm
    Thanks,
    Sri.

  • When I air print from my iPad, I can't limit the number of pages. It just says print and the number of copies and I end up with way more than I want. How do I set it to limit the pages?

    When I air print using FingerPrint from my ipad, it doesn't let me limit the number of pages, and I end up with more pages than I want. It asks if I want multiple copies, but it doesn't ask me number of pages, or which pages. Is there a way to do this?

    When you use an AirPrint compatible printer, you get this option for page range. You are using your computer as the server in order to print, so you probably have to set the range on the computer. While you can print from your printer with this app, I assume that it doesn't give you the same control that you get directly from the iPad when using an AirPrint printer.
    Read this from the FingerPrint support site. Selecting the page range would be part of the formatting of a print job.
    http://fingerprint-support.collobos.com/knowledgebase/articles/66972-i-can-t-for mat-the-print-job

  • How to get the total page number when using Crystal Report in JSP

    In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
    Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
    Thanks.

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • How to know the total page number of the standard report

    How to know the total page number of the standard report?
    If I insert a graph, a table, or text into the end of the standard report, how to know how much space is left for the current page?

    Hello Net,
    Unfortunately, we do not have any VIs in LabVIEW that can figure out the number of pages of a standard report. However, with the use of ActiveX calls you can achieve this task. Here are a couple of discussion forums which discuss this:
    Excel Page Numbering with ActiveX:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=194479&requireLogin=False
    Number Pages in Word Report:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=162972&requireLogin=False
    There is also great documentation on using ActiveX on msdn. You can search this document for page number objects. Here is a link to this:
     http://msdn2.microsoft.com/en-us/library/aa223048(​office.11).aspx
    Please refer to these links. If you still have questions please feel free to let us know so we can assist you.
    Thank you
    Best Regards,
    Dominic L.

  • Regarding Total Page Number got displayed as u0093*u0094.

    I faced when I create the smart form is page number of total page Number. Total Page Number got displayed as “*”.

    Hi ,
    Try this one.
    <b>&sfsy-page& of &Sfsy-formpages&</b>
    <b>Example:</b>
    1 of 2
    2 of 2.

  • Save total page number

    Hi,
    I want to save the total page number of a report.
    Thanks

    Hi Palermo
    Get current page number using SRW.GET_PAGE_NUM procedure. You may want to keep running count of page number as Page Numbers resets at each section.
    Regards
    Sripathy

  • How, using Adobe Connect can increase the number of participants in the meeting? I need more than 25 people.

    Hi, I use licensed Adobe Connect. Earlier in the meeting could involve up to 100 people. Now only 25. How, using Adobe Connect can increase the number of participants in the meeting? I need more than 25 people.
    Thanks for your help.

    The purchasing option through adobe.com only allows up to 25 attendees. If you need more than that, you will need to purchase through a reseller. You can find one that is able to sell in your part of the world, here: Adobe Connect Partners. Just reach out to one of the Global Partners.

  • Which variable gives the Total Page Number in a report

    Which variable of Report can give me the total number of Pages. I want this information on first page itself. I want to refer this value in pl/sql thus i want to access the value programatically, and not just show in report as Page 1 of 10.
    Thanks,
    Sudhanshu

    This may help you! This is straight from the Help in Reports! More about this can be found by searching for Physical PAges in Reports Help!
    Suppose that you want to have the page number at the top of each page of your report. Furthermore, you want the page number to be of the form "Page n of m pages":
    1 Create a field named F_PAGE and set the Source property to &Physical Page Number.
    2 In the Field Property Palette, set the Page Numbering property by filling out the Page Numbering dialog box as follows:
    -Check Main Section and uncheck Header Section and Trailer Section because you only want to number the Main Section pages.
    -Type 1 in the Start At setting.
    -Type 1 in the Increment By setting.
    -Type &Report under Reset At because you don't want the page numbers to reset to zero until the report is done.
    3 Create a field called F_TOTPGE and set the Source property to &Total Number of Physical Pages.
    4 Do either of the following:
    -Hide these fields (i.e., set the Visible property to No) and reference them within boilerplate text:
    Page &F_PAGE of &F_TOTPGE
    -Alternatively, position F_PAGE and F_TOTPGE beside each other. Insert boilerplate to the left of F_PAGE that contains the text "Page". Insert boilerplate between F_PAGE and F_TOTPGE that contains the text "of".
    null

  • Get report  total pages number

    Please guide me to get the total no of pages of a report in runtime..,
    how to achieve it.

    From the menu (in Paper layout)- Insert Page number.

  • Page count and total page number for multiple forms in spool

    Hi,
    I'm printing 5 or 6 forms in the same spool, they basically represent one big form.  Hence the page numbers should continue from one form to the other, also I will need a total page count that includes all the pages from all the forms. How should I go about doing this?

    I'm not certain, but if you change the the page counter mode to INC for every PAGE except the start page of the first form it may just keep counting. Normally the first page of a form is set to START, making it page 1.

  • Display Total page number in exicutable prg while run in Back ground

    Hi All,
    The Logic for Total Pages in Exicutable prg is :-
    v_temp = v_totpage.
    do v_totpage times.
    read line 1 of page sy-index.
    replace '@@@' in sy-lisel with v_temp.
    modify line 1 of page sy-index.
    enddo.
    TOP-OF-PAGE.
    format color col_heading.
    write:/115 'Page:', sy-pagno,'/ ',' @@@'.
    v_totpage = sy-pagno.
    The Logic is working well when the program run in foreground,
    But if it run in Background it's just displaying '1 of @@@' , 2 of @@@  ... like this.
    Pls help me with appropriate logic.
    Thanks.
    Ravi M

    Hi Ravi,
    The above given logic doesn't work for background, it works only in forground.
    Some alternatives have been discussed in this thread so take a look at them.
    Strange Behaviour of Abap Report
    but they seem to complex so check if its really worth the effort or better get the requirement chnaged.
    кu03B1ятu03B9к

  • How to get the number of pages in a PDF file with AcroPDF ActiveX control

    Hi,
    I am using the AcroPDF ActiveX control provided by Acrobat Reader and Professionals(version 9). I just wonder if I using LoadFile to load a PDF document, how can I know the number of pages in that PDF? I do not find any properites or methods that can do that.
    Thanks
    Alan

    Hi unk2,
    There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
    Please let us know if you need additional assistance.
    Best,
    Sara

  • Master-detail reports with variable number of pages in a big report

    I am designing with Reports 6.0.5.32.0 a master-detail report such as a
    combination between a customer with his name, address etc, at the top of
    the page (always 60% of the first page) and then as details lines with his orders.
    For one customer seems relatively OK with the variable number of pages in accordance with the number of his orders.
    When the main query finds more customers I present always the customer at the top of
    a new page (that's easy), but how can I control the number of the next pages for the orders, variable for every customer.
    I can not predict how many pages are necessary for a customer and white pages are
    not desirable. When the number of Max. Vertical Body Pages is too low I can get the next pages for every customer, but appears an
    uncontrollable shift to the left.
    For instance, a customer with 40 orders needs 3 pages, one with 4 orders only 1 page, one with 15 orders 2 pages, etc.
    What's the magic property for a secure and precise layout?

    Hi Andreas,
    did you try setting vertical spacing to expand or variable on master repeating frame (and posible other frames surrounding master repeating frame)?
    Hope this helps

  • Getting total pages incorect in SAPSCRIPT FORM with SAPSCRIPT-FORMPAGES

    Hi,
    In scriptform I have total 3 pages, one is envelope_page, second is page_first, and third page_next. I want total no pages excluding envelop page, I have given HOLD for envelop page, START for first page, and INC for next page. Now when I run, I have only one page as output in my script(excluding envelop) so when am printing &PAGE& of &SAPSCRIPT-FORMPAGES& on first page, its giving me 1 of 2 instead I WANT 1 of 1, I even tried subtracting 1 from &SAPSCRIPT-FORMPAGES&, even by perform, but its not working.
    Its very urgent.
    Basically if anyone can even tell me how to do
    'total pages - 1' , that will also help.
    Please advice.
    Thanks for your help in advance.

    Hi Sanjay,
       In your case where you want to increment the value of the total number of pages always use <b>&SAPSCRIPT-JOBPAGES&</b> and for the individual page <b>&PAGE&</b>.
    Since you have to increment the value of the total number of pages, pass the value to a variable increment the variable and then display that variable.
    :   PERFORM CHECK_PAGE IN PROGRAM Z_SCRIPT
    :   USING &SAPSCRIPT-JOBPAGES&               
    :   CHANGING &WS_PAGE&                           
    :   ENDPERFORM                                
    FORM check_page TABLES p_page STRUCTURE itcsy
                           p_page1 STRUCTURE itcsy.
      READ TABLE p_page INDEX 1.
      IF sy-subrc = 0 .
        p_page1-value = p_page-value + 1.
        MODIFY p_page1 INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    "check_page
    Now your total number of pages would have been increased by 1 and display this variable in the script. But one point is <b>dont declare</b> the variable <b>WS_PAGE</b> in the driver program. If you declare the value will be reset. It will work believe me it works.
    Reward if helpful.
    Regards,
    Tushar

Maybe you are looking for

  • Is it possible to make an object/colour that will not print but still be visible on screen once saved as a PDF?

    I want to show stuff in a PDF that will automatically not 'print' from Illustrator. For example create a colour to make shapes and text that you can read from the saved PDF but will not print once the PDF is printed out Thanks

  • Multiple text lines in spreadsheet

    I have a a text file (tab delim) that contains text & numbers in it eg: T800-12SC    0.003   10   0.125 T300-15XY     0.002   15   0.135 etc. If I tried to read the row, the text field shows up as 0. I found an example "Read Text Header from Spreadsh

  • Images stored in both iPhoto and PE11?

    I have many of the same pictures stored in both iPhoto and PE11. I would like to drop iP. When I delete pictures in iP, will that affect the same pictures stored in PE11 Organizer (stupid having a large number of identical images stored twice on the

  • [Q] convert DOM to XML Document

    Hi, Is there any class or library which convert DOM to XML document? ----- java program ------------ import org.w3c.dom.*; import org.apache.crimson.tree.XmlDocument; public class Sample {   public static void main(String args[]) {     // create a do

  • Moving my  iweb site

    I have a photo blog using iweb on old computer and Leopard, I want to continue creating it on new computer and Snow Leopard, how do I do move the site from Leopard to Snow Leopard, old computer/new computer?