Using Back Button after Display Report

Hi,
Need an advice, i need to customize the standard BACK button after report had been displayed, trying to use AT USER-COMMAND, but still not avail..
anyone can come with example will help me a lot.
Thanks

Hi badz lee,
Just change the function code 'BACK' to 'ZBACK' in your custom GUI staus.
Then write your own logic for the custmer needs.
Hope this code helps.
*& Report  ZVK_TEST
REPORT  zvk_test.
TABLES:ekko."for select option only
SELECT-OPTIONS:s_ebeln FOR ekko-ebeln.
DATA:lt_ekko TYPE TABLE OF ekko,
     lw_ekko TYPE ekko.
START-OF-SELECTION.
  SET PF-STATUS 'STLI'."copy status STLI of program SAPMSSY0.
  SET TITLEBAR 'TITLE'.
  SELECT * INTO TABLE lt_ekko
    FROM ekko
    WHERE ebeln IN s_ebeln.
  LOOP AT lt_ekko INTO lw_ekko.
    WRITE:/ lw_ekko-ebeln,
            lw_ekko-bukrs,
            lw_ekko-bstyp,
            lw_ekko-bsart.
  ENDLOOP.
END-OF-SELECTION.
AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'ZBACK'.
      PERFORM back_function."Your logic
    WHEN OTHERS.
  ENDCASE.
*&      Form  BACK_FUNCTION
FORM back_function .
  LEAVE PROGRAM.
ENDFORM.                    " BACK_FUNCTION

Similar Messages

  • While Printing using Print Button on Crysal Report Loses focus.

    Hi all,
    I am using CR XI along with VS2003 for developing my application.
    My application uses a Treeview to list all the available reports, once user select one of the report. I am using another dll, which contain all the rpt files as Embedded Resource, for showing the report in Crystal report viewer.
    Once report get loaded, I am using Print Button from Crystal report viewer to print the report.
    report get printed properly..
    However a strange behavior occurring, Form with Crystal report viewer control placed loses focus and immediate below window coming into focus (some other opened window get activated and bring to front and hiding my application).
    Any suggestion would be appreciated.
    Thank you
    Riju K K

    Hi Brian,
    Thanks for you are reply.
    I think I am not creating a separate process,
    From my application, I am creating an instance of form (which is in another DLL) which is hosting Crystal report viewer.
    If click "Print" button on the Crystal report viewer, I am getting a Printer selection form.
    If I cancel from there ,my Crystal report viewer form get focus back.
    If select a printer and click "OK". my Crystal report viewer form lost focus and some of the other window opened (word, ie, etc) before get focus.
    My assumption is Crystal Report viewer's "Print" button may be using a separate thread for Printing.
    that may creating this focus issue.
    what you think?

  • Active Focal Point Not Shown in Software Using Back Button Focus

    I use Back Button Focus (BBF) and set the focus point (using center spot).
    In the software (DPP, ZoomBrowser or EOS Utility) the point I selected is not highlighted in the view window.
    All points are shown, but none highlighted.
    If I take the same shot using default focus method (shutter button AF), the point is highlighted .
    Why is this?
    Not too technical, please
    Canon 3Ti, EF 50mm f/1.4 USM, EF-S 18-55mm f/3.5-5.6 IS II, EF-S 55-250mm f/4-5.6 IS II, 320EX Speedlite

    Thanks.
    I did just download and install the updates (DPP, EOS, Picture Style Editor and Zoom Browser).
    Still no red focus point(s) shown with Back-button Focusing.
    I searched on the web for this "symptom" and found, that I'm not alone.
    It seems in Back-Button Focusing, the focus point won't be displayed unless you hold the back button down (* button  in my case) while pressing the shutter button.
    I tried holding the * button while taking a shot and yes the red box shows up.
    This seems like defeating the usefulness of back button focusing. (???).
    What do I know? I'm just a newbie.
    Canon 3Ti, EF 50mm f/1.4 USM, EF-S 18-55mm f/3.5-5.6 IS II, EF-S 55-250mm f/4-5.6 IS II, 320EX Speedlite

  • How to disable  browser back button after session logout..

    Hi;
    I want to restrict the user to use the back button after session expired or logout. By doing the session expired we are restricting the user to do any new work but I want to restrict the user to see the back pages that he surfed previously in the session.
    Is there any method to disable the browser back button after the session Expired?
    please help me to find out the solution..
    Thanks in advance.
    With Regards,
    Haramohan

    One possible way is automatic return to the current page by writing the following Javascript code to the previous page:
    <script language=JavaScript>
    function backButtonOverride(){
    setTimeout("backButtonOverrideBody()", 1);
    function backButtonOverrideBody(){
    try {
    history.forward();
    } catch (e) {}
    setTimeout("backButtonOverrideBody()", 100);
    </script>
    <%
    catch(Exception e){
    %>
    <jsp:forward page="front.jsp"></jsp:forward>
    <%
    %>

  • In my application on openeing a page mozilla browser history shows more than one entry which inturn makes it difficult to go the previous page using back button. It works fine in I

    In My application on opening a page using TOC, mozilla browser shows more thanon entry in history, which makes it difficult to browse the previous page using back button. Although it works fine on IE
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)

    In My application on opening a page using TOC, mozilla browser shows more thanon entry in history, which makes it difficult to browse the previous page using back button. Although it works fine on IE
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)

  • FF always goes back to top of page after using back button. can i disable this?

    is there a way to disable FFox going to the top of the site after i use the back button?
    If i am on a site and i click on a link then i use the back button, it always goes to the top of the screen or site, then i have to scroll all the way down again every time.

    I also have had the same problem for months now. The updates do not fix the problem. Is there anyone out there with an answer?
    Sometimes out of the blue I will click somewhere on the itunes store screen and it will stop doing it but, I can't repeat it the next time I open Itunes. It always just wants to stay scrolled all the way to the top on every itunes store page.

  • Able to see web page using back button even after logout

    Hi,
    I have created a web application using creator.
    I have disabled caching by putting following meta tags inside the <ui:head> tag to prevent caching of the sensitive web pages.
    <meta http-equiv="pragma" content="no-cache"/>
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"/>
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE"/>
    <META HTTP-EQUIV="EXPIRES" CONTENT="-1"/>
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-STORE"/>
    But after logout when the user clicks on the back button the user is still able to see the previous page visited. Is there any work around for this? I am using firefox. Have not checked whether this happens in other browsers or not.
    Would really appretiate if you help me.
    Regs,
    Shastri.

    I understand that this question has been asked multiple times and till now my search for any possible workaround for the issue has been futile. If anybody out there knows or finds a work around, please let me know.
    Thanks in advance.
    -Shastri

  • Text Click box not working when using back button on playbar

    I have an interstesting situation.
    I have a slide that has 2 text clickboxes (Slide B)
    Each text click box has an advanced action associated that controls what is displayed on the next slide (Slide C) . The click boxes and the advanced actions work just fine except for the following situation:
    The learner is on Slide C and uses the 'back button' on the playbar to return to the slide where the two text click boxes are (Slide B), then the click boxes don't seem to work.
    However if the learner goes back one additional slide, the slide before slide B (let's call that one slide A) and the continues from Slide A to Slide B, then the click boxes on Slide B work again.
    Can't figure out why that is?
    has anyone come across this issue before?

    Not for native Captivate interactive objects that suffer with this limitation.  There are interactive widgets such as the Infosemantics Event Handler that have preference options to Reset Success/Fail Criteria After Action.
    You could download a trial version and give that a go:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    You can attach this widget to any kind of screen object to make that object interactive.

  • Using Back button issue for radio button

    Dear All,
    My initial screen has 2 radio buttons, on selecting will take to a selection screen with few fields, i have enabled the back button using MODULE user_command AT EXIT-COMMAND.
      when i select a Radio Button 1 which takes to the Selection Screen 1, if the user clicks back button it works fine, even thou we got a mandatory field, it goes back,
    however when i click Radio Button 2 it still takes me to Selection Screen 1, its the same vice versa.
    Is there anyway i can change the screen based on radio button entry

    Hi Krishan,
    You can call your desire selection screen based on the button click.
    if you are working on report program (SE38), then say you have two radio button p1 and p2 and also you have created two selection screen block B1 and B2 and each block has some selection screen elements i.e fields.
    Now if you want that after radio button click b1, you want the only selection screen block B1 and while clicking radio button b2 click ,you want only selection screen block B2.
    Two acheive this in report programming, use the event AT SELECTION-SCREEN OUTPUT.
    so a demo code for the same,
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-049.
    PARAMETERS: p_header RADIOBUTTON GROUP asim USER-COMMAND s DEFAULT 'X',
                                p_item RADIOBUTTON GROUP asim.
    SELECTION-SCREEN END OF BLOCK lim.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-051.
    PARAMETERS : p_vbeln TYPE vbak-vbeln MODIF ID sc1,
                  p_audat TYPE vbak-audat MODIF ID sc1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-050.
    PARAMETERS : p_vbeln1 TYPE vbap-vbeln MODIF ID sc2,
                                 p_posnr TYPE vbap-posnr MODIF ID sc2.
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
       IF p_header EQ 'X'.
         LOOP AT SCREEN.
           IF screen-group1 = 'SC1'.
             screen-active = '1'.
           ELSEIF screen-group1 = 'SC2'.
             screen-active = '0'.
           ENDIF.
           MODIFY SCREEN.
         ENDLOOP.
       ELSEIF p_item EQ 'X'.
         LOOP AT SCREEN.
           IF screen-group1 = 'SC2'.
             screen-active = '1'.
           ELSEIF screen-group1 = 'SC1'.
             screen-active = '0'.
           ENDIF.
           MODIFY SCREEN.
         ENDLOOP.
       ENDIF.
    If you are working with Module POOL, then code in the PAI of the screen, and call your respective screen while respective button click.
    code:
    MODULE user_command_900 INPUT.
         IF p1 EQ 'X'.
              CALL SCREEN 9001.
         ELSEIF p2 EQ 'X'.
              CALL SCREEN 9002.
         ENDIF.
    NOTE: your screen 9001 have some screen input fields and 9002 have some screen input fields.
    Thanks & Regards
    Syed

  • Error when clicking other button after displaying Popup window

    Hi,
    I'm developing a custom page which calls a popup window in r12, below is the error encountered.
    Error: Cannot Display Page
    You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    On my base page, I have other buttons like Save, Back, and the button to invoke the popup window. I can display the popup window without error, but when i clicked on the base page's other buttons after invoking the popup window, the error above is shown. I'm not clicking any browser's navigation buttons. Please let me know how to solve this error.
    Thanks!

    Hi,
    Just want to update...
    The error occurred because I have isBackNavigationFired checking, this becomes true when clicking the other buttons in the base page after displaying the popup. Is there a workaround where I can make this work without removing my back browser navigation checking?
    Thanks!

  • Problem in Back Button in ALV report

    Hi Team,
    I have created a report which has a selection screen. Based on the input I am showing an ALV OO grid in my custom screen 0100. Now In the system toolbar on my 0100 screen I have enabled back, up and exit button. On click of which I am wrting 'LEAVE TO SCREEN 0. '
    But it doesn't take me to the selection screen. Rather it throws me out of the transaction. Can anybody
    suggest me a command so that when I click on back button it will take to the selection screen.
    Thanks,
    Mainak

    Hi,
    Go through given program it is very usefull for you,
    ***Correct your program as follows...
    PROGRAM rsolett1 MESSAGE-ID sy.
    TYPE-POOLS: slis.
    data: repid like sy-repid.
    DATA: w_fieldcat TYPE slis_fieldcat_alv,
    t_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: w_listheader TYPE slis_listheader,
    t_listheader TYPE slis_t_listheader.
    DATA: BEGIN OF t_output OCCURS 0,
    slno TYPE char10,
    name TYPE char10,
    lino TYPE char10,
    prof TYPE char10,
    addr TYPE char10,
    fanm TYPE char10,
    plbu TYPE char10,
    END OF t_output.
    w_fieldcat-col_pos = 1.
    w_fieldcat-fieldname = 'SLNO'.
    w_fieldcat-seltext_m = 'SERIAL NUMBER'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    w_fieldcat-col_pos = 2.
    w_fieldcat-fieldname = 'NAME'.
    w_fieldcat-seltext_m = 'NAME'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    w_fieldcat-col_pos = 3.
    w_fieldcat-fieldname = 'LINO'.
    w_fieldcat-seltext_m = 'LICENCE NUMBER'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    w_fieldcat-col_pos = 4.
    w_fieldcat-fieldname = 'PROF'.
    w_fieldcat-seltext_m = 'PROFESSION'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    w_fieldcat-col_pos = 5.
    w_fieldcat-fieldname = 'ADDR'.
    w_fieldcat-seltext_m = 'ADDRESS'.
    w_fieldcat-do_sum = 'X'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    w_fieldcat-col_pos = 6.
    w_fieldcat-fieldname = 'FANM'.
    w_fieldcat-seltext_m = 'FATHER NAME'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    w_fieldcat-col_pos = 7.
    w_fieldcat-fieldname = 'PLBU'.
    w_fieldcat-seltext_m = 'PLACE OF BUSSINESS'.
    APPEND w_fieldcat TO t_fieldcat.
    CLEAR w_fieldcat.
    *PUPULATING TOP-OF-PAGE.
    w_listheader-typ = 'H'.
    w_listheader-info = 'FORMA'.
    APPEND w_listheader TO t_listheader.
    CLEAR w_listheader.
    repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = ' '
    i_callback_top_of_page = 'SUB_TOP_OF_PAGE'
    it_fieldcat = t_fieldcat
    i_default = 'X'
    TABLES
    t_outtab = t_output.
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZPFSTATUS'.
    ENDFORM.
    Edited by: Ganesh Modhave on Aug 12, 2008 1:06 PM
    Thanks&Regards,
    Naresh kumar

  • Using back button to clear data

    I have a several JSP pages that help create a report. The first page you choose some options using check boxes. The second page you put those options in a certain order. The last page you choose the data you want to search for and it runs the report. The second and the last pages have a back button. The problem is when you use the back button and change some of your choices the old choices don't always go away. What I need to do is erase the previous choice (which are contained in an array) when the back button is clicked.
    One problem is that the array is declared in a different method than the one that determines what happens when the back button is pressed.

    You can use reset funcyion to clear data on back button.
    Cheers
    Varun Rathore

  • Making sure you can't use back button to go back to a secure page

    I am wondering how I can go about ensuring that the user of my application can not use the back button to go back to a secure page after leaving it.
    What is the easiest way to implement this added security?
    Thank you.

    I think the easiest way would be to put in a javascript that opens a page of your choice (such as the home page of a site, for example) and another javascript that closes the browser window. You can get the new window script by clicking here. I'm not sure about the close browser window javascript, but I know that there is a close browser (kills the whole browser, and all the open windows) available here, but that may be a bit overkill. I think you could redo the javascript on the first one so it says something like close_window , but I'm new to javascript and wouldn't know for sure...
    Hope this helps!

  • The Problem is about Standard Back Button Function in Report Program

    The Problem is about Standard Back Button Function in the Report Program.
           In the Report,First call screen Then Using "write" output some information,That is ok. but In the GUI When I press back button that is standard button,it exit screen to program.
           My question is how can i do When i press back button,the screen can be back forward first screen instand of exit screen to program.  Thanks .

    This problem is solution.I call screen using T-code and submit report In PAI,at last return to PAI.That is OK.

  • Back Button after logout

    After the user logs out, and if they click the back button again they should see
    some error message, or be redirected to the error page. I have put the following
    in the head.jsp but it does not work.
    I tried using both the blocks (one at a time) in head.jsp - but neither worked.
    <%
    response.setHeader("Expires", "Mon, 26 Jul 1990 05:00:00 GMT");
    response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control","no-store");
    %>
    OR
    <meta http-equiv="expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">

    Leonardo -
    When you click back the portal framework does not execute the page flows again.
    Thus this solution will not work.
    Thanks
    Kunal
    "Leonardo Contreras" <[email protected]> wrote:
    >
    You can use the login-required annotattion for catching LoginExpiredException
    and
    NotLoggedException, this could fix your problem (i´ve used it with pageflows,
    i don´t know if there is some equivalent in JSP), a very usefull example
    of login
    page is used with Avitek Portal example (I supose you talk about Portal
    8.1).
    "Kunal Mittal" <[email protected]> wrote:
    After the user logs out, and if they click the back button again they
    should see
    some error message, or be redirected to the error page. I have put the
    following
    in the head.jsp but it does not work.
    I tried using both the blocks (one at a time) in head.jsp - but neither
    worked.
    <%
    response.setHeader("Expires", "Mon, 26 Jul 1990 05:00:00 GMT");
    response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control","no-store");
    %>
    OR
    <meta http-equiv="expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">

Maybe you are looking for