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к

Similar Messages

  • Avoiding popup window while running in back ground

    Hi all,
    I have done one program for updating the basic salary using BDC. salaries are updating correctly for some people. but for people it is not updating. The reason for this is it is throwing one information with popup window saying "Entered Salary is greater than Salary Band Maximum". i want to avoid this popup window and update the salary. I dont want to change any data in any table like T510n. but the salary must be updated. how to overcome this situation.
    Thanks and regards,
    Giri.

    Hi,
    In your BDC you can check for the condition when
    SALARY > Max Band Salary.
    In such a case, add BDC_OKCODE command with ENTER in the BDC.
    I had faced similar problems in BDC before.
    Hope this helps,
    Raj

  • 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

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

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

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

  • 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

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

  • Page definition is not found while running JSR286 portlet in WebCenter app

    Hi All,
    I have ADF application which has 3 different task flows 1. my service 2. my car 3. my bike.
    which I have placed into a single bounded task flow called repairTaskflow.
    I have created a JSR286 portlet out of a repairTaskflow. I am trying to consume it in an Webcenter application. When I place the portlet on to the page in Web center application
    and run the page. I see the following error in the console.
    oracle.jbo.NoDefException: JBO-25002: Definition ***.xxxx.view.pageDefs.applications_task_flow_applications_task_flow_CreateEmptyApplicationPageDef of type Form Binding Definition is not found.
         at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2703)
         at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2715)
         at oracle.adf.model.binding.DCBindingContainerDef.findDefObject(DCBindingContainerDef.java:292)
         at oracle.adf.model.binding.DCBindingContainerReference.getDef(DCBindingContainerReference.java:107)
         at oracle.adf.model.BindingContext.findBindingContainerDefByPath(BindingContext.java:1624)
         at oracle.adf.controller.internal.binding.RegionUtils.findOrCreateBindingContainer(RegionUtils.java:246)
         at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.getActivityBindingContainer(DataBindingActivityImpl.java:233)
         at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.beforeExecute(DataBindingActivityImpl.java:77)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:969)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1002)
    Please find below the portlet.xml file
    <portlet-app version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <portlet id="adf_taskflow_WEB_INF_test_task_flow_xml">
            <description>test-task-flow</description>
            <portlet-name>test-task-flow</portlet-name>
            <display-name>test-task-flow</display-name>
            <portlet-class>oracle.portlet.bridge.adf.application.ADFBridgePortlet</portlet-class>
            <init-param>
                <name>javax.portlet.faces.defaultViewId.view</name>
                <value>/adf.task-flow?adf.tfDoc=/WEB-INF/adfp-portlet-bridge-container.xml&amp;adf.tfId=adfp-portlet-bridge-container&amp;_fragmentTaskFlowDoc=/WEB-INF/test-task-flow.xml&amp;_fragmentTaskFlowId=test-task-flow</value>
            </init-param>
            <supports>
                <mime-type>text/html</mime-type>
                <portlet-mode>VIEW</portlet-mode>
            </supports>
            <supported-locale>en</supported-locale>
            <portlet-info>
                <title>test-task-flow</title>
                <short-title>test-task-flow</short-title>
            </portlet-info>
            <security-role-ref>
                <role-name>valid-users</role-name>
            </security-role-ref>
            <container-runtime-option>
                <name>com.oracle.portlet.requireIFrame</name>
                <value>true</value>
            </container-runtime-option>
            <container-runtime-option>
                <name>com.oracle.portlet.minimumWsrpVersion</name>
                <value>2</value>
            </container-runtime-option>
        </portlet>
        <portlet id="adf_taskflow_WEB_INF_single_task_flow_definition_xml">
            <description>single-task-flow-definition</description>
            <portlet-name>single-task-flow-definition</portlet-name>
            <display-name>single-task-flow-definition</display-name>
            <portlet-class>oracle.portlet.bridge.adf.application.ADFBridgePortlet</portlet-class>
            <init-param>
                <name>javax.portlet.faces.defaultViewId.view</name>
                <value>/adf.task-flow?adf.tfDoc=/WEB-INF/adfp-portlet-bridge-container.xml&amp;adf.tfId=adfp-portlet-bridge-container&amp;_fragmentTaskFlowDoc=/WEB-INF/single-task-flow-definition.xml&amp;_fragmentTaskFlowId=single-task-flow-definition</value>
            </init-param>
            <supports>
                <mime-type>text/html</mime-type>
                <portlet-mode>VIEW</portlet-mode>
            </supports>
            <supported-locale>en</supported-locale>
            <portlet-info>
                <title>single-task-flow-definition</title>
                <short-title>single-task-flow-definition</short-title>
            </portlet-info>
            <container-runtime-option>
                <name>com.oracle.portlet.requireIFrame</name>
                <value>true</value>
            </container-runtime-option>
            <container-runtime-option>
                <name>com.oracle.portlet.minimumWsrpVersion</name>
                <value>2</value>
            </container-runtime-option>
        </portlet>
        <portlet id="adf_taskflow_WEB_INF_applications_task_flow_xml">
            <description>applications-task-flow</description>
            <portlet-name>applications-task-flow</portlet-name>
            <display-name>applications-task-flow</display-name>
            <portlet-class>oracle.portlet.bridge.adf.application.ADFBridgePortlet</portlet-class>
            <init-param>
                <name>javax.portlet.faces.defaultViewId.view</name>
                <value>/adf.task-flow?adf.tfDoc=/WEB-INF/adfp-portlet-bridge-container.xml&amp;adf.tfId=adfp-portlet-bridge-container&amp;_fragmentTaskFlowDoc=/WEB-INF/applications-task-flow.xml&amp;_fragmentTaskFlowId=applications-task-flow</value>
            </init-param>
            <supports>
                <mime-type>text/html</mime-type>
                <portlet-mode>VIEW</portlet-mode>
            </supports>
            <supported-locale>en</supported-locale>
            <portlet-info>
                <title>applications-task-flow</title>
                <short-title>applications-task-flow</short-title>
            </portlet-info>
            <container-runtime-option>
                <name>com.oracle.portlet.requireIFrame</name>
                <value>true</value>
            </container-runtime-option>
            <container-runtime-option>
                <name>com.oracle.portlet.minimumWsrpVersion</name>
                <value>2</value>
            </container-runtime-option>
        </portlet>
        <custom-portlet-mode>
            <portlet-mode>about</portlet-mode>
        </custom-portlet-mode>
        <custom-portlet-mode>
            <portlet-mode>config</portlet-mode>
        </custom-portlet-mode>
        <custom-portlet-mode>
            <portlet-mode>edit_defaults</portlet-mode>
        </custom-portlet-mode>
        <custom-portlet-mode>
            <portlet-mode>preview</portlet-mode>
        </custom-portlet-mode>
        <custom-portlet-mode>
            <portlet-mode>print</portlet-mode>
        </custom-portlet-mode>
    </portlet-app> In all the 3 task flow there is at least one method activity placed either as the default activity or part of activities.
    In service page taskflow the default activity is a method activity. If I convert the service-task-flow alone as a portlet, it failed. showing the similar error : pagedef not found.
    Then I created the portlet out of car task-flow whose default activity is a page. This time I can view the portlet, the car list page. Once I click create button on that page which again goes through a method activity, then it failed showing the error mentioned above
    It seems where ever there are method activities on the taskflow, the portlet cannot find the pagedef and its throwing error . I have cross checked the deployed war file and all the pagedef's are bundled into it.
    Any suggestions are much appreciated.
    Thanks,
    Morgan.
    Edited by: Morgan Freeman on Aug 19, 2011 3:27 AM
    Edited by: Morgan Freeman on Aug 19, 2011 3:30 AM
    Edited by: Morgan Freeman on Aug 19, 2011 6:02 AM

    Hi All,
    I solved this issue. The path of pagedef files was not recognized when I publish the taskflows as portlets. Though it runs when I place it as a region on jspx file.
    The folder structure where I placed pagedefs earlier was some thing like this in ViewController -> Application Resources
    com.mycomp.view.pagedefs
    When I wanted to consume the portlet in the portal application, all the pagedefs under this path were not visible to the portlet.
    Once I change the pagedef folder to the immediate folder after the Application Resources, it found all the pagedefs
    Now my folder structure in ViewController -> Application Resources
    view.pagedefs
    Is this a bug? or Am I missing some thing.
    Thanks,
    Morgan.

  • Display total pages

    I'm new to apex and got inherited a few apex applications. For one of the applications, more than one page is returned to the user. Only the next arrow is available, the user would like to jump to different pages. Please advise.

    my apex application doesn't work.
    what should I do.
    please help urgently.!!
    People.. the above obviously is an example on how to ask a question.
    to user10427867 : Good luck with your app!
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Can you personalise you podcast page? I notice some podcasters have black back grounds rather than white.

    Would like to change the look of my podcast page? can this be done?

    It's black for video podcasts and off-white for audio podcasts, and it's not configurable.

  • Display page number in roman numeral

    Is it possible to create a form field that will display the page number in roman numerals and increment by one digit on each of the following pages? If anyone knows of a script that will do this I would greatly appreciate it.

    Yeah, it's possible. Create a unique text field on each page with this code as the custom calculation code:
    event.value = romanize(event.target.page+1);
    Then place this function at the doc-level (I didn't write that one):
    function romanize(num) {
        if (!+num)
            return false;
        var digits = String(+num).split(""),
            key = ["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM",
                   "","X","XX","XXX","XL","L","LX","LXX","LXXX","XC",
                   "","I","II","III","IV","V","VI","VII","VIII","IX"],
            roman = "",
            i = 3;
        while (i--)
            roman = (key[+digits.pop() + (i * 10)] || "") + roman;
        return Array(+digits.join("") + 1).join("M") + roman;

Maybe you are looking for

  • Firefox stopped playing webm files while Chrome still does.

    I get the message, "no video with supported format and mime type found" with some videos as well. This problem appeared for no reason one day. I've tried reinstalling firefox, using a new profile, safe mode, reinstalling flash, and changing the about

  • Keeping file name in picture package

    Hi guys, iam struggling through picture package at the moment, what i would like to do is to keep the original file name in picture package then when the new files are generated not have to type the old name back in some of the names can be quite ela

  • Do I have the latest Safari compatible with my machine?

    I am having trouble finding out if I have the best possible version of Safari for my machine. I have OS X 10.2.8 I have Safari 1.0.3 (v85.8.1) The only download on Apple.com I can find is the new RSS that only works with the latest versions of OS X.

  • Keep gettting "We're sorry, we cannot complete your request on the iTunes Store at this time."

    I keep getting this message when I try to buy or check anything on iTunes "We're sorry, we cannot complete your request on the iTunes Store at this time." I have checked for software updates, re-started the computer...at a loss.

  • PSE 9 Flickering

    Hello, I just upgraded from PSE 7 to PSE9. A strange things happens. In Editor, when I apply changes or scroll my mouse wheel to zoom, my Organizer screen flickers! They are on separate monitors on my XP PC. Am I doing something wrong? Thank you.