Problem activating the back and exit button with the ALV using OO

I have wrote my first alv using Methods.My problem is that i can't activete the BACK and  EXIT button in the standart toolbar .
Look my code please .....
Without PF-STATUS can i do it ?
*& Report  YDP_DOUBLE_ALV
REPORT  YDP_DOUBLE_ALV.
TABLES : YQM_CERT , MARA , YOUTPUT_APPL.
DATA : ALV_GRID TYPE REF TO CL_GUI_ALV_GRID,
       CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
       FIELD_CAT TYPE LVC_T_FCAT,
       LAYOUT TYPE LVC_S_LAYO.
DATA : ALV_GRID2 TYPE REF TO CL_GUI_ALV_GRID,
       CUSTOM_CONTAINER2 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
*       FIELD_CAT TYPE LVC_T_FCAT,
*       LAYOUT TYPE LVC_S_LAYO.
DATA: DYNNR TYPE SY-DYNNR,
      REPID TYPE SY-REPID.
DATA: OK_CODE TYPE SY-UCOMM.
DATA : BEGIN OF ITAB OCCURS 0.
        INCLUDE STRUCTURE YQM_CERT.
DATA   END OF ITAB.
DATA : BEGIN OF ITAB1 OCCURS 0.
        INCLUDE STRUCTURE YOUTPUT_APPL.
DATA   END OF ITAB1.
*  MODULE DISPLAY_ALV OUTPUT
MODULE DISPLAY_ALV OUTPUT.
  SET PF-STATUS 'ZST9'.
  PERFORM DISPLAY_ALV.
ENDMODULE.                    "DISPLAY_ALV OUTPUT
                   "DISPLAY_ALV OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
  CASE OK_CODE.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
START-OF-SELECTION.
  LAYOUT-ZEBRA = 'X'.
  LAYOUT-GRID_TITLE = 'YQM_CERT'.
  LAYOUT-CWIDTH_OPT = 'X'.
  LAYOUT-SMALLTITLE = 'X'.
  SELECT  * FROM  YQM_CERT INTO ITAB.
    APPEND ITAB.
  ENDSELECT.
  SELECT  * FROM  YOUTPUT_APPL INTO ITAB1.
    APPEND ITAB1.
  ENDSELECT.
  CALL SCREEN 100.
END-OF-SELECTION.
*&      Form  DISPLAY_ALV
*       text
FORM DISPLAY_ALV.
  IF ALV_GRID IS INITIAL.
    CREATE OBJECT CUSTOM_CONTAINER
      EXPORTING
*      PARENT                      =
        CONTAINER_NAME              = 'CC_ALV'
*       style                        =
*      LIFETIME                    = lifetime_default
      REPID                       = REPID
      DYNNR                       = DYNNR
*      NO_AUTODEF_PROGID_DYNNR     =
*    EXCEPTIONS
*      CNTL_ERROR                  = 1
*      CNTL_SYSTEM_ERROR           = 2
*      CREATE_ERROR                = 3
*      LIFETIME_ERROR              = 4
*      LIFETIME_DYNPRO_DYNPRO_LINK = 5
*      others                      = 6
    IF SY-SUBRC <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT ALV_GRID
      EXPORTING
*    I_SHELLSTYLE      = 0
*    I_LIFETIME        =
        I_PARENT          = CUSTOM_CONTAINER
*    I_APPL_EVENTS     = space
*    I_PARENTDBG       =
*    I_APPLOGPARENT    =
*    I_GRAPHICSPARENT  =
*    I_NAME            =
*    I_FCAT_COMPLETE   = SPACE
*  EXCEPTIONS
*    ERROR_CNTL_CREATE = 1
*    ERROR_CNTL_INIT   = 2
*    ERROR_CNTL_LINK   = 3
*    ERROR_DP_CREATE   = 4
*    others            = 5
    IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
*      I_BUFFER_ACTIVE               =
*      I_BYPASSING_BUFFER            =
*      I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              = 'YQM_CERT'
*      IS_VARIANT                    =
*      I_SAVE                        =
*      I_DEFAULT                     = 'X'
       IS_LAYOUT                     = LAYOUT
*      IS_PRINT                      =
*      IT_SPECIAL_GROUPS             =
*      IT_TOOLBAR_EXCLUDING          =
*      IT_HYPERLINK                  =
*      IT_ALV_GRAPHICS               =
*      IT_EXCEPT_QINFO               =
*      IR_SALV_ADAPTER               =
      CHANGING
        IT_OUTTAB                     = ITAB[]
*      IT_FIELDCATALOG               =
*      IT_SORT                       =
*      IT_FILTER                     =
*    EXCEPTIONS
*      INVALID_PARAMETER_COMBINATION = 1
*      PROGRAM_ERROR                 = 2
*      TOO_MANY_LINES                = 3
*      others                        = 4
    IF SY-SUBRC <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ELSE.
    CALL METHOD ALV_GRID->REFRESH_TABLE_DISPLAY
*       EXPORTING
*         IS_STABLE      =
*         I_SOFT_REFRESH =
*       EXCEPTIONS
*         FINISHED       = 1
*         others         = 2
    IF SY-SUBRC <> 0.
*      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ENDIF.
ENDFORM.                    "DISPLAY_ALV

Hi
U need  to active them in your status ZST9.
Max

Similar Messages

  • With version 5 of Firefox, if I open more than 1 session, most of the time I cannot see anything in the navigation bar and my back and forward buttons do not work.

    I open 1 session of Firefox 5.0.1 and everything seems to work fine. Then I open a second session of Firefox and most of the time the navigation bar does not show the page that I am on and the back and forward buttons do not work. When this happens, the first session always remains working. I am an internet marketer so I have at least 2 or 3 sessions going at any given time.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Problem with Back and Next Buttons: a solution?

    Hello,
    It is well known that including the Back and/or Next buttons in Captivate quiz questions presents real problems. I have come up with what I think to be a solution. It should allow one to include both Back and Next buttons, if one wants to do this. It involves doing the following:
    With Question 1, do not include a Back button. (This is so that the quiz-taker cannot get out of the quiz scope in the forward direction.)
    Create this advanced action: If cpQuizInfoTotalUnansweredQuestions = 0, then Go To The Next Slide (i.e. the results slide); Else Continue.
    Insert a slide after the final question (and before the results slide). On this slide, include the following:
    A message to this effect: ‘You have not answered all of the questions. Please go back and complete all of them.’
    A button labeled ‘Return to Questions’ (on success: Jump to slide with Question 1). But include no other buttons. That is, if the quiz-takers lands up on this slide, he or she has only this option.
    On Enter (i.e. on entering the slide being described here), Execute Advanced Action =  the advanced action described in Item 2 above.
    Now for something odd. Before the slide described in Item 3, insert a slide with a Text Caption with variable $$cpQuizInfoTotalUnansweredQuestions$$. Keep the slide as brief as possible (something like 0.5 sec.) and make the text of the Text Caption invisible. And why all this? Because I found that, without it, problems arose quite regularly. If one or more questions were not answered, the quiz-taker would come, as expected, to the slide described in Item 3 above. The quiz-taker would then go back to complete the unanswered questions. But then—sometimes—the Item 3 slide would still appear, even though all the questions were answered! The quiz-taker would return once again to the questions (since this is the only option available), only to find that now none of the questions were answered! And at this point, there was no escape: the Item 3 slide would always appear no matter what one did. Why should inserting the additional slide described in the present item solve the problem? I don’t know. All I can say is that (1) without it, the problem arises often (though not always), and (2) with it, the problem hasn’t occurred yet, even though I’ve done lots of testing.
    Final note. It will be clear that this solution is meant to be used together with the option Allow Backward Movement. Will the solution work with Branch Aware? I don’t know yet. Will it work with Question Pools? Again, I don’t know yet. I’ve only done a bit of testing in both cases. The results thus far indicate that at least one of these options presents real problems. Both might.
    I’m still testing this solution (or what I hope is a solution). If anyone else wants to try it, I’d be interested in hearing how it goes.
    Best regards,
    Marvin DuBois

    Dear Lilybiri,
    Thank you for your response.
    1. 'I don't get it why you don't use the Submit All option?'
    Submit All is fine in some cases. But it limits the options: the quiz-taker does not get immediate (question-by-question) feedback. So where immediate feedback is wanted, the Submit All option presents problems.
    2. "Why do you need a Back button . . . ?'
    a. The Back button is needed during Review. Otherwise, the quiz-taker can only review in one direction.
    b. In some quizzes, the quiz-taker should be free to go back, whether to check earlier question slides (since the questions and/or responses can be relevant for the current question) or to re-read/re-hear information slides inserted between question slides.
    But the more general issue is this. The Cp Back and Next buttons provide us with possibilities, with further options. Workarounds are available, such as not allowing backward movement and placing a Clear button over Next. But these workarounds limit the possiblities, i.e. the possibilities that are there—i.e. that Adobe puts there. It's not that we always need these possibliities. But neither should we be hindered from using them if we so choose—and especially when we would be hindered simply because Cp doesn't work as well as it should.
    Kind regards,
    Marvin

  • Vista Ultimate, Firefox 4.01 just installed. The back and forward buttons do not work with this new installation. Help please.

    O?S is Vista Ultimate 32 bit fully updated. I have just installed Firefox 4.01. I have lost use of back and forward buttons - they are greyed out. Is there a solution please?

    It is possible to have earlier data in a tab if the latest tab had target="_top" that means the back key will not work, but if your right-click on the back/forward you see a context menu. As far as I know the only difference between 3.6 and 4.0 ws that the drop-down arrow was dropped but like before you can still right-click.
    There are some extensions that mess with the Back/Forward buttons.
    There is a difference between gray and '''black''' on the buttons, '''black''' means there is history in that direction.
    You can make Firefox 4.0.1 and Firefox 5.0 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • Firefox version: 3.6.8 Operating system: Windows XP - back and forward buttons disappers. REsetting customize toolbar to default doen't solve the problem

    I've Firefox version: 3.6.8 , OS: Windows XP - The back and forward buttons disappears. Resetting customize toolbar to default doesn't solve the problem.
    == This happened ==
    Every time Firefox opened
    == Firefox was updated to ver 3.6.8

    In Firefox 3.6 and later on Windows you can hide the menu bar via "View > Toolbars" or via the right click context menu on a toolbar.
    Press F10 or press and hold the Alt key down to bring up the menu bar temporarily.
    Go to "View > Toolbars" or right-click the menu bar or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also [[Menu bar is missing]] and http://kb.mozillazine.org/Toolbar_customization

  • In Editable ALV the BACK/CANCEL/EXIT buttons are not working?

    Hello,
    I wrote a editable FM based ALV, working fine that when user changes the data and press SAVE button, values are transfering into prog. But, i need to put a validation that, if user changes the values and press BACK/CANCEL/EXIT button, i need to popup the message that "Do you want to save changes", my PF-STATUS is good(because, SAVE is working).
    But, its not working that when user done changes and press BACK button (forgot to press SAVE button), system taking me to selection screen/screen 0!! I my code is as below,
    FORM pick USING v_ucomm     TYPE syucomm
                                         it_selfield TYPE slis_selfield.
      DATA: v_answer TYPE char1.
      READ TABLE it_z_tbl  INDEX it_selfield-tabindex
       INTO w_z_tbl.
      CASE v_ucomm.
        WHEN '&IC1'.
            " working fine this functionality
          ELSE.
            MESSAGE i000 WITH 'Double click on key field'.
          ENDIF.
        WHEN 'SAVE'.
            " working fine this functionality
        WHEN BACK' " OR 'CANCEL' OR 'EXIT'.
          PERFORM popup_for_user_decision CHANGING v_answer.
          CHECK v_answer = '1'.
          PERFORM now_update.
      ENDCASE.
    ENDFORM.     
    when i put the break point on the first line of this piece of code, its not stopping on pressing BACK/CANCEL/EXIT buttons!! (its stoppig for SAVE press or double click)
    Its stopping at this point,
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    EXPORTING
    i_callback_user_command  = 'PICK'
    IMPORTING
    EXCEPTIONS
    IF sy-subrc <> 0 =================> its stopping at this point!
    ENDIF.           
    Pls. let me know why system is not recognising that i hv a PICK form (SAVE and Double clicks are working fine)?
    Thank you

    Hi,
    Actually BACK is standard user command so it is not stopping and going to selection screen.
    Give some other use command like 'BCK' and try....

  • I have to buttons that I cant remove. The button is on the left side of tabs and on the right side of the tabs. These arent back and forward buttons. When I go to customise they arent shown. How to remove it?

    I have two buttons that I cant remove. The button < is located on the left of the tabs and > is located on the right of the tabs. These aren't back and forward buttons. How can I remove them?
    [https://picasaweb.google.com/dookeybre/DropBox?authkey=Gv1sRgCLyTs7iUlqXE2QE#5594570123175636338 photo of the problem]

    Those buttons are used to scroll through the tabs if you have too many to display. If all of the tabs that you have open are visible, the buttons should not be displayed. If they are displayed all of the time there may be a problem with the theme that you are using.

  • My back and forward buttons do not work also the refreash button does not work, I have reloaded the latest version of fire fox and that did not help. HELP please.

    My back and forward buttons do not work also the refresh button does not work, I have reloaded the latest version of fire fox and that did not help. All of navigation tool bar worked until I updated Fire Fox, now if I click on a link in yahoo, for instance, I can not get back to my yahoo home page without reloading Fire Fox. HELP please.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • When I start it up it shows two two nested windows on the screen, has a Firefox yellow tab in the corner, does not display the toolbar bookmarks, the back and forth buttons do not work and there is no page refresh. No clue what is going on.

    Every time I open up Firefox it appears to open two nested and linked windows, each with their own minimize, maximize and close buttons but the both work the same. The homepage does not come up, the back and forth buttons do not work. Both the refresh button and F5 do not work. The Bookmark Toolbar does not show up until I disable it in View and then re-enable it and this causes the outer nested window to disappear or close.

    This issue can be caused by an extension or theme that isn't working properly.
    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]]

  • Do think the firefox back and forwoard button should look like what it look like in netscape?

    Netscape is the ancestor of firefox.i think it would be greater if firefox would use its ancestors back and forward button to show respect.if you agree with me click i have this problem too button and well show firefox what we want.

    The Firefox button displays by default only in Windows Vista and Windows 7. You '''''can''''' have it display in Windows XP
    '''Menu Bar'''<br />
    *right-click empty space at the end of the Tab Bar, click "Menu Bar" to place a checkmark
    *Menu Bar checked = Menu Bar on; Firefox button off
    *Menu Bar un-checked = Menu Bar off; Firefox button on
    *Other methods of doing the same:
    **click Firefox button > Options, click Menu Bar
    **Quick toggle Menu Bar on/off: ALT+V+T+M
    To have the Menu Bar '''''temporarily''''' display when the Firefox button is on, press the ALT key or the F10 key to make the Menu Bar appear and use your mouse to make selections from the temporarily displayed Menu Bar. Why would you want to do this? The selections available are different.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How do I position the back and next buttons in a full screen lightbox

    I'm working on a portfolio website, and it has five sections (each section is 1440px wide).  I am trying to put in a full screen lightbox for some images.  When I adjust the settings for the lightbox, I am just keeping the Back and Next buttons.  However, when I put the buttons in one place, they either appear in a different position in the browser, or just don't appear at all.  Maybe there's a technique I am missing with regards to putting the buttons in a place most computer browsers will be able to find it.  (Pictures of the problem are below, and they use the sample pictures for the slideshow, but it doesn't make a difference what pictures are in there. 
    Muse document.  The arrows are pink and can be seen on the left and right sides.
    Web Browser Preview.  No arrows, even though they're in the Muse document.

    I see that you are using a long page with slideshow in lower section of the page. Navigation arrows are placed around 3200 , so when you will scroll the page down you can view the next and previous buttons.
    Try to change navigation arrows and then check.
    Thanks,
    Sanjit

  • How do i make the back and forward buttons function? they are visible but not functional.

    I have firefox 8.0.1 and my back and forward button are not working. They are visible but not functioning. I have tried starting in safemode and without any add-ons and the back and forward buttons are still not functioning. What do I need to do to make the buttons functional?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • In firefox 4.0.1 the back and forward buttons are "dead".

    In firefox 4.0.1 the back and forward buttons are "dead". My system runs WindowsXP. I tried many times: safe-mode, upgrade from FirefoxF3.6., reinstallation in a new folder, creating new profile...........BUT THE PROBLEM IS STILL THERE.!!! What am I suppose to do? NoteQ in my another computer at home i have WinXP and the Firefox4.0.1 works perfectly!!!! Am I crazy???

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • The back and forward buttons on Logitech mouse don't work

    My logitech performance MX back and forward buttons don't work. I tried in safe mode and they still don't work. I tried creating a custom shortcut in logitech setpoint and that didn't work either. I tried using the native mouse driver and not logitech. No luck.
    I really like this functionality. Is there a way to enable these buttons?

    Hi mike,
    i'm not sure if this will help but how about this add-on called "Vimperator". It is easy to use and works like vim. (Try this as an alternate till we figure out the problem) :)
    Hope that helped.

  • The back and forward button stay disabled after upgrading to Firefox 4

    I upgraded to Firefox 4 and the back and forward buttons are never enabled. I see them, but they are not working.
    History works, recently closed pages work, bookmarks work.
    I disabled all addons, uninstalled FF4, deleted \Program Files\Firefox, re-installed, kept extensions disabled, removed all backups from bookmarkbackups, deleted places.sqlite and still nothing.
    What else can I do?

    Norton has a fix out. See: http://community.norton.com/t5/Norton-Internet-Security-Norton/Norton-Toolbar-5-5-incompatible-with-Firefox-4-RC1/td-p/411556/page/2

Maybe you are looking for

  • ITunes says there is music on my iPhone but it's not showing up!

    iTunes says it is syncing with my iPhone, and it says there is music on the iPhone. However, on the 'iPod' section of my iPhone, there is nothing there! I have synced multiple times (am also having LOADS of issues with files that iTunes says are corr

  • Using a non-static vector in a generic class with static methods

    I have a little problem with a class (the code is shown underneath). The problem is the Assign method. This method should return a clone (an exact copy) of the set given as an argument. When making a new instance of a GenericSet (with the Initialize

  • WAV File Burned to CD as Audio Plays SLOW

    Hello! I recorded a set of mine (I'm a DJ) using Stanton Final Scratch. The file is a WAV. I copied it to iTunes, then burned it as an audio CD. When I play the CD, it's slow, as in a 45 playing at 33. I can play the file in iTunes, but as soon as I

  • Date() format in Livecycle designer

    Hello All I have a requirement where in I should display the date/time in a seperate field when the user starts typing in a text field. I have the following code in the change event of text field in which user types: datetimefield.rawValue=Date(); da

  • How to play flv files in nokia x6?

    Is there any software to play flv videos and certain mp4 files dont work on my x6. Whats the matter? Whichformats i can play? Nokia x6