Total no of pages in spool

i need to print  total no of pages in the classical report output in the spool .
i have implemented the below code but its calculating incorrect page numbers.
CALL FUNCTION 'DISPLAY_PAGENUMBER'
EXPORTING
    LINES_TOTAL        = LW_TOT_LINES_5
    LINES_LOOP         = '7'
IMPORTING
    PAGES_TOTAL        = lw_tot_pages.
also i tried the code
DESCRIBE TABLE GINT_ALV_A  LINES LW_TOT_LINES_1.
DESCRIBE TABLE GINT_ALV_B  LINES LW_TOT_LINES_2.
DESCRIBE TABLE GINT_ALV_C  LINES LW_TOT_LINES_3.
DESCRIBE TABLE GINT_ALV_D  LINES LW_TOT_LINES_4.
LW_TOT_LINES_5 = LW_TOT_LINES_1 + LW_TOT_LINES_2 + LW_TOT_LINES_3 + LW_TOT_LINES_4 + 35.
LW_TEMP = LW_TOT_LINES_5 / 30.
lw_tot_pages = trunc( LW_TEMP ).
*temp = frac( temp ).
if LW_TEMP > 0.
lw_tot_pages = lw_tot_pages + 1.
endif.
but even the above code is not working.
please help
Message was edited by: Manish Kumar <spoonfeeding, thread locked by moderator>

FORM f_display_alv_report .
   DATA: lw_tot_lines_1 TYPE i,
         lw_tot_lines_2 TYPE i,
         lw_tot_lines_3 TYPE i,
         lw_tot_lines_4 TYPE i,
         lw_tot_lines_5 TYPE i,
         lw_number_of_header_lines TYPE i VALUE 6,
         lw_lines_per_page TYPE i,
         lw_tot_pages TYPE string,"kkvn512
         lw_totalpage TYPE string VALUE 1,
         lw_temp TYPE f,
         lwa_gint_alv_a TYPE ty_alv,
         lw_index TYPE i,
         lwa_gint_alv_a_copy TYPE ty_alv,
         lwa_gint_alv_b TYPE ty_alv,
         lwa_gint_alv_b_copy TYPE ty_alv,
         lwa_gint_alv_d_copy TYPE ty_alv,
         lwa_gint_alv_d TYPE ty_alv.
   CONSTANTS : lc_of TYPE char2 VALUE 'of'.          " kwff412 EU1K947328
*            * Find number of lines in report table
   LW_TOT_LINES_1 = LINES( GINT_ALV_A ).
   LW_TOT_LINES_2 = LINES( GINT_ALV_B ).
   LW_TOT_LINES_3 = LINES( GINT_ALV_C ).
   LW_TOT_LINES_4 = LINES( GINT_ALV_D ).
   LW_TOT_LINES_5 = LW_TOT_LINES_1 + LW_TOT_LINES_2 + LW_TOT_LINES_3 + LW_TOT_LINES_4 + 35.
DESCRIBE TABLE gint_alv_a  LINES lw_tot_lines_1.
  DESCRIBE TABLE gint_alv_b  LINES lw_tot_lines_2.
DESCRIBE TABLE gint_alv_c  LINES lw_tot_lines_3.
*  lw_tot_lines_5 = lw_tot_lines_1 + lw_tot_lines_2 + lw_tot_lines_3 + + 35.
lw_temp = lw_tot_lines_5 / sy-linct.
lw_tot_pages = TRUNC( lw_temp ).
lw_temp = FRAC( lw_temp ).
IF lw_temp = 0.
lw_tot_pages = lw_tot_pages + 1.
ENDIF.
*  CALL FUNCTION 'DISPLAY_PAGENUMBER'
*  EXPORTING
*    LINES_TOTAL        = LW_TOT_LINES_5
*    LINES_LOOP         = sy-srows
* IMPORTING
*    PAGES_TOTAL        = lw_tot_pages
*  *if delivery is same and hu is not same then we need to blank the quantity field
   IF cb_hu IS NOT INITIAL.
     LOOP AT gint_alv_a INTO lwa_gint_alv_a.
       lw_index = sy-tabix.
       lw_index = lw_index + 1.
       READ TABLE gint_alv_a INTO lwa_gint_alv_a_copy INDEX lw_index.
       IF lwa_gint_alv_a-vbeln_lips = lwa_gint_alv_a_copy-vbeln_lips
           AND lwa_gint_alv_a-exidv <> lwa_gint_alv_a_copy-exidv .
         CLEAR lwa_gint_alv_a_copy-lfimg.
       ENDIF.
       MODIFY gint_alv_a INDEX lw_index FROM lwa_gint_alv_a_copy
         TRANSPORTING lfimg  .
     ENDLOOP.
   ENDIF.
*End of modification kwff412 27.05.2014 EU1K947328
   DATA wa_alv_a TYPE ty_alv.
   WRITE :/ 'Batch Recall Report - Deliveries To Customers'.
   ULINE.
* Start of modification KKVN512 EU1K947328
   WRITE :/ text-054 , sy-pagno,lc_of,lw_tot_pages LEFT-JUSTIFIED , text-039, sy-datum , sy-uname,sy-sysid,
       sy-mandt.
* End of modification Kkvn512 EU1K947328
   ULINE.
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
            2 'Material' ,
           20 sy-vline,
            'Batch'   ,
          30 sy-vline,
             'Material description' ,
          70 sy-vline,
             'batch Status',"COLOR 5,
          100 sy-vline,
             'DOM' ,"COLOR 5,
         112 sy-vline,
             'Expiry Date'," COLOR 5,
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE: / sy-vline,
          2  'Process Order' ,
          20 sy-vline,
            'Plant'  ,"COLOR 5,
          30 sy-vline,
            'Ship To Party' ," COLOR 5,
          50 sy-vline,
             'Customer'," COLOR 5,
         70 sy-vline,
            'Name1'," COLOR 5,
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
        2  'Name 2',"COLOR 5,
      50  sy-vline,
          'Country' ,"COLOR 5,
      70 sy-vline,
           'Adress',"COLOR 5,
      132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
         2 'City',
      37 sy-vline,
          'Post',
      50 sy-vline,
        'Telephone1',
      75 sy-vline,
        'Telephone2',
     100 sy-vline,
         'Fax No.',
     132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
        2 'Delivery',
       20 sy-vline,
         'Quantity',
       50 sy-vline,
         'Batch UOM',
       64 sy-vline,
         'Shipping Date',
       79 sy-vline,
          'Reference Document' ,
      100 sy-vline,
          'Reference Doc. Creation Date',
      132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
       2  'customer PO Number',
       20  sy-vline,
         'Quantity',
      50  sy-vline,
          'HU UOM' ,
      100  sy-vline,
          'HU' ,
      132  sy-vline.
   ULINE  .
   LOOP AT gint_alv_a INTO wa_alv_a.
     FORMAT COLOR OFF.
     WRITE:/ sy-vline,
         2 wa_alv_a-matnr COLOR 3,
        20 sy-vline,
           wa_alv_a-charg,
       30 sy-vline,
         wa_alv_a-maktx,
       75 sy-vline,
          wa_alv_a-atwtb,
       100 sy-vline,
          wa_alv_a-hsdat,
      112 sy-vline,
          wa_alv_a-vfdat,
      132 sy-vline.
     ULINE  .
     WRITE: / sy-vline,
            2  wa_alv_a-aufnr,
            20 sy-vline,
              wa_alv_a-werks,
            30 sy-vline,
              wa_alv_a-kunnr_likp,
            50 sy-vline,
              wa_alv_a-kunnr_kna1,
           70 sy-vline,
              wa_alv_a-name1,
           132 sy-vline.
*           'Name 2',
*      130 SY-VLINE.
     ULINE  .
     WRITE:/ sy-vline,
          2  wa_alv_a-name2,
        50  sy-vline,
            wa_alv_a-land1 ,
        70 sy-vline,
             wa_alv_a-stras,
        132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
            2 wa_alv_a-ort01,
             sy-vline,
           37 wa_alv_a-pstlz,
        50 sy-vline,
            wa_alv_a-telf1,
        75 sy-vline,
          wa_alv_a-telf2,
        100 sy-vline,
          wa_alv_a-telfx,
       132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
          2   wa_alv_a-vbeln_lips,
        20   sy-vline,
             wa_alv_a-lfimg,
        50  sy-vline,
             wa_alv_a-meins,
     64     sy-vline,
          wa_alv_a-wadat_ist,
      79  sy-vline,
           wa_alv_a-vgbel,
      100 sy-vline,
            wa_alv_a-aedat,
      132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
        2   wa_alv_a-bstnk,
      20   sy-vline,
          wa_alv_a-vemng,
      50 sy-vline,
           wa_alv_a-vemeh,
       100  sy-vline,
          wa_alv_a-exidv ,
       132  sy-vline.
     ULINE  .
   ENDLOOP.
********************2nd table**************
    NEW-page.
   WRITE :/ 'Batch Recall Report - Deliveries To AZ Sites'.
   ULINE.
   WRITE :/ text-054 , sy-pagno,lc_of,lw_tot_pages LEFT-JUSTIFIED , text-039, sy-datum , sy-uname,sy-sysid,
       sy-mandt.
*if delivery is same and hu is not same then we need to blank the quantity field
   IF cb_hu IS NOT INITIAL.
     LOOP AT gint_alv_b INTO lwa_gint_alv_b.
       lw_index = sy-tabix.
       lw_index = lw_index + 1.
       READ TABLE gint_alv_b INTO lwa_gint_alv_b_copy INDEX lw_index.
       IF lwa_gint_alv_b-vbeln_lips = lwa_gint_alv_b_copy-vbeln_lips
             AND lwa_gint_alv_b-exidv <> lwa_gint_alv_b_copy-exidv .
         CLEAR lwa_gint_alv_b_copy-lfimg.
       ENDIF.
       MODIFY gint_alv_b INDEX lw_index FROM lwa_gint_alv_b_copy
         TRANSPORTING lfimg  .
     ENDLOOP.
   ENDIF.
* End of modification Kwff412 EU1K947328
   ULINE.
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
            2 'Material' ,
           20 sy-vline,
            'Batch'   ,
          30 sy-vline,
             'Material description' ,
          70 sy-vline,
             'batch Status',
          100 sy-vline,
             'DOM' ,
         112 sy-vline,
             'Expiry Date',
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE: / sy-vline,
          2  'Process Order' ,
          20 sy-vline,
            'Plant'  ,
          30 sy-vline,
            'Ship To Party' ,
          50 sy-vline,
             'Customer',
         70 sy-vline,
            'Name1',
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
        2  'Name 2',
      50  sy-vline,
          'Country' ,
      70 sy-vline,
           'Adress',
      132 sy-vline.
   ULINE  .
   WRITE:/ sy-vline,
        2 'City',
     37 sy-vline,
         'Post',
     50 sy-vline,
       'Telephone1',
     75 sy-vline,
       'Telephone2',
    100 sy-vline,
        'Fax No.',
    132 sy-vline.
   ULINE  .
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
     2   'Shipping Date',
    20  sy-vline,
        'Reference Document' ,
    40 sy-vline,
         'Reference Doc. Creation Date',
    70 sy-vline,
         'customer PO Number',
    100 sy-vline,
       'Quantity',
    120 sy-vline,
        'HU UOM' ,
    132  sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
      2 'HU' ,
     132  sy-vline.
   ULINE  .
   LOOP AT gint_alv_b INTO wa_alv_a.
     FORMAT COLOR OFF.
     WRITE:/ sy-vline,
         2 wa_alv_a-matnr COLOR 3,
        20 sy-vline,
           wa_alv_a-charg,
       30 sy-vline,
         wa_alv_a-maktx,
       75 sy-vline,
          wa_alv_a-atwtb,
       100 sy-vline,
          wa_alv_a-hsdat,
      112 sy-vline,
          wa_alv_a-vfdat,
      132 sy-vline.
     ULINE  .
     WRITE: / sy-vline,
            2  wa_alv_a-aufnr,
            20 sy-vline,
              wa_alv_a-werks,
            30 sy-vline,
              wa_alv_a-kunnr_likp,
            50 sy-vline,
              wa_alv_a-kunnr_kna1,
           70 sy-vline,
              wa_alv_a-name1,
           132 sy-vline.
*           'Name 2',
*      130 SY-VLINE.
     ULINE  .
     WRITE:/ sy-vline,
          2  wa_alv_a-name2,
        50  sy-vline,
            wa_alv_a-land1 ,
        70 sy-vline,
             wa_alv_a-stras,
        132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
            2 wa_alv_a-ort01,
             sy-vline,
           37 wa_alv_a-pstlz,
        50 sy-vline,
            wa_alv_a-telf1,
        75 sy-vline,
          wa_alv_a-telf2,
        100 sy-vline,
          wa_alv_a-telfx,
       132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
          2   wa_alv_a-vbeln_lips,
        20   sy-vline,
             wa_alv_a-lfimg,
        50  sy-vline,
             wa_alv_a-meins,
     64     sy-vline,
          wa_alv_a-wadat_ist,
      79  sy-vline,
           wa_alv_a-vgbel,
      100 sy-vline,
            wa_alv_a-aedat,
      132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
        2   wa_alv_a-bstnk,
      20   sy-vline,
          wa_alv_a-vemng,
      50 sy-vline,
           wa_alv_a-vemeh,
       100  sy-vline,
          wa_alv_a-exidv ,
       132  sy-vline.
     ULINE  .
   ENDLOOP.
***3rd table********************************
   new-PAGE.
   FORMAT COLOR OFF.
   WRITE :/ 'Batch Recall Report -Stock At AZ Sites'.
   ULINE.
   WRITE :/ text-054 , sy-pagno,lc_of,lw_tot_pages LEFT-JUSTIFIED , text-039, sy-datum , sy-uname,sy-sysid,
       sy-mandt.
   FORMAT COLOR COL_HEADING. "kkvn512 EU1K947838
   ULINE.  "kkvn512 EU1K947838
   WRITE:/ sy-vline,
            2 'Material' ,
           20 sy-vline,
            'Batch'   ,
          30 sy-vline,
             'Material description' ,
          70 sy-vline,
             'batch Status',
          100 sy-vline,
             'DOM' ,
         112 sy-vline,
             'Expiry Date',
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE: / sy-vline,
          2  'Process Order' ,
          20 sy-vline,
            'Plant'  ,
          30 sy-vline,
            'Unrestricted' ,
          50 sy-vline,
             'Quality Inspection',
         70 sy-vline,
            'Blocked',
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
        2  'Returns',
      50  sy-vline.
   ULINE. "kkvn512
   LOOP AT gint_alv_c INTO gwa_alv_c.
     FORMAT COLOR OFF.
     WRITE:/ sy-vline,
         2 gwa_alv_c-matnr COLOR 3,
        20 sy-vline,
           gwa_alv_c-charg,
        30 sy-vline,
          gwa_alv_c-maktx,
       70 sy-vline,
          gwa_alv_c-atwtb,
       100 sy-vline,
          gwa_alv_c-hsdat,
      112 sy-vline,
          gwa_alv_c-vfdat,
         132 sy-vline.
     ULINE  .
     WRITE: / sy-vline,
            2  gwa_alv_c-aufnr,
            20 sy-vline,
              gwa_alv_c-werks,
            30 sy-vline,
              gwa_alv_c-cspem,
            50 sy-vline,
              gwa_alv_c-cretm,
           70 sy-vline,
              gwa_alv_c-clabs,
           132 sy-vline.
     ULINE  .
     WRITE:/ sy-vline,
          2  gwa_alv_c-cinsm,
        50  sy-vline.
     ULINE.  "kkvn512
   ENDLOOP.
****4th table*******************************
   new-PAGE.
   WRITE :/ 'Batch Recall Report - Incomplete Deliveries '.
   ULINE.
   WRITE :/ text-054 , sy-pagno,lc_of,lw_tot_pages LEFT-JUSTIFIED , text-039, sy-datum , sy-uname,sy-sysid,
       sy-mandt.
   ULINE.
*if delivery is same and hu is not same then we need to blank the quantity field
   IF cb_hu IS NOT INITIAL.
     LOOP AT gint_alv_d INTO lwa_gint_alv_d.
       lw_index = sy-tabix.
       lw_index = lw_index + 1.
       READ TABLE gint_alv_d INTO lwa_gint_alv_d_copy INDEX lw_index.
       IF lwa_gint_alv_d-vbeln_lips = lwa_gint_alv_d_copy-vbeln_lips
              AND lwa_gint_alv_d-exidv <> lwa_gint_alv_d_copy-exidv .
         CLEAR lwa_gint_alv_d_copy-lfimg.
       ENDIF.
       MODIFY gint_alv_d INDEX lw_index FROM lwa_gint_alv_d_copy
         TRANSPORTING lfimg  .
     ENDLOOP.
   ENDIF.
* End of modification Kwff412 EU1K947328
   ULINE.
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
            2 'Material' ,
           20 sy-vline,
              'Batch'   ,
          30 sy-vline,
             'Material description' ,
          70 sy-vline,
             'batch Status',
          100 sy-vline,
             'DOM' ,
         112 sy-vline,
             'Expiry Date',
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE: / sy-vline,
          2  'Process Order' ,
          20 sy-vline,
            'Plant'  ,
          30 sy-vline,
            'Ship To Party' ,
          50 sy-vline,
             'Customer',
         70 sy-vline,
            'Name1',
         132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
        2  'Name 2',
      50  sy-vline,
          'Country' ,
      70 sy-vline,
           'Adress',
      132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING.
   WRITE:/ sy-vline,
         2 'City',
      37 sy-vline,
          'Post',
      50 sy-vline,
        'Telephone1',
      75 sy-vline,
        'Telephone2',
     100 sy-vline,
         'Fax No.',
     132 sy-vline.
   ULINE  .
   FORMAT COLOR COL_HEADING

Similar Messages

  • To find total number of pages in XML publisher

    1. Is there any method to find the total number of pages in BI or XML publisher.
    2. Is there any method to to repeat the column(Not rows) on every page.For eg you have table with two columns say "A" and "B" .I want to repeat this B in every page . And A should print only in first page.
    3. Is there any method to print a text say "ABC" only on first page footer based on condition.
    Thanks
    Wazid

    Exactly what my requirement is- In my template i have set header and footer page setup as "different first page'" and also printing the user text at the bottom of the last page using <?start@last-page-first:body?> <?end body?>.When i run the template, for multiple pages output user text is displaying at the bottom of the last page that is working fine but for single page output user text is not displaying at the bottom of the page because of the ""different first page'" header and footer.If you have any idea please suggest.

  • How can I get a report with total number of pages printed on my HP Officejet Pro 8610?

    Since knowing the number of pages I print is so critical to a choice of using the "HP Instant Ink Plan" or not, how can I find the total number of pages I have printed on my brand-new (installed 2 days ago) 8610?  And if I can, is it a "resettable" or rolling total?  Don't see anything in user guide and a search yields nothing usable on this blog.
    Printer is installed wirelessly on an older PC with Windows XP SP3.  I can also of course intstall it with network cable but so far it works OK on my home network without network cable.  If it matters which OS, I also have a Lenovo laptop running Vista on which I can install this printer. 
    Please do not respond that I can find the total by counting the number of pieces of paper I have.  Surely the internals of this fine machine must have the requested data so that HP can tell my usage if I select the monthly ink plan!
    This 8610 was a good buy (net $89.00 after trade-in of my six year old J36xx Deskjet) at Office Depot/Max which of course influenced my decision to buy it.  So far I am very happy with printing qualities and speed, have not tried the scanner yet and will probably never use the fax since I have no land line phone. 
    Thanks,
    Harry
    This question was solved.
    View Solution.

    Hi,
    Section #2 of the Printer Ststus report will tell you. Please try:
    Printer status report
    Use the printer status report to view current printer information and ink cartridge status. Also use the printer status report to help you troubleshoot problems with the printer.
    The printer status report also contains a log of recent events.
    If you need to call HP, it is often useful to print the printer status report before calling.
    To print the Printer Status Report
    1. From the printer control panel display, touch and slide your finger across the screen and then touch Setup.
    2. Touch Print Reports and then touch Printer Status Report.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to get total number of pages from .doc file without using Office interop?

    Hi,
    Kindly help me in getting the total number of pages from a .doc file not .docx file using C#. I know how to get by using Office interop but I do not want to use Office interop.
    So, without office automation in C# let me know how to get the total number of pages from a .doc file.
    Regards,
    Ashok

    Hi Ashok,
    >> I know how to get by using Office interop but I do not want to use Office interop
    Could you tell us why you don't want to use Office interop?
    As far as I know, this is the easiest way to achieve.Hmmm,this is my answer
    http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.pagenumbers.startingnumber(v=office.14).aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue with total no of pages in Sap Acript -- &SAPSCRIPT-FORMPAGES(C)&

    Hi,
    I am using the command &SAPSCRIPT-FORMPAGES(C)& to get the total number of pages.But for the first 9 pages it is displaying only one digit and from the 10th page it is displaying the correct value.
    Example : I have a total number of 26 pages for the first 9 pages the output is displaying as
                    Page 1 of 2
                    Page 2 of 2
                   Page 9 of 2
                   Page 10 of 26
                   Page 11 of 26
                  Page 26 of 26
           Currently i have done it this way in my program
           P4    <b2>Print Date:</>&v_prtdat&,,,,,,,,       Page &page& of
           =       &SAPSCRIPT-FORMPAGES&
    I have gone through the earlier Posts,but i could not right solution.
    Please help me in this regard.

    Hi,
         Try to use this
    &PAGE& of &SAPSCRIPT-FORMPAGES(2)&
    "(C) suppresses leading spaces

  • How to get the total numbers of pages have been printed using pl/sql

    Dear All ,
    I want to store the total number of physical pages printed into a database table,, how could I retrieve the value of the total number of pages .
    I am using Oracle Report 6i
    thnxxx in advance :)

    At the end of your report (i.e. after all the frames from your data model) place a dummy field. You can get the page number with srw.get_page_num in the format trigger of this field. Since this is the last field of your report, this is also the last page number.

  • How to get the total number of pages printed in a report?

    Hi All,
    I have a requirement where I need to print a frame of fields only in the last page. Unfortunately I cannot use the 'Print Object On' property as it doesnt work in my case. So, I am planning to write a format trigger on the frame to return TRUE if the page is the last physical page. Now, I need to know how to get the total number of physical pages that will get printed in the report so that I can use this to manipulate the frame. I was planning to use the 'Total Physical Pages' built-in, but it seems like I can just use it to print in a field and I can't use this field's value anywhere in the plsql code (formula column function/format trigger) in the report. Is there anyway to get the total number of pages printed in the report which can be used in the report plsql code?
    Thanks,
    Srini.

    i found the solution, thanks

  • Create a multiple Pg PDF with Forms, while adding up total of each page.

    My name is Javier Morales, I am working on a project for a client in the clothing business. I created a form that it is working very good. I would like your help on figuring out how to insert additional pages to a Pdf form document and keep on adding the Totals of each page.
    My email [email protected] I will really appreciate your prompt response. Right now I have them as single PDF documents, which work fine, as long as I dont try to combine them.

    Fields within an AcroForm PDF need to uniquely named unless you want the identically named fields to share the same value.
    You may have to rethink your approach. You should look at using the template object to spawn additional pages. Unformtuately templates do not function in versions of Reader before XI.

  • How to exclude last page from the total number of pages counter

    Hi,
    I am customizing the payables remittance RTF template, our requirement is to reset page number to 1 for each payment, i am able to achieve this using "@section"
    also we have a requirement to have a summary page at the end, i am able to get this using "start@last-page:body".
    issue is last page is also considered in the page counter of the last payment.
    i.e. suppose if i am generating remittance for 2 payments which are printing details in two pages and one page respectively, my output will have total 4 pages and it's showing
    Payment1 page-1 footer -> 1 of 2
    Payment1 page-2 footer -> 2 of 3
    Payment2 page-3 footer -> 1 of 2
    Summary page-4 footer -> 2 of 2
    but i wanted to see
    Payment1 page-1 footer -> 1 of 2
    Payment1 page-2 footer -> 2 of 3
    Payment2 page-3 footer -> 1 of 1
    Summary page-4 footer -> 1 of 1
    Any idea how to remove the summary page from the page counter.
    Rgds,
    -Kamal

    I'm not sure how it was in Acrobat 9, but in XI you add a Header/Footer and
    one of the options it "Page Number and Date Format", where you can select
    the format of the page number to add, some of them contain the total number
    of pages (such as "1 of n").

  • Problem in displaying total no of pages in Smartform

    Hello experts,
    I have a problem while displaying total no of pages in Smartform.
    When no of pages are more than 10 then in total no of pages , a * is shown till current page is 9, then after it is displaying correct no of pages.
    I am using &sfsy-formpages& to get total no of pages.
    Ex: Like if I have 12 pages to print then i am getting 1/, 2/, 3/* .......... 9/* then 10/12 , 11/12, 12/12.
    Do i have to write some code for that ?? Please give your inputs to get the total no of pages.
    Thanks !

    Hi,
    Try this.
    Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&
    Thanks,
    Anitha A

  • Running calculation totals when adding pages

    http://www.funkylogic.co.uk/equity.pdf
    In a nutshell what I want to achieve is this: a cleint may own several properties, and have different percentage holding on each. Each property has a separate page of questions (the PDF above is that page). The first part of the equation is to calculate up the total equity in the property (TotEquity), and then based on the percentage holding (TotInterest), work out the individuals equity share for that property (TotalB). The form has the option to tell us about another property (addInstance), and we then have a second page with its own calculations and a new TotalB. This TotalB then becomes a running total for all pages added. Please can anyone help??

    Hi,
    Here is a version of the form: https://acrobat.com/#d=b*01ko6g2gn8Jqns9D1Hhg
    It shows how to loop through the instances of Page1. It does not appear to be working correctly (by my eye anyway). I am not convinced of multiplying the two values in the script.
    Hopefully it will give you a direction.
    A couple of things: I would not be inclined to name pages with a capital 'P' (Master pages are 'Page1'), I tend to name design pages as 'page1'. The font you are using is adding to the file size. Something like Myriad Pro is much smaller.
    Niall

  • System symbol for total number of pages in SAP Script

    Hello All,
    I need to display the total number of pages in a SAP Script. Say there are 4 pages and I want to display "Page 1 of 4" at the footer of first page.
    Is there any system symbol to get the total number of pages in SAP Script?
    Many thanks in advance for your help.
    Regards
    Indrajit Chakraborti

    Hi,
    In the Footer window, use this fields
    &Page& of &SAPSCRIPT-FORMPAGES&
    &PAGE& --> Current page No
    &SAPSCRIPT-FORMPAGES& --> Total No of pages Regards
    Regards
    Sudheer
    Message was edited by:
            Sudheer Junnuthula

  • How to calculate total number of pages in a script

    hi
    how to calculate total number of pages in a script

    Jyothsna,
    Date:-&sy-datum&
    Time:-&sy-timlo&
    Total No.of Pages:-&sapscript-formpages&
    Page No:-&PAGE&/&SAPSCRIPT-FORMPAGES&
    Give the above said lines in your text editor,and given the paragraph format.Better create one more window and give the above said lines in the text editor.
    K.Kiran.

  • How to add totals for each page in main window

    hi
      i have problem in scripts
      how to add total in first page ending and carry it to second page , at the end of second page again adding total and so on until last page.
    very urgent
    regards
    ratna

    Hi,
    Check these
    http://help.sap.com/saphelp_40b/helpdata/en/d1/8035c3454211d189710000e8322d00/content.htm
    http://membres.lycos.fr/jolyeric/SAP/Note_de_Cours_Ben/Sapscript/SAPscript_Control_Commands.doc
    try to use the command 'summing' along with one text symbol .Keep the if condtion when page changes at that time u dispay the total as ur keeping the total in text symbol it can be dispayed in the next page
    or this is round about way
    loop at <table>.
    call write_form.
    endloop.
    here u declare a variable 'c' and increment it by 1 in each loop. Then u chgeck if the program has started printing second page then u can print the number of records before printing the next page.
    eg :
    data : c type c value '0'.
    loop at <table>.
    c = c + 1.
    call write_form.
    endloop.
    in form:
    check when the next page is being printed, then u can print the number
    of lines 'c'.
    Feel free to revert back.
    --Ragu

  • No. of pages in spool not correct

    Hi All
    Payment run has been successfully done and spool has been generated but the spool is very long about 7 pages but the no. of pages in spool is only 2 and on printing also only two pages are printed first page and the last page, details from 2nd page to 6th are not coming in the spool print, it is there in spool.
    In settings the no. of pages is from 1 to 10.
    Can anyone help me out with the reason for this?
    Thanks
    Mani

    Is this the first time you are seeing this problem? What happened to previous spools that are generated so far?

Maybe you are looking for

  • Upgrade to Win. 7 or downgrade to Win. XP from Vista Business.......

    T60p 8743-GZU.  I have purchased a 250GB 5400 RPM HARD DRIVE and a SERIAL ATA HARD DRIVE BAY ADAPTER so I can use the 120GB for backup. What would be a better choice, Win. 7 or XP? This is just a travel Laptop, e-mail, web browsing, nothing very impo

  • Query CTS takes a long time

    Our team are working on a query CTS, But Query Transport takes a long time in product system. Any suggestions?

  • Need help with warranty service on ThinkPad Yoga

    Sorry for the seemingly angry headline but I am quite irritated at this point. Around three weeks ago I lost one of the rubber feet off my Thinkpad Yoga 2. After looking on Amazon, the Lenovo store and on Ebay I tried to ask here for advice around tw

  • Custom package layout problem when there are more than 6 pages

    When I add a seventh page to a custom package layout for printing whatever changes that are made to that page take affect on page 1 not on page 7, i.e. if a I rotate a cell on page 7 the affect is not seen on page 7 but it is on page 1 which messes u

  • Not able to open the existing PDF files from Content Server in VL02N

    Hi All, In Delivery transaction VL02N, we are not able to open the PDF file attachments which were created in the Past (Ex. 01/01/2014) from the Content Server. Recently upgraded to Enhancement Pack 7 and not sure whether the issue is due to this upg