Programming the BACK button from a list

Hi,
I have a program that utilizes a selection-screen, a customized screen, and a list (leave to list-processing) respectively. What i want to know is how to enable the back buttom from the list to immediately go to the selection-screen instead of the customized screen (which comes before the list).
at user-command doesn't seem to work... any advice is welcome. Thanks!

hi winnie,
this documentation may solve your problem..
<b>To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:</b>
<b>LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].</b>
You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point.
If detail lists are defined in the corresponding event blocks of the ABAP program (AT LINE-SELECTION, AT USER-COMMAND), user actions on the basic list will lead to the detail list, and further interaction will lead to further list levels.
You can leave list processing in two ways:
By leaving the basic list using the Back, Exit, or Cancel function.
By using the following statement during list processing:
<b>LEAVE LIST-PROCESSING.</b>
In both cases, control returns from the list processor to the dialog processor. Each time this occurs, the entire list system is initialized. Any subsequent list output statements in PBO and PAI modules apply to an empty basic list.
By default, the dialog processor returns to the PBO processing of the screen from which the list processor was called. The optional addition AND RETURN TO SCREEN allows you to specify a different screen in the current screen sequence at whose PBO event you want to resume processing. In particular, the statement
<b>LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.</b>
can be used to end the current screen sequence and return to the point from which it had originally been called.
<b>
Recommended Procedure</b>
If you want to display lists during screen processing, you should create a separate screen for each list system that you want to call. This screen encapsulates the creation and display of the basic list. It can then be called from anywhere in the program using CALL SCREEN.
The actual screen mask of this screen can remain empty. You do not need any PAI modules, and only a single PBO module. In the PBO module, you define the basic list of the list system and call the list processor.
First, use the
<b>LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.</b>
statement to call the list display at the end of the screen, and to ensure that, after leaving the list, you return to the point from which the screen was called.
Next, set a GUI status for the list; for example, the default list status SPACE or a list status of your own.
Use one of the following statements to ensure that the empty screen is not displayed:
<b>SUPPRESS DIALOG.</b>
or
LEAVE SCREEN. Instead, the list is displayed immediately at the end of the screen.
Now define the entire basic list, and place any necessary data in the HIDE area.
If you want to process user actions on the list, you need to define the relevant event blocks in your ABAP program. If you want to call more than one independent list system in the program, you must ensure that you can tell them apart in the list event processing. You cannot do this using SY-DYNNR, since the container screen for a list is always number 120. Instead, you could assign a different GUI status to each list, and distinguish between the list systems using the value of SY-PFKEY, or you could place some unique information in the HIDE area of each list system.
Example
REPORT demo_leave_to_list_processing .
TABLES sdyn_conn.
DATA: wa_spfli TYPE spfli,
      flightdate TYPE sflight-fldate.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.
MODULE user_command_0100.
  CALL SCREEN 500.
  SET SCREEN 100.
ENDMODULE.
MODULE call_list_500 OUTPUT.
  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  SET PF-STATUS space.
  SUPPRESS DIALOG.
  SELECT  carrid connid cityfrom cityto
    FROM  spfli
    INTO  CORRESPONDING FIELDS OF wa_spfli
    WHERE carrid = sdyn_conn-carrid.
    WRITE: / wa_spfli-carrid, wa_spfli-connid,
             wa_spfli-cityfrom, wa_spfli-cityto.
    HIDE: wa_spfli-carrid, wa_spfli-connid.
  ENDSELECT.
  CLEAR: wa_spfli-carrid.
ENDMODULE.
TOP-OF-PAGE.
  WRITE text-001 COLOR COL_HEADING.
  ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
  WRITE sy-lisel COLOR COL_HEADING.
  ULINE.
AT LINE-SELECTION.
  CHECK not wa_spfli-carrid is initial.
  SELECT  fldate
    FROM  sflight
    INTO  flightdate
    WHERE carrid = wa_spfli-carrid AND
          connid = wa_spfli-connid.
     WRITE / flightdate.
  ENDSELECT.
  CLEAR: wa_spfli-carrid.
This example switches to list processing during the screen processing for screen 100. Screen 100 has a single input field - the component CARRID from the ABAP Dictionary structure SDYN_CONN.
Do contact me if you have any problem
and do reward the points if you think this documentation is of your help to you.
Thanks and regards,
kunal.

Similar Messages

  • Insert forms and the back button

    Hi,
    I have a page that is transparent to the user and does a
    standard DW insert
    using ASP. It uses <body
    onLoad="document.form1.submit()"> to do this.
    The user clicks on a link, this page does the insert, and
    then they are
    redirected to a results page.
    The problem is if they click on the back button from the
    results page the
    insert happens again and they end up on the results page
    again.
    If they click on the back button I want them to go back to
    the first page
    with the link (and obviously not do the insert).
    How can I do this?
    tia
    -Joe

    Jo,
    How about putting in a <<back link yourself for the
    user to click that takes them to the page you want.
    Paul

  • I do not get the back button icon on my browser. It's not just 9.01 it's all of the browser except for the first. Please Advise

    If I go to a web page and I want to go back to the previous page there is no icon to do it with. It use to be in the top left corner of the browser. The way I do it now is click on the left mouse button and there's a back there. Please advise

    Right-click an empty section of the Tab Strip and select '''Customize''' and the Customize Toolbar window opens then '''find and drag the BACK button''' from the Customize Toolbar window''' into the toolbar where you want it to appear''' then click '''Done'''.
    read for more info :
    [https://support.mozilla.com/en-US/kb/Back%20and%20forward%20or%20other%20toolbar%20items%20are%20missing Back and forward or other toolbar items are missing]
    [https://support.mozilla.com/en-US/kb/Back%20and%20forward%20or%20other%20toolbar%20items%20are%20missing#w_restoring-the-default-toolbar-set Restoring the default toolbar set]
    [https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars?redirectlocale=en-US&redirectslug=How+to+customize+the+toolbar How do I customize the toolbars?]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Why does my form data gets cleared out when clicking on the back button.

    Can someone explain why does my form selections get cleared out when clicking on the back button.
    I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
    1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
    I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
    If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
    THANKS.

    the browser doesn't have to remember what you submitted and fill that back in.
    you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there.

  • How to remove a Sort button from ALV List

    Hi Experts,
    How to remove sort button from ALV List.
    I have requirement where I need to remove the sort button from ALV list.
    Kindly give me useful clues.
    Higher points will be awarded for the useful inputs.
    Thanks in Advance,
    Dharani

    Hi dharani,
    1. UP and Down Sort Button will get removed.
    2. Important code is marked in bold
    3. Just copy paste.
    4.
    report abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvfcwa TYPE slis_fieldcat_alv.
    <b>data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.</b>
    data : begin of itab occurs 0.
            include structure usr02.
    data : end of itab.
    START-OF-SELECTION.
      select * from usr02
      into table itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_internal_tabname     = 'ITAB'
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = alvfc
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    <b>*----
    IMPORTANT
    fcodes to remove
    Up and Down Sort Button
    exclwa-fcode = '&OUP'.
    append exclwa to excl.
    exclwa-fcode = '&ODN'.
    append exclwa to excl.</b>
    Display
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          it_fieldcat   = alvfc
          <b>IT_EXCLUDING     = excl</b>
        TABLES
          t_outtab      = itab
        EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
    regards,
    amit m.

  • The Back button only allows me to go back one page at a time instead of selecting a previous page from a drop-down list. This is a real problem: anyone have any ideas?

    In the previous version of Firefox, I could go back to a previous webpage by clicking on a part of the Back button which brought up a list of recently visited sites, and by clicking one of these, could jump straight back to that page. This facility does not seem to be available in the latest Firefox, and the Back button only goes back one page at a time. This is really inconvenient, as,
    it now takes longer to get to an earlier page
    there is no visibility of previous pages visited
    any actions carried out on webpages are undone when going back through them - this does not happen when jumping back several pages in one go.
    This is a real problem as I used to the old system constantly, and cannot continue to use Firefox 4.0 unless there is a way around it.

    For me, I have the same question, this is a poorly done upgrade and I want to go back to 3.6

  • Can someone please help me re-install my Creative Design 5.5 on my Mac?  My MacBook Pro recently crashed and had to have the hard drive replaced.  The back up from Time Machine is not reinstalling the program.  Since I have the download paid, and codes, I

    Can someone please help me re-install my Creative Design 5.5 on my Mac?  My MacBook Pro recently crashed and had to have the hard drive replaced.  The back up from Time Machine is not reinstalling the program.  Since I have the download paid, and codes, I need direction on how to reinstall -- HELP?

    Hi bodegakc,
    If you have the serial number then please use the below mentioned link to download the product you are looking for .
    CS5.5
    Also before installing Please go to Applications-->Utilities--> Adobe installers and if there is any uninstaller for CS5.5 , you can remove it and do a fresh install.
    You can also use creative cloud cleaner tool before installing.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Thanks
    Nikhil Gupta

  • First time going to a site where I do not have access and clicking the back button I'm returned to the root site instead of the site I started from

    Greetings,
    I have SharePoint 2013 enterprise using ADFS for authentication.  I have an issue where the first time going to a site where you do not have access and clicking the back button you're returned to the root site instead of the site you
    started from.
    ie:
    1) at site http://www.sharepoint.com/sites/finance/home.aspx
    2) browse to
    http://www.sharepoint.com/sites/finance/private/home.aspx
    3) receive a message: you do not have access to this site  ((oops went to the wrong location - I'll hit the back button))
    4) click the browser back button
    5) get returned to http://www.sharepoint.com/pages/home.aspx
    This only happens the first time browsing to a site that I do not have rights to, after this I can browse to the same site and hit the browser back  button and return to the correct site, or any other site that I do not have access to.
    Any ideas as to why this happens?  Ideas of where to start looking?
    Thanks

    Hi Robert,
    From your description, when you receive access denied message and hit back button in browser, it redirects you to the root site but not previous site. However, this just happens at the first time.
    You may try to use some tool or check log which can tell us how does it handle the request when you hit the button. And compare the issue time and non-issue time.
    I'd suggest you use Netmon tool:
    http://blogs.msdn.com/b/carloshm/archive/2012/11/08/sharepoint-2013-network-monitor-parsers.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Some of the time the back button is greyed out when i have clicked on a new link. It's not a new window or tab, and the page I came from is not even in my history!

    At first I thought I had unknowingly gone to a new tab or window, but that's not it. I haven't ruled out that I have completely lost my mind, but I'm really hoping that's not the problem, although with win 7 that seems more and more likely all the time. It seems to happen at random. I tired holding down or right clicking the back button but there is nothing. The fact that the page I came from is gone from the history seems really strange.
    Sorry for the duplicate post, see this topic: https://support.mozilla.com/en-US/questions/807937

    This issue can be caused by the McAfee SiteAdvisor extension.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Since I've updated to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.

    Since I've updated from iOS 5 to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.
    This is working fine for albums but are broken for audio books.
    The back button refers always to the first chapter of the audio book (very annoying if you are in the middle of an audio book) and the nex button goes one level higher back to the selection of the audio book itself.
    In iOS 5.0 it was still possible to navigate throught the audio book chapters using these buttons.
    This still happens in iOS 6.1.
    Is this a known bug?
    Does any solution exist?
    Thx,
    Oliver

    To gdgmacguy your a f****** idiot for one I'm having the same problem as pennymar. And you tell me to quit whinning. You got more problems then the iOS 6 you did not answer my question nor the other 13 or whatever you replied to within a 30 min time frame. You must got nothing better to do then to harass people and to pretend you know something about apple products. Which you don't from what I've read the other advices you should have gave to other people. But you didn't you replied a question back to the people asking a question. So if your not gonna use these community forums the right way don't use them at all.

  • Why do google search results reset to match the search bar terms when i use the back button?

    Since the update to FF 23, the list of Google search results clears and the on-page search box is reset to match the address bar search box when I hit the back button to re-view the results list after checking a result.
    To see this issue for yourself, set your search provider to Google and make sure Instant is on. Type a search term into the search bar and press enter. A google page appears with your results list. Now, change your search terms or conduct a new search directly from the google page (without using the FF search bar). Click on the first result in the search list, then click the back button to return to the search results so you can check a differest result. As FF goes back to the google page, it will reset the on-page search box to match the FF search bar (although you were no longer on this search) and all search results will disappear, replaced by the message "Press enter to search". Pressing enter reconducts your old search, not the one you were on.
    This is incredibly maddening since searching for something requires frequent use of the back button to check through the list of search results, and then frequently trying the search again with slightly different terms. Although it sounds like a Google issue, it did not occur on the old firefox and has me wanting to revert. I tried to revert to the old search function via the "keyword search" addon, but this did not fix my issue. Is there a way to force FF to go back to the actual google search page I was just on instead of conducting a new google search from the FF search box when I hit the back button?

    In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
    The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
    Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
    You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
    * Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/

  • The back button doesn't work on some pages

    I go to bookmarks and navigate to a page, when I use a link on that page to go to another part the back button on the tool bar does not become active to I can go back. This seems to be happening on all web sites.

    There used to be a very useful down arrow button next to the back button which brought up recent history, but it was removed in Firefox version 4. For the life of me, I don't understand why. If you have an older version, just click the down arrow button and select the page you were at before you loaded the offending page.
    If you have Firefox v 4 or 5, the best workaround I know of is to do an <alt-s> from the keyboard, which will bring down a history list from which you can select the page you were at before you got trapped. Alternatively, you can bring up the old style menu bar by pressing either Alt or F10, and then drop down the history menu by clicking on it with your mouse. If you want to make that menu bar permanent, you can select View -> Toolbars -> Menu Bar.

  • Branching and Using the 'Back' button

    I have created a branching program that is essentially a
    "choose-your-own-adventure." There is no quiz, b/c there is no
    right or wrong.
    However, when you begin you have three choices. The user
    selects one of those choices and goes to Slide A, Slide B or Slide
    C depending on their choice. There, they have more choices to make.
    From Slide A, their choices would take them to Slide D, Slide E or
    Slide F. If they originally chose Slide B, the next set of choices
    would also be Slide D, as well as Slide G or Slide H.
    (And so on and so forth)
    It has been recommended to me that I create a way for users
    to simply hit the playbar's "back" button if a user is on Slide D,
    and wants to go back to Slide A. However, under my current set-up,
    I have two problems: The first: if they simply hit the back button
    on the slidebar from Slide D, they will go to Slide C--a
    acompletely wrong choice. Secondly, if I put a "Jump to" button on
    the page, I actually have to put 2 on (one that will bring them to
    Slide A and another that will bring them to Slide B) since you can
    get to Slide D from both A and B.
    This is a simplified version of my branching, and creating a
    button for each page that a slide could go back to isn't feasible
    and would probably be more confusing to the user than anything.
    Please tell me if this doesn't make sense, or if there is a
    way that I can do this.
    To see the project and see what I'm talking about, you can go
    Here,
    and then choose the "Is My TV Ready?" option.
    Thank you,
    Rob

    Hi Rob
    Had a look at your program and think it is a great use of
    Captivate.
    Regarding the "back" functionality, I would recommend to
    custom build a button on each slide where you wish to go back. The
    reason is that the back button on the play bar will always go back
    1 slide in the actual slide sequence and does not take branching
    into account i.e. it is a pure linear back 1 button. To make life
    easier, I would suggest giving each of your important slides a
    unique label, which would then make it a lot easier to:
    Specify where the individual "back" buttons would jump to
    View the actual branching in teh Branching view of Captivate.
    Good luck mate
    Andrew

  • Need to click the back button twice

    Hi all
    I'm having problems with a program. I have ALV grid and double clicking on a line calls a function that displays a detailed entry screen (dynpro).
    In that screen the user can use the data to call a function module to create BP from the given data.
    I now want to enable my users to go back to the ALV grid by clicking the Back button and when the function code is 'BACK' I do:
    leave to screen 0.
    But the user must press the back button twice before he can go back. If the user however just enters the detailed screen and presses the back button it works fine.
    Regards,
    Gunnar

    Hello,
    I had a similar problems few days ago. If the user must click back button twice in some cases it is because 2 screens are being created.
    What happens to me is that I had a Modul-pool, in this program I had 2 dynpros, one for input and the other to call in it the function-module REUSE_ALV_GRID_DISPLAY in order to show an ALV. When the ALV was shown the user should press back button twice in order to return to the first screen. This behaviour is because the ALV is shown in its own screen, so finally I had 3 screens instead of 2.
    What I did to solve the problem was to delete the dynpro which only purpose was to show the ALV. At last I had a dynpro for the input of the program, in the PAI of this dynpro I invoke REUSE_ALV_GRID_DISPLAY which shows the ALV in its own screen.
    I hope it will hellp you.

  • Firefox Tabs and the Back Button

    I open a page (such as a Google search) in the first tab. I select any entry. When I press the BACK button, the browser (correctly) returns to the Google selection list. If I do the same in any other tab (2 thru nn), the Back button does not return me to the list. Does anyone else experience this? Bug? Feature? I've checked my add-ons, to no avail. This happens in both 3.6 and 4.0, and is not solely related to Google. (And this works OK in IE8.)

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    Do you still have the Bookmarks Toolbar visible?
    * [[Restore the default Smart Bookmarks Folders]]
    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    If the menu bar is hidden then press F10 or hold down the Alt key, that should make the "Menu Bar" appear
    Make sure that you have the Bookmarks Toolbar and the Navigation Toolbar visible: "View > Toolbars"
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" or other items that are missing in the toolbar palette or on a toolbar then click the "Restore Default Set" button
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

Maybe you are looking for

  • Where can I get an original x58 Pro-E IOH chipset heatsink assy?

    Recently built an i7 gaming rig and like everyone else had high nb temps which I'm not very keen on. I had a Thermalright HR-05 from another build (took it out of my old system and replaced it with the original HS and sold that PC leaving me with it)

  • How to make a cycle of arrows

    Hi I'm trying to draw a diagram in photoshop and need to make a cycle of arrows (like these: http://www.shutterstock.com/pic-13403155/stock-vector-vector-arrows-around-circles.html) Is there a way to accomplish this? Thanks in advance!

  • New iMacs and Final Cut Pro

    I apologize in advance but since the Search function is disabled, I am unable to search for answers on this topic. How well does FCP run on one of the new iMacs? I am not looking to use Motion but just FCP and Compressor. I am currently running FC St

  • IDM connected with GRC

    Hi All, Would like to check a question with you. As I know SAP IDM can be connected with SAP GRC for risk analysis during user request. Does anyone know if there are any other IDM solutions (other than SAP IDM) which can be connected with SAP GRC and

  • How to convert HD to standard DV

    Hi, I am still shooting and editing standard definition mini DV tapes on an older Mac. I do have a digital camera that takes HD video. I have taken some videos with my digital camera that I would like to convert so that I can edit them into my Standa