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

Similar Messages

  • Problem in displaying total text in total line

    Hi...I am facing problem in displaying total text in first column of total line. Width of first column is sufficient to display text "TOTAL". But somehow its not getting displayed....Please Help...?
    code is as follows:
    ls_layout TYPE  slis_layout_alv .
    ls_layout-totals_text       = 'TOTAL'.
      ls_layout-colwidth_optimize = 'X'.
      ls_layout-no_vline          = 'X'.
      ls_layout-no_hline          = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = gv_repid            " Report ID
          i_callback_top_of_page = 'TOP_OF_PAGE'
          is_layout              = ls_layout
          it_fieldcat            = gt_fieldcat         " Field Catlog
        TABLES
          t_outtab               = gt_cost_output      " Output Table

    hi me to i have the same problem
       FORM create_layout .
      data: text(20) TYPE c.
      it_layout-window_titlebar   = text.
      it_layout-colwidth_optimize = 'X'.
      it_layout-totals_text       = text-013."'Totals'(013).
      it_layout-cell_merge        = 'X'.
      it_layout-zebra             = 'X'.
    ENDFORM.         
    but no output total in alv
    also i had another broplem i had unit i wanna show it in total line and calc value in header

  • Problem in displaying totals based on the Unit of measurement.

    Hi,
    I have Problem in displaying totals based on the Unit of measurement.
    I want to display the total in the output of the alv based on the unit of measurement. for example i have three fields in the output namely
    Matnr           Quantity      UOM
    51                10              EA
    61                10              KG
    71                10              KG
    In the total i should get
                    10         EA
                    20         KG
    Can anyone tell me how to do this?
    The basic req is the exclude the qty with unit EA(each) in the totals.
    Thanks,
    Amit

    H i,
    you can use the collect statement
    to get the proper result
    loop at itab.  ( all the records)
    move all the fields from itab to another
    collect itab1.
    write: itab1-fields, itab1-fields.
    endloop.
    this will solve your problem
    reward points if helpful,
    thanks & regards,
    venkatesh

  • Internal Server Error when Displaying Total No. of Pages in Oracle Reports

    Hello all,
    I've already posted an almost similar message in the Developer Tools forums but would like to post it again here since we think that this is a problem with the report server (Maybe we're missing a patch, a configuration value not set properly or resources are not enough like memory).
    We're using Oracle Reports Server ver10.1.2.0.2 and we're encountering an Internal Server Error when a particular report retrieves around 10K records which displays on each page the current page and the total no of pages. When we only display the current page, the report does not encounter any error.
    When we enabled the tracing options, it just showed that it encountered a Null pointer exception.
    [2006/7/13 11:1:4:703] Debug 50103 (EngineImpl:EngineImpl) : CInitEngine returns 0
    [2006/7/13 11:1:4:765] Exception 50125 (java.lang.NullPointerException
    at oracle.reports.engine.RWEngine.init(RWEngine.java:343)
    at oracle reports.engine.RWEngine.main(RWEngine.java:60)
    ): Internal error java.lang.NullPointerException
    And according to metalink (Doc Id:315228.1), we should just remove the total pages in our report. Problem is that this isn't an option for us. The document also mentioned about something about timeouts. We have already tried setting the request timeout parameter of the HTTP server to larger values but it still doesn't solve the problem.
    Is there a workaround for this?
    Any help would really be greatly appreciated.

    Hi All,
    We really need a workaround for this error. When we enabled the tracing options, it just showed that it encountered a Null pointer exception.
    [2006/7/13 11:1:4:703] Debug 50103 (EngineImpl:EngineImpl) : CInitEngine returns 0
    [2006/7/13 11:1:4:765] Exception 50125 (java.lang.NullPointerException
    at oracle.reports.engine.RWEngine.init(RWEngine.java:343)
    at oracle reports.engine.RWEngine.main(RWEngine.java:60)
    ): Internal error java.lang.NullPointerException
    HELP!

  • Display - Total number of pages in printing a report

    Hi,
         I have to print the data of an internal table and in the header of the report i am displaying 'Pages.' : current page/ total no of pages. Can you tell me how to calcultae the total no of pages ? My report will run in background.
         I got this thing while searching but it is not working in background.
    DATA L_PAGE_COUNT(5) TYPE C.
    end-of-selection.
    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.
    TOP-OF-PAGE.
    WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.

    report zgill_amit
    line-size 80
    line-count 65
    no standard page heading.
    data: imara type table of mara with header line.
    selection-screen begin of block b1 with frame title text-001 .
    parameters: p_check type c.
    selection-screen end of block b1.
    start-of-selection.
    perform get_data.
    perform write_report.
    top-of-page.
    perform top_of_page.
    FORM GET_DATA
    form get_data.
    select * into corresponding fields of table imara
    from mara up to 300 rows.
    endform.
    FORM WRITE_REPORT
    form write_report.
    data: xpage(4) type c.
    loop at imara.
    write:/ imara-matnr.
    endloop.
    write sy-pagno to xpage left-justified.
    do sy-pagno times.
    read line 1 of page sy-index.
    replace '****' with xpage into sy-lisel.
    modify current line.
    enddo.
    endform.
    Form top_of_page
    form top_of_page.
    write:/32 'Test Program',
    at 62 'Page:', at 67 sy-pagno, 'of', '****'.
    endform.
    try this code
    amit

  • Internal Server Error when Displaying Total No. of Pages

    Hello All,
    We're encountering an Internal Server Error when a particular report retrieves around 10K records which displays on each page the current page and the total no of pages. When we only display the current page, the report does not encounter any error.
    How do we fix this?
    We're using Oracle Reports Server ver10.1.2.0.2.
    Thanks in advance!

    Hi All,
    We really need a workaround for this error. When we enabled the tracing options, it just showed that it encountered a Null pointer exception.
    [2006/7/13 11:1:4:703] Debug 50103 (EngineImpl:EngineImpl) : CInitEngine returns 0
    [2006/7/13 11:1:4:765] Exception 50125 (java.lang.NullPointerException
    at oracle.reports.engine.RWEngine.init(RWEngine.java:343)
    at oracle reports.engine.RWEngine.main(RWEngine.java:60)
    ): Internal error java.lang.NullPointerException
    HELP!

  • Problem in displaying Total No.of Lines in ALV report header.

    Hi guys,
    my field symbol internal table is having records in which "Compliance" field is having YES or NO values. now requirement is to display
    Total No. of Compliances which are having YES.
    lets say, internal table is having 10 lines. in which compliance field is having 6 YES and 4 No respective values .
    now i want to display header as No. of Compliances :  6
    following is my code to display Total no.of lines in internal tables.
    * total no. of records selected
       DESCRIBE TABLE <table> LINES ld_lines.
       ld_linesc = ld_lines.
       CONCATENATE text-004 ld_linesc
                         INTO t_line SEPARATED BY space.
       wa_header-typ  = 'A'.
       wa_header-info = t_line.
       APPEND wa_header TO t_header.
       CLEAR: wa_header, t_line,ld_lines, ld_linesc .
    My data is there in Field-Symbol table.
    Now i want to display No.of compliances . could anybody please help me out in this.
    Thanks in Advance.
    Regards
    satish

    HI,
    You can use another option like below,
    <Table>[] = <Table1>[]
    delete table1 where compliance = 'NO'.
    DESCRIBE TABLE <Table1> LINES ld_lines. .. follow your logic as above.
    Hope this will helps you,
    Thanks & Regards,
    Suresh M

  • Problem in displaying total quantity

    For VA02 Transaction:
    When order contains 1 line item it is displaying fine. If order contains more line items total quantity of line items is not displaying, previously itu2019s working fine. I written perform at Item_line element to display line items and I written perform at Item_sum element to display the total quantity. (in debugging for one item 2 elements are triggering ,  when more line items item_sum element is not triggering).
    Please can u help me to display total quantity. And why item_sum element is not triggering.
    Thanks & Regards,
    Raj

    Hi,
    you meant, its not displaying the correct value or it is not at all printing any value in total when u have multiple line items.
    could you paste the code for this part...
    Rgds,
    Pavan

  • XMLP-PROBLEM IN DISPLAYING TOTALS WHEN LINES HAVE MULTILINE DESCRIPTION.

    The Report Totals on documents does not appear at the bottom of the page when we have lines that have multi-line description.
    Actually we had restricted the length of each XML page to display 40 lines only. In case if we are not having details of 40 lines then we are filling the remaining space with the empty lines using "FILLER CHECK" concept. The report is working fine if the invoice description is of only a single line.But when the invoice description is of multiple lines(having new line characters or exceedes the maxmimul length) then the invoice's total information is going to the next page.
    Can any one of you resolve this issue.
    Thanks in Advance.
    Vishnu.

    Hi Tim,
    Thanks for your quick response.
    Here we cant truncate the invoice description, we have to get the whole in that column itself even it may be single or multiple line description. If we are not going to restrict the length of XML page to 40 lines, we are getting the output correctly. Only the problem arises when we are going to restrict the number of lines per page, i,e if you have fixed that length to 10 lines also we are getting the totals in the next page.
    Vishnu.

  • Smartform - problem in displaying text in a page

    Hi experts,
         I am developing an invoice printing in smartforms.Here i am facing one problem.
    i am displaying line items in a table in the footer window.In that table footer i am displaying some text (text contains 8 lines).
          Here if the number of line items are below 3 the text in the footer of the table printing correctly in the 2nd page.
         But if the number of line items are above 3 the text in the footer of the table in footer window is not printing correctly (4 lines in the text is printing in 2nd page remaining 4 lines are not moving to 3rd page).
    Regards,
    Navaneeth.

    Hi
    Generally we use MAIN WINDOW for printing the line itesm data which is not constant.
    Depending on lines it moves to next page.
    You are saying that you are using footer window. It seems that you have taken the height of that window as 3 Lines
    where you wants to print the lines if it is more than 3 ? naturally it goes to next page.
    So you increase the footer window height to a max of the line items, or reduce font.but even if it is not a constant data naturally it goes to next page.
    You have to use the footer window for printing some constant data in the footer like Signature, and address etc.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Problem in displaying image on jsp page

    I want to display an image on jsp page.I copied the image the image in WebContent folder.
    I am able to see the image on the design pane when using the following code:-
    <img src="/image.gif" height="50" width="50"> but when i run it in the browser nothing gets diplsyed.
    also when i use the image container and select the source option that image is not displayed in the WebContents file..plz help.

    Hi,
    Seems that the Problem is there with the way how you specifuied the Image relative Path:
    You have specified the below: The opath of image starts with (/) forward slash:
    *<img src="/image.gif" height="50" width="50">*
    It means to access this Image WebLogic Container will form a Path like this:
    http://localhost:7001/image.gif
    BUT may be the image is available inside your Context root: So Change the <Img> tag like following in your JSP:
    *<img src="image.gif" height="50" width="50">*
    (*NOTE:* Never Start your src path with a Preceesing /)
    Now WLE will consider the path like below ..if your Applications Context root is "TestApp"
    http://localhost:7001/TestApp/image.gif
    I am Assuming that Inside the TestApp Application "image.gif" And "your.jsp" jSP pages are Co-Located (Means available in the Same Directory).
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Magical Stuff)

  • Problem with display of Buttons in ADF

    Hi All,
    I had a strange problem in display of the ADF Page in one of the server.I had two buttons inside ToolBars, The UI was coming fine in the two WLS, But when I deployed the application in third WLS, I was seeing that Buttons are coming in the top of screen,
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:panelStretchLayout id="psl1">
    <f:facet name="center">
    <af:panelGroupLayout id="pgl1">
    <af:panelBox text="Service Request#: #{bindings.srNumber.inputValue}" id="pb1">
    <af:spacer width="10" height="10" id="s1"/>
    <af:outputText value="Service Request#: #{bindings.srNumber.inputValue}"
    id="ot18" inlineStyle="font-weight:bold;"
    rendered="false"/>
    <af:spacer width="15" height="10" id="s2"/>
    <af:separator id="s3" rendered="false"/>
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.subject.inputValue}" label="Summary"
    required="true" columns="100" maximumLength="100" id="it3" showRequired="true">
    <f:validator binding="#{bindings.subject.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.description.inputValue}"
    label="Description" required="true" columns="100"
    maximumLength="1999" id="it2"
    rows="7" showRequired="true">
    <f:validator binding="#{bindings.description.validator}"/>
    </af:inputText>
    </af:panelFormLayout>
    <af:separator id="s4" rendered="false"/>
    </af:panelBox>
    <af:toolbar id="tb1">
    <af:group id="g1">
    <af:commandButton text="#{pageFlowScope.MySRBean.reopenSrBackButtonLabel}" id="cb2"
    action="backtodetails" accessKey="G"
    immediate="true" inlineStyle="border-style:outset; border-width:medium; outline-color:Gray;"/>
    <af:commandButton text="#{pageFlowScope.MySRBean.reopenSrConfirmReopenButtonLabel}" id="cb3"
    action="success"
    actionListener="#{pageFlowScope.MySRBean.reOpenSR}"
    accessKey="C" inlineStyle="border-style:outset; border-width:medium; outline-color:Gray;"/>
    </af:group>
    </af:toolbar>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </jsp:root>
    thanks
    Krishnaveni

    User, please always tell us your jdev version.
    The interesting part is what you did not tell us.
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code means hte code has once run OK and now after you did some changes doesn't any longer. Querstion: what did you change, not oly to the code but to the environment.
    Timo

  • Total number of pages in Normal Report

    How to display the total number of pages in normal report.
    To display current page number I am using sy-pagno.
    Is there any system variable to display Total numbetr of pages in normal report.
    Thanks in advance.

    Hi,
    There is no system variable to find total no of pages but you can use the following to get that one.
    Declare a variable
    DATA L_PAGE_COUNT(5) TYPE C.
    Copy this code to the end of program
    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.
    TOP-OF-PAGE.
        WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
    *--- End of Program
    Thayalan

  • Error: Displaying Total stock quantity captured in Delta

    Hi,
    I am facing a problem, in displaying "Total stock qty" in Bex query. If I display qty Date wise, it should show me "Last value" for the current day (if there is no transaction for a Plant material combination).
    I try to elaborate more  my issue -
    (1) Did stock Initialization in R3 ( on 29 Jan 08), with zero stock transfered ticked.
    (2) Filled setup table for 03.
    (3) Loaded BX with "Marker update".
    (4) Did INIT without "Marker update".
    (5) Did Delta with "Marker update". Latest delta is on 30 th Jan.
    (6) Executed bex query.
    There are few Plant Material combinations, for which I get "Total stock qty" value only till 29 Jan 08.
    I am using this Bex query as Snap-shot purpose. It should show me value till the current date.
    If there is no transaction for any Plant Material combo, it should show me the Last value.
    Please help.

    Is the delivery document being flagged for deletion or is it physically being deleted?
    If the document is being flagged for deletion, then your stating about how the process should work for extraction of the document into BW is correct. However, if the document is being phyically deleted from the database, R3/ECC doesn't have any way to identify that this has occurred and therefore won't provide the record with the deletion flag.
    For phyically deleted documents, there are only a few options available for capturing this:
    1) Re-load everything from a Full Repair extraction.
    2) Create a process that can validate if the document on BW exists still in the R3/ECC environment.

  • Problems for displaying values

    Hi,
    Iam using struts and hibernate, am inserting values into database successfully. But am facing some problem for displaying values in VIEW page.. Am maintainig Session in action servlet..In jsp page only first row displayed numbertimes(depends on number rows in DB) ex i have 4 rows different values. But in View page only first row displayed 4 times. How can i displyed properly .plz help me its urgent?
    in advance thanks?

    Hi Amol,
    in the iview property is the isolation method set to url or to embeded(it should be url)because this might cause the problems described here.
    hope it helps,
    Yoav

Maybe you are looking for

  • Index not getting used in spite of hints

    Its Oracle 10g Release 10.2.0.4.0 Hi All, I have this query in which there is are indexes on Intrument table like this: Instrument: idx 1 : (INSTRUMENT_ID, END_COB_DATE, CLOSE_ACTION_ID, PRODUCT_SUB_TYPE_ID, BEGIN_COB_DATE) idx 2 : ( INSTRUMENT_ID, I

  • Any successful updates to 10.5.3 with 198 mb version?

    I have always used software update to install updates in Tiger and now Leopard without any problems. However, I have never seen seen such a large difference between software update's 198 mb and the Apple website update of 420 mb. Does anyone know why

  • Message incoming indicator

    After last software update I do not see anymore the message indicator on the main page. Before update I could see indicator of an incoming SMS or private mail or business mail on the main screen , now I can see only one to one . If I select private m

  • ImageView under ScrollView wont scroll - Xcode 4 IB

    So I am using the Xcode 4.2.1 Interface Builder. I have embedded a Textview into a Scrollview, and it scrolls just fine. But when i insert an ImageView under the ScrollView, it wont scroll with everything else. While the text scrolls, the image is st

  • High scores table without name repeat

    Hello there, I have some code which fills a high scores table.. we've decided to give away a prize to the top ten people in the high scores table.. the problem is that people are playing repeatedly and fillnig the high scores table with their name, t