Customized Button code not working on selection screen.

Hello Experts,
I have a button on the selection screen next to Execute button on the Application Tool Bar.
I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
But the problem is that the code is not working.When I execute the button,the screen just remains their.
The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
Good points will be rewarded.

Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
REPORT zyou_0001.
TABLES:  sscrfields.
SELECTION-SCREEN PUSHBUTTON 2(10)  pbut1 USER-COMMAND chk.
AT SELECTION-SCREEN OUTPUT.
  pbut1 = 'Test This'.
AT SELECTION-SCREEN.
  IF sscrfields-ucomm = 'CHK'.
    sscrfields-ucomm = 'ONLI'.
  ENDIF.
START-OF-SELECTION.
  DO 10 TIMES.
    WRITE:/ sy-index.
  ENDDO.
Regards,.
Mohammed

Similar Messages

  • 'SET PF-STATUS EXCLUDING fcode' not working in Selection Screen event

    Hi all,
    I am trying to set PF-Status dynamically in Selection Screen based on Radio button.
    For that i have inserted following code under event --> AT SELECTION-SCREEN OUTPUT
    * SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                       USER-COMMAND inc MODIF ID mod,
                p_inc(10) MODIF ID m1,
                s_lbr  RADIOBUTTON GROUP rad,
                p_lbr(10) MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    *  AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      REFRESH fcode.
      IF s_inc IS INITIAL.
        APPEND 'CRTE' TO fcode.
        APPEND 'CHNG' TO fcode.
        APPEND 'DISP' TO fcode.
        APPEND 'PRNI' TO fcode.
        APPEND 'CRTL' TO fcode.
        SET PF-STATUS 'STATUS_IN' EXCLUDING fcode.
      ELSE.
        SET PF-STATUS 'STATUS_IN'.
      ENDIF.
    Though s_inc is initial, i can see all the buttons from Status 'STATUS_IN' after execution of above code. EXCLUDING statement is not taking any effect which we normally get in Module pool program.
    Please tell me what went wrong in above code?

    Problem solved ......Thanks Keshav,
    Giving code correction -->
    * SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                       USER-COMMAND inc MODIF ID mod,
                p_inc(10) MODIF ID m1,
                s_lbr  RADIOBUTTON GROUP rad,
                p_lbr(10) MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    *  AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      REFRESH fcode.
      IF s_inc IS INITIAL.
        APPEND 'CRTI' TO fcode.
        APPEND 'CHGI' TO fcode.
        APPEND 'DISI' TO fcode.
        APPEND 'DELI' TO fcode.
        APPEND 'PRNI' TO fcode.
        APPEND 'CRTL' TO fcode.
        APPEND 'DATA' TO fcode.
      ELSE.
        APPEND 'CHGL' TO fcode.
        APPEND 'DISL' TO fcode.
        APPEND 'PRNL' TO fcode.
      ENDIF.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status        = 'STATUS_IN'
          P_PROGRAM       = sy-repid
        TABLES
          p_exclude       = fcode

  • IPhone top sleep/wake button is not working & Apple Logo screen at startup

    I have the original iphone. I have two problems, both just happened tonight at the same time. For seemingly no reason just my iphone external top sleep/wake button is not working. I tried powering the phone off and back on. I tried resetting my iphone, and restoring it. I made sure my Iphone software is up to date. None of these remedies have fixed the button. The button doesn't look broken, it pushes in and out, it just doesn't work anymore.
    Second problem is, after I power my iphone off and then back on, the Apple logo screen will continue to flash on and off indefinitely. The only way to get my home screen to appear is to connect my iphone to my computer. Then it wants to sync. After syncing it then asks if I want to "power off" or "cancel". Huh, why does is it doing that? To turn my iphone off I am pressing my Home button down until it shuts off, since I can't power off with the top black button. Is that the reason my phone is having the second problem, because I am powering off with the Home button? Could it be my second problem is not a problem?
    My iphone 1 year warranty is over. I can't call Apple Care, there is no apple store near me. I need a solution I can do at home myself. Please help. Even if you think the answer is obvious please suggest it to me. Before tonight nothing was wrong with my iPhone. It all started after I let my 6 and 7 year old nephews play with Google Maps on my phone for like 10 minutes - supervised. I consider myself to be a pretty Apple tech savvy guy, yet I can't figure out if they broke my iphone somehow, nor can I fix these two problems. Please help!

    Jason,
    I'm afraid I have good and bad news. Apple sent me a new original iphone. So that takes care of me but does not take care of the issue for so many people like you. I do not know if you can purchase the Apple Care plan at this time. Look into that. It really is worth it. Apple products require Apple technicians in the rare case the breakdown. Apple did not offer me an explanation of how they'll fix my phone or even saying why they sent me a new one. I synced it with Itunes and all my personalizations and apps are loaded back on it. It's like my old phone only shinyer and probably going to last me longer than the old one.
    I found out Apple Care covers the Iphone for 2 years past it's purchase date. So I would think that you could buy Apple Care even if you had it for like a year. Then it would at least cover you until the 2 year mark, which after that we're on our own(?). Please let me/us know if you were able to buy Apple Care protection and if they fixed your problem. I am impressed they got me a new phone so fast. I still love Apple.

  • ABAP Query Execution via Custom Transaction Code - Not working

    We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
    The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
    We then transported the new transaction code to run the query to production and it was successful.
    However, when we run the transaction is production we get a sys dump stating it can not find the query.
    We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
    I would have thought that the export on the query would have brought in this entry -but obviously not.
    Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
    Please help!
    Thanks.
    Scott

    Hi,
    The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
    For this. Do the below:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
         D_SREPOVARI-REPORTTYPE = AQ
         D_SREPOVARI-EXTDREPORT = Name of the Query
         D_SREPOVARI-REPORT = User Group
    Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
    Regards
    Vijay Hebbal

  • Custom Javascript code not working in Safari

    Hello.
    I'm trying to get some javascript to work properly in Safari. The script works fine in Windows IE for and Firefox on both platforms, but Safari it just doesn't work.
    If you look here:
    http://robsimonsen.com/film.html
    and click on the Tides mp3, you will see that the track loads in an iframe right next to it. No javascript is used in the live version. Unfortunately, for some reason, it doesn't work in any other browser- just Safari. So in trying to figure out how to make it work the same in all browsers, some custom javascript code was created to accomplish the same thing:
    http://robsimonsen.com/film4.html
    but it doesn't work in Safari- just every other browser.
    Can anyone help me figure out what's going on?
    Dual 1Ghz G4 MDD   Mac OS X (10.3.9)  

    document.all is audi 5000. use document.getElementById() instead. this seemed to work:
    document.getElementById('plotz').src ="mp3s/Tides.mp3"
    and changing iframe...name=plotz to ...id=plotz
    ibook g4     OSX.4.x

  • Exit button code not working in FireFox

    Hi,
    I am writing a code on exit button , but it is working in IE
    but not in FireFox---
    code is :
    import flash.external.ExternalInterface;
    ExternalInterface.call("window.close","");
    Also I tried this:
    var urlString:String = "javascript:window.close();";
    var request:URLRequest = new URLRequest(urlString);
    navigateToURL(request, "_self");
    Please tell what to write so that My Exit button works in
    FireFox also.

    have you confirmed that this javascript code ( only
    javascript code in html, no swf) works?
    in some cases the window.close() statement works only for
    popup windows. so make sure of it.

  • Exit button code not working in published captivate file

    Hi,
    I have created a elearning module in captivate 8. I have an exit button at the end of the module. The button has the inbuilt code ''on success - exit''. When I publish this file to swf or AICC format, this exit button doesnot work. Please help!

    have you confirmed that this javascript code ( only
    javascript code in html, no swf) works?
    in some cases the window.close() statement works only for
    popup windows. so make sure of it.

  • Skype button code not working

    This week I had an email from skype saying that the old api code for showing status and calling was going to be retired on 15th May
    so i followed the instructions and the new cose wont work
    I chat messaged the support team, and they were unhelpful - has anyone used the new code and goit it working yet?
    I now have a "contact up" page on my site that is blank
    I'm a skypepro user

    HI 
    I managed to get it working by updating my Skype application and following these instructions
    https://msdn.microsoft.com/en-us/library/office/dn745883.aspx#skypeui

  • TS2771 screen works but buttons are not working and stuck in settings

    i have an ipod touch 4 and the screen is working but the home button and lock button is not working but the screen is and im stuck in settings please help asap i have to go to school

    Try:                                               
    - iOS: Not responding or does not turn on
    When it says place the iPOd in recovery mode
    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    or
    http://joshuabailey1997.wordpress.com/2010/09/02/recboot-v1-3/
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    RecBoot may have problems on 64X windows, then try:
    Tenorshare ReiBoot – Enter & Exit iPhone, iPad, iPod Recovery Mode with a Single Click
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Installs blootware on PC too
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Select all button is not working in vl01n

    Dear All,
    We are facing a problem at the time of creating delivery through vl01n. At the time of selecting all line items of delivery on item overview screen, we are unable to select all line items. Due to this we have to delete each line item batches separately & to redetermine the batches or we can say select button is not working on item overview screen of vl01n. Also when we redetermine the batch split & return back to item overview screen, select all button works for line items perfectly.
    thanks & regards
    Deven Sharma

    Hi,
    In the user command write the code as per the sample given below:
    FORM select_all .
      CLEAR v_lisel.
      DO.
        READ LINE sy-index FIELD VALUE v_chk.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        READ LINE sy-index FIELD VALUE sy-lisel INTO v_lisel.
        IF v_lisel+2(1) = ' ' AND sy-index GT 5.
          v_lisel+2(1) = 'X'.
          MODIFY LINE sy-index FIELD VALUE sy-lisel FROM v_lisel.
        ENDIF.
      ENDDO.
    ENDFORM.                    " select_all
    reward if useful
    regards,
    ANJI

  • Select button will not work

    My 2gb nano's select button will suddenly not work. The rest of the clickwheel and buttons work find, but not the center select button.
    I restored it to original settings. Then after it restarts, you have to select a language. The select button would still not work, but then I slid the "hold" button back and forth and the select button worked to allow me to chose a language. But at the next screen of options (Music/Photos/Extras, etc.) the select button will again not work. Sliding the hold button back and forth doesn't work. I cannot do a menu+select reset because I can't get the select button to respond.
    I have made sure that I have the most updated softward for the nano.
    Any suggestions?

    My select button has not worked for a loong time.. It will occasionally work if I press for long enough or hard enough.. but not very often. This seems to be a common enough problem so there should be a way to fix it..I hope..

  • My G4 powerbook starts up but with a black screen. The reset button does not work. Does anyone know the keys to press on restart please ?

    My G4 powerbook running OSX 10.3.9 starts up with  a black screen. The reset button is not working. Does anyone know which keys to press on restart please.?

    Try holding the shift key while booting to get Safe mode if possible.
    See links for more info.
    http://support.apple.com/kb/ht1564
    http://support.apple.com/kb/ht1455

  • Froze on black screen and power button does not work

    my sons ipod touch is stuck on a black screen when plugged into the computer got a spinning wheel and will not connect now spinning wheel will not go away the power button does not work so can not reset it manually
    any suggestions would be appreciated

    - iOS: Not responding or does not turn on
    Neglect the reset and when it says place the iPod in recovery mode use one of thes programs
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • My lock screen button is not working and i turned off my iphone with assistive touch. Now i cant turn my phone back on!

    I used assistive touch to turn off my iphone, because my lock screen button is not working, so now i cant turn it back on! What i did was, i went to assistive touch, then i held down the lock screen button to turn it off. Now i can't turn it back on.

    To turn it back on when you use assistive touch, all you have to do is plug your iphone into a charger and it will power back on

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

Maybe you are looking for

  • PDFs do not open in the browser since IE11

    Hi, since the IE11 is installed the PDFs do not open in the browser with Adobe Reader, but directly in Adobe Reader. The PDFs can be filled but not saved online because they are not open in IE. If I disable the PlugIn in IE11 and activate again it wo

  • Problem with JTextFields being very small

    public void AddAccount()                //internal frame when a new account is being made                JInternalFrame frame = new JInternalFrame( "Add Account", true, true, true, true);                               JPanel panel = new JPanel();    

  • Questions about the insignia 32 inch 1080 p hdtv

    Hey. I am looking to purchase a new tv but I have a few questions. 1) Is this tv a good one for gaming? I have an xbox 360 and want to know how it would play. 2) Does it have a slot for an optical audio cable? I have an external sound card with 5.1 s

  • When is there a new macbook pro range to be launched? Im waiting to get the new one for my birthday.

    ??

  • Solaris 10 Installation CDs

    Hi, I have downloaded solaris 10 installation CDs from site, verified them with checksums and burnt then into 700MB CDs. When I put the first one into CD-Rom and issue "boot cdrom" it prompt smthing like: there is no executable file ... What is the p