Single Click in Finder Opens Everything :(

We're having the oddest problem I've ever seen in 20+ years using macs.
This machine I'm on lately started acting funny. When I click in the finder on any document, a single click to select or highlight automatically opens the file, as if I double-clicked.
I can't select a file to change it's name, for example. I have to Get Info and change the name that way, becuase no matter what I do the files open with a single click/select.
I have altered the mouse settings in SP and it doesn't change the result. I also switched mouses to make sure it's not that.
I really don't want to re-install the system, but is that probably what needs to happen?
Has anybody ever heard of this and have any ideas?
Thanks much!

Hi BulaRae,
Have you tried creating a new account and see how your Finder works in that User acct? (That will tell if your problem is systemwide or limited to your User acct.)
Open System Preferences > Accounts > "+" make it an admin account.
If this works, then log back into your problem account and navigate to ~(yourHome)/Library/Preferences and trash these two files:
com.apple.finder.plist
com.apple.sidebarlists.plist
Then log out and back in again. Or restart.
(You will have to reset a few finder prefs the way you like them.)
Let us know.
-mj
[email protected]

Similar Messages

  • Single click in file open dialogs in KDE4.1

    Hi,
    In my KDE 4.1, there's something that doesn't seem right:
    If in system settings, mouse&keyboard, I set the option "Double-click to open files and folders", then it doesn't actually  listen to that setting.
    In a file open dialog, it opens a file already with a single click. This makes it very hard to select multiple files in the dialog (e.g. when opening files with kate), because if you press CTRL and click on the file, instead of just making a selection of it, it opens that 1 file and closes the file open dialog.
    Is this really the intention? How can I select multiple files that are not all below each other?
    Is it the intention that it doesn't listen to the double click setting? And is it the intention that the behaviour is inconsistent with any other desktop environment? I mean, they didn't just change something universally accepted, right?

    I mean if I just use the below script, it works.
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    but if I want to control 2 iframes in one clicking, it
    doesn't work(it basically load only the second statment, and skips
    the first). I'd like to know is it possible to combine below 2
    javascript into one?
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    getURL("javascript:loadintoIframe('topframe',
    'top_v_vista_b5.html')");
    thanks again.

  • IPhone 5 - single click home button opens app switcher

    I have an unusual problem with iPhone 5 where if I am in an app (any app) and press the home button once to return to Home Screen, it is instead registering as a double click and opening the App Switcher. It does not happen all the time, maybe 60% but is somewhat annoying. I have restored the phone (set up as new phone) and still happening.
    Starting to think it maybe a hardware issue but want to see if anyone else has heard of this?
    Thanks in advance,
    Dave

    Hello chief1981,
    It sounds like you have restored your device as new, but your Home Button seems to be double clicking itself, when you only press it once. Based on you having already restored it as a new device, and it persisting, I would agree that it sounds like a hardware issue and would recommend that you seek service for it.
    iPhone Repair - Other Repairs
    https://www.apple.com/support/iphone/repair/other/
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Single-click to open in finder

    Is there an option to have single-click open files and folders in the Finder?

    You're welcome.
    I use the Logitech Control Center software that shipped with the mouse, though I actually downloaded the latest version from the Logitech Web site — vs. using the version that came on the included CD — to be sure I had the latest version.
    The version I am using is for PPC. I don't believe they've released a Universal Binary yet for Intel-based Macs: I did not see anything to this effect on their Web site when I checked today. You could contact Logitech about the availability of a Universal Binary. I suspect one may be forthcoming: many vendors have to address the move to Intel-based Macs.
    You wrote: "Can you configure the mouse-wheel click to open in a new tab in Safari?"Yes. Any button can be configured for a custom keystroke. Since the keyboard combination to open a new tab in Safari is Command-T (assuming tabbed browsing is enabled), one could configure any button on the mouse to perform Command-T when pressed.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • I have to "single-click" twice (not double click) to open an item in the Dock.

    Can someone confirm if this is Expected Behavior??   (OS = Mavericks)
    If you have Assigned an application in your Dock to a Desktop & Display in the application's Dock >> Options  (ex: Assigned To:  Desktop on Display 2):
    Click once on the application icon in the Dock, the application's Menu will populate on the top of your screen, but not the application itself (yet), click the application icon a second time, the application will now show too. 
    Docked Applications that do not have an Assigned To: Desktop & Display in the Dock options, you only need to single click.
    FYI:
    For odd Dock behaviors otherwise try this:
    You may have a corrupted Dock preferences file.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Preferences/com.apple.dock.plist    (plist = preference list file)
    Click Go then move the com.apple.dock.plist file to the Trash, or move it to your Desktop.
    Restart your Mac and see if the behavior is resolved.  You will have re-configure your Dock settings.

    From where are you launching Mail? The only place, unless I've missed or forgotten something, you can launch an application with a single click is from the Dock. Is this what you're doing, or are you attempting to launch Mail from the Applications folder?
    Regards.

  • Why am I sometimes sending duplicate emails and why when I sometimes single click an incoming messages to view it in the viewer window  why does it open?

    My computer got very touchy a few days ago as in the finder or in mail I would single click to select an item and it would open (rather than alloiwng me to just select it) or I would command select to select several items and they would open before I finished.
    I did a complete reinstall and finder part of the problem is gone, but it still exists in Mail.  Also before the reinstall just about every email I sent would duplicate-- not it only happens occaisionally.
    Anyone got any ideas-- thank you

    Hi, ybg, and welcome to the Community,
    Your detailed report (thank you) indicates to me your account has been compromised a second time.  Change your Skype account password immediately if you have not already done so, as well as that of any saved payment method on file.  I would also run a maintenance cycle on your computer/laptop, ensuring all patches and updates are installed.  Also run your preferred anti-virus/malware/spyware suite using the most recent virus signature files available.
    You are right to contact Skype Customer Service to report this incident.  I have read that people experience problems reaching them, however please do continue to do so, choosing a different path through the various steps than you used the first time; try also using a different web browser.  I have also read that the instant message chat sessions with Customer Service agents appear as a pop-up dialogue box, which needs to be enabled or the connection to the agent will not process.
    Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    As a general proactive precaution, I would recommend reviewing how you access the internet, particularly seeking any vulnerabilities or patterns common to the first incident and this one.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • There was away (before Mavericks) I could single click on an email and it would highlite but not open.  I could either delete or second click and the email would then open.  Can anyone tell me how to configure the prevue pane to that end with Mavericks?

    There was a way (before Mavericks) I could single click on an email in the "prevue pane" and it would highlite but not open.  I could then either delete it or click again and it would open.  With Mavericks that doesn't seem to be available making it impossible to delete an email in the prevue pane before I open it.  Its frustrating to have to go through all the monkey motions when I know I want to delete it from the get-go.  Does anyone know who to configure for that operation?  I'm using an iMac. 

    Wow,  have you ever seen 1 Billion in hard cash?  If not, I assure you it exists as well. 
    Try not to pick apart what others write because you "have not seen it." 
    I run TWO programs for protection of my MAC now and have been for sometime b/c developers of them become complacid thinking MAC is impermeable. 
    My MAC locked me out of it and two externals and when I finally did get back into them Norton Anti-Virus found a "worm."  When I asked the program to find the origin, it was traced back to an email, as you said, that I opened unintentionally.  I still have two external HDs for backup and a cloud backup now. 
    When ClamX ran after Norton was finished, ClamX found what it called as "spyware," and it's origin was in my email also.  I tried to delete the emails after the programs (both) identified the infected files, however once deleted and the computer is restarted, they were still there because I ran the scans again. 
    Now since we are no longer talking about how to turn on and off the view pane in apple mail; riddle me this,  why can't the developers of these antivirus and antispyware/malware programs get together and develop ONE PRODUCT that catches 90-95% of the viruses/worms/spyware/malware ect that get onto MAC's?  Is it because they are too busy thinking they don't exist? 
    I still run both programs and feel protected between the two.  If Norton said it was a "worm" then I believe it was a worm and if ClamX called it "spyware" then I believe it is spyware. 
    I had to wipe my MAC and do a fresh install to get it working again, then I had to open one of those externals (which was very, very difficult) multiple times until finally it displayed the message "you can view, but not change the data."  I exported as much as I could to my cloud and I had to format both of those too. 
    I still run both programs as I feel protected between the two.  If Norton tells me it is a "worm" then I believe it is a "worm;" if ClamX tells me it is "spyware" then I believe it is "spyware."  If it happens again, which my hope is that it won't, I will be more than happy to send the infected files to you!!
    Try not to "forum rage."  Support forums to post experiences and find answers, not nit-pick or claim not existance b/c you have not experienced it for yourself.

  • Files and apps not opening by 2x click in Finder window?

    Folks:
    No situation on my older G4 iBook running 10.4.11: I can't get files or applications to open or launch from a finder window by clicking on them; they do open by highlighting and then command + o. And any apps I have in the Dock launch by single click. I t seemed to begin when I tried to "Save as" a Appleworks file into a .doc format which caused AW to crash--I did that several times. When I re-launched AW it said, "your settings have been changed, do you want to keep the new settings or the old?" I clicked on "new" . . . still couldn't get the AW file into a Word format so I went to PDF. Seems like after that the inability to open all files or launch apps from the Finder windows. Ran ONyx Maintenance . . . re-starte, didn't seem to help. Any ideas appreciated--is this a "known item"?
    e.e.p.

    Hi, long time no see!
    First, Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.
    If that doesn't do it try this.
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
    Reset Launch Services...
    http://www.thexlab.com/faqs/resetlaunchservices.html#Anchor-Reset-47857
    Reboot.

  • I click on just about everything in safari it opens a new tab with an ad on it.

    Hi
    I have an iMac, 2012 model. operating on OS X 10.10.2 and whenever I click on just about everything in safari it opens a new tab with an ad on it.
    sometimes the ads are mackeeper or video hosting sites.
    When I set google as home page, this page keeps opening safari
    http://search-quick.com/?si=85680&channel=DP5332
    I'm wondering weather I downloaded a virus or something...
    how do I get rid of viruses?
    please help, thanks

    Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (124432)

  • Single click open - where?

    I have a very lame question. I changed a setting that caused SQL Developer 1.5 to no longer open an object (such as a procedure) when I select it in the connections window. I have literally searched for hours but can't find that setting again. Please tell me where to find that setting.

    I believe what you're looking for is under
    Tools --> Preferences --> Database --> Advanced Parameters: Open Object on Single Click.
    Ed. H.

  • I have an iMac, 2015 model. operating on OS X 10.10.2 and whenever I click on just about everything in safari it opens a new tab with an ad on it. sometimes the ads are mackeeper or video hosting sites but they are just so annoying.

    I have an iMac, 2015 model. operating on OS X 10.10.2 and whenever I click on just about everything in safari it opens a new tab with an ad on it. sometimes the ads are mackeeper or video hosting sites but they are just so annoying.

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.
    If you have trouble following those instructions, see below.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • How can i change the tab bar from opening a new tab when single clicked to open one only when double clicked?

    Out of habbit, i double click the tab bar and it opens 1 tab. however in the new beta, it opens 2.
    Is there anyway to change this so single clicks dont open new tabs on the tab bar?

    I don't have multiple tab bars and haven't installed anything to try and get them.
    I re-read what I wrote earlier and realised it's not worded clearly when I said: If I have more than a single tab bar of tabs open
    I meant: When I have so many tabs open that they won't all fit into the tab bar at once

  • How do you change to single click to open files and folders?

    How do you change from double clicking a file/folder, to single clicking (web style)?

    Finder > Preferences
    Turn it off it irks you. I find it exceedingly useful.

  • How can I open all the tabs saved in a sub folder of the bookmark menu simultaneously in a single click/command ?

    I have saved some of the related tabs in a common sub folder in the bookmarks list and whenever i have to open this tabs always i have to open them individually coz the 'open all in new tabs' option is not available for subfolder, so is there any command or click available from which i can directly open all the saved tabs of a subfolder simultaneously in one single attempt ? using vaio laptop, windows 7 basic, firefox version 6.0.2 !

    yes i do that on my desktop but i dont have middle click option on laptop and even in the right click context the ''open all in tabs'' option is desplayed but is in light color i.e. not functional. Is this a problem with windows 7 or missing plugin or add on could help or extension of some sort ? please help !

  • How to Open new screen for single click on ALV icon.

    Hi All,
    Can any body help me regarding the below ALV requirement.
    I need to create a executable program ZPROGRAM with a table having field to store long text.The ALV report should display records according to the selection screen parameters with a icon in each record when clicked should open a new screen with present data in the field and must be able to save the entered long text.
    Can any body give me the idea after displaying the simple ALV in the output,
    How to open new screen(not the Pop-up’s) after single click on the icon,
    in that I should be able to modify & save the long text in my ZTABLE and
    able to retrieve the same text for single clicked icon record.
    which function modules/Classes/Methods can we use for this requirement.
    And how retrieve the same text for this record.
    Thanks in advance.
    Regards,
    Kalam A.

    *& Report  ZTEST_ALV
    REPORT  ZTEST_ALV.
    TYPE-POOLS slis.
    DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv .
    DATA: gs_layout  TYPE slis_layout_alv.
    DATA: gt_list_top_of_page TYPE slis_t_listheader.
    DATA: gt_sortinfo_alv   TYPE  slis_t_sortinfo_alv.
    DATA: gs_print_alv TYPE slis_print_alv.
    DATA: gs_grid TYPE lvc_s_glay.
    DATA: gt_event TYPE slis_t_event.
    DATA: gs_event TYPE slis_alv_event.
    DATA: BEGIN OF GT_DISPLAY OCCURS 100.
       INCLUDE STRUCTURE MARA.
       DATA: BOX.
    DATA: END OF GT_DISPLAY.
    START-OF-SELECTION.
    SELECT * FROM MARA UP TO 50 ROWS
      INTO CORRESPONDING FIELDS OF TABLE GT_DISPLAY.
    End-of-Selection.
      PERFORM build_alv.
      PERFORM display_screen .
    FORM build_alv .
      DATA: ls_fieldcat LIKE LINE OF gt_fieldcat.
      DATA: ls_top TYPE LINE OF slis_t_listheader.
      DATA: ls_sort TYPE slis_sortinfo_alv.
      CLEAR: ls_fieldcat, gt_fieldcat[], ls_top,gt_list_top_of_page[],
             ls_sort,gs_grid,gs_print_alv,gt_sortinfo_alv[].
    *&-----gs_layout definition.
    gs_layout-zebra = 'X'.
    gs_layout-detail_popup = 'X'.          "ÊÇ·ñµ¯³öÏêϸÐÅÏ¢´°¿Ú
    gs_layout-f2code = '&ETA'.             "ÉèÖô¥·¢µ¯³öÏêϸÐÅÏ¢´°¿ÚµÄ¹¦ÄÜÂë,ÕâÀïÊÇË«»÷
      gs_layout-no_vline = ' '.              "ÉèÖÃÁмä¸ôÏß
      gs_layout-colwidth_optimize = 'X'.     "ÓÅ»¯Áпí
      gs_layout-detail_initial_lines = 'X'.
    gs_layout-coltab_fieldname = 'LINE_COLOR'. "Line_colorΪgt_displayµÄÒ»¸ö×Ö¶Î,¾ßÌåÑÕÉ«ÉèÖüûÏÂÃæ˵Ã÷.
      gs_layout-hotspot_fieldname = 'MATNR'.
    gs_layout-detail_titlebar = 'ÏêϸÄÚÈÝ'. "ÉèÖõ¯³ö´°¿ÚµÄ±êÌâÀ¸
    gs_layout-group_change_edit = 'X'.
    *&-----gs_grid definition.
      gs_grid-top_p_only = 'X'.
    *&-----gs_print_alv definition.
      gs_print_alv-prnt_title = 'X'.
      gs_print_alv-prnt_info = 'X'.
    *&-----gt_sortinfo_alv definition. С¼Æ
      ls_sort-fieldname = 'MTART'.
      ls_sort-tabname =  'GT_DISPLAY'.
      ls_sort-subtot = 'X'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
    ls_sort-group = 'UL'.
      APPEND ls_sort TO gt_sortinfo_alv.
      ls_sort-fieldname = 'AENAM'.
      ls_sort-tabname =  'GT_DISPLAY'.
      ls_sort-subtot = 'X'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
    ls_sort-group = 'UL'.
      APPEND ls_sort TO gt_sortinfo_alv.
    *&-----slis_t_listheader definition. title.
      CLEAR  ls_top.
      ls_top-key  = 'µ±Ç°ÈÕÆÚ:'.
      ls_top-typ  = 'S'.  " H = Header, S = Selection, A = Action
      CONCATENATE  sy-datum0(4)   '-' sy-datum4(2) '-' sy-datum+6(2) INTO ls_top-info .
      APPEND ls_top TO gt_list_top_of_page.
      CLEAR  ls_top.
      ls_top-key  = 'title'.
      ls_top-typ  = 'S'.  " H = Header, S = Selection, A = Action
      ls_top-info = space.
      APPEND ls_top TO gt_list_top_of_page.
    *&-----gs_print_alv definition.
      gs_print_alv-prnt_title = 'X'.
      gs_print_alv-prnt_info = 'X'.
    *&-----gt_fieldcat definition.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         i_program_name     = sy-repid
         i_internal_tabname = 'GT_DISPLAY'
          i_structure_name = 'MARA'
          I_CLIENT_NEVER_DISPLAY = 'X'
         i_inclname         = sy-repid
       CHANGING
         ct_fieldcat        = gt_fieldcat[]
       EXCEPTIONS
         inconsistent_interface = 1
         program_error          = 2
         OTHERS                 = 3.
      ls_fieldcat-hotspot = 'X'.
      MODIFY gt_fieldcat FROM ls_fieldcat INDEX 2.
    **-1. definition with macro.
      DEFINE macro.
       col_pos = col_pos + 1.
       ls_fieldcat-tabname   = 'it_typ_data'.
        ls_fieldcat-fieldname = '&1'.
        ls_fieldcat-seltext_l =  &2.
       ls_fieldcat-col_pos   =  col_pos.
        ls_fieldcat-outputlen =  '&3'.
       ls_fieldcat-datatype  =  '&4'.
       ls_fieldcat-do_sum    =  &5.
       ls_fieldcat-edit    =   &6.
       ls_fieldcat-checkbox  =   &7.
       ls_fieldcat-key   =   &9.
       ls_fieldcat-fix_column =  &10.
       ls_fieldcat-no_out =  &11.
        ls_fieldcat-ref_fieldname = &4.    " System F4 Effect.
        ls_fieldcat-ref_tabname   =  &5.   " System F4 Effect.
        ls_fieldcat-hotspot   =   &6.
        append ls_fieldcat to gt_fieldcat.
        clear ls_fieldcat.
      END-OF-DEFINITION.
      macro matnr     'matnr'            18   'MATNR'   'MARA'  'X'.
      macro MTART     'MTART'            18      'MTART' 'MARA'  ''.
      macro  AENAM    'AENAM'            18       'MAENAM'  'MARA'   ''.
    **-2. definition one-by-one.
    CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'MATNR'.
    ls_fieldcat-seltext_s = 'ÎïÁÏ'.
    ls_fieldcat-ref_fieldname = 'ROLLNAME'.
    ls_fieldcat-ref_tabname   =  'DD03L'.
    APPEND ls_fieldcat TO gt_fieldcat.
    ENDFORM.                    "build_alv
    FORM display_screen .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type     = 0
       IMPORTING
         et_events       = gt_event
       EXCEPTIONS
         list_type_wrong = 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.
    READ TABLE gt_event INTO gs_event WITH KEY name = 'TOP_OF_PAGE'.
    IF sy-subrc EQ 0.
       gs_event-form = 'TOP_OF_PAGE'.
       MODIFY gt_event FROM gs_event INDEX sy-tabix.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = sy-repid
        i_callback_pf_status_set          = 'PF_STATUS_SET '
         i_callback_user_command           = 'USER_COMMAND'
        i_callback_top_of_page            = 'TOP_OF_PAGE'
       I_CALLBACK_HTML_TOP_OF_PAGE       = 'HTML_TOP_OF_PAGE'
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = 'ALV_BACKGROUND'    "When top-of-page is initial.
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
         is_layout                         = gs_layout
         it_fieldcat                       = gt_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
        it_sort                           =  gt_sortinfo_alv[]
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
       I_SAVE                            = 'A'
      IS_VARIANT                        =
      IT_EVENTS                         = gt_event
      IT_EVENT_EXIT                     =
       IS_PRINT                          = gs_print_alv
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = gt_display
    EXCEPTIONS
       program_error                     = 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.
    ENDFORM.                    "display_screen
    FORM user_command          USING ucomm LIKE sy-ucomm
                               selfield TYPE slis_selfield.
    Data ref1 type ref to cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' "Check Box need fieldcat-checkbox, input and edit.
         IMPORTING
           E_GRID = ref1.
      CASE ucomm.
        WHEN '&IC1'. " SAP standard code for double-clicking
    READ TABLE gt_display INTO gs_display INDEX  slis_selfield-tabindex.
    CHECK sy-subrc = 0.
         CASE  selfield-fieldname  .
           WHEN 'PLNUM'.
             SET PARAMETER ID 'PAF' FIELD gs_display-plnum.
             CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
           WHEN  'POSNR'.
           SUBMIT  rvscd100 USING SELECTION-SCREEN '1000' WITH vbeln = gs_display-vbeln
                                                          WITH posnr = gs_display-posnr
                                                          WITH zinfo = 'X'
                                                          AND RETURN.
         ENDCASE.
       IF selfield-sel_tab_field = 'OUT_ITAB-PI_SL'. " Line detail.
           READ TABLE i_output INTO pisl_itab INDEX selfield-tabindex.
           IF sy-subrc EQ 0.
       ENDIF.
        WHEN 'CHANGE'.
         CALL METHOD ref1->check_changed_data.
         CALL METHOD ref1->refresh_table_display.
    *5´Ë´¦´úÂë×èÖ¹'REUSE_ALV_GRID_DISPLAY´´½¨ÐµÄÆÁÄ»£¬Ôì³ÉÆÁÄ»¶à²ã
         selfield-refresh = 'X'.
        WHEN 'SWITCH'.
         PERFORM switch_edit_mode.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "user_command
    Add your code in user_command form.
    WHEN you click matnr ucomm eq '&IC1'.
    Message was edited by:
            Chunhai Hu

Maybe you are looking for

  • Schedule report in BI

    Hi, I started to schedule a report in my BI publisher, it version is: 10.1.3.4.0, I installed schema and set the Security Model as BI Publisher Security. However when I try to submit a schedule job, server still returns an error oracle.apps.xdo.servl

  • How to avoid QM status for a newly created ODS Request be a Warning

    Hi Experts, I AM using 3.5 When I Execute my infopackage lo load a complete load data for an ODS,  the QM status of the Request is a warning. The monitor says no problem or warn for the load. I can manually turn it into green and activate the data bu

  • No Activation, date passed- no info, no good

    Hello I'm (well, my Dad) is having trouble setting up his new BT Vision. He was told the activation date would be Tuesday just gone (30th July), but this was later changed to the Thursday, so to help with the set up I took a day off work, only to be

  • Sequence values

    I have a sequence whose max value with the help of a trigger is inserted in a table column. I've noticed that sometimes the consecutive values of the sequence differ not by one but by variable number. I have Increment by 1 and Cache 20 in the sequenc

  • Why can I see my .swf file in the folder on the web hosting server but it doesn't display on the page?

    Go to www.handstool.net, go to "products" tab in menu bar, "clamshells" link in sub-menu.


HashFlare