User command event is not working ........

Hi ,
class event_class definition.
  public section.
    methods:
       handle_user_command
           for event after_user_command of cl_gui_alv_grid
               importing e_ucomm.
    methods:handle_hotspot
      for event  hotspot_click of cl_gui_alv_grid
           importing e_row_id.
endclass.                    "event_class DEFINITION
******selection screen**************************
call screen 100.
      CLASS event_class IMPLEMENTATION
********class implimentations********************
class event_class implementation.
  method handle_user_command.
    case e_ucomm.
      when 'SAVE'.
   wa_default-checkbox = 'X'.
ENDCASE.
  endmethod.            "handle_user_command
  method  handle_hotspot.
    wa_default-checkbox = 'X'.
    lv_layout-zebra = 'X'.
    lv_hotspot = lv_hotspot + 1.
    modify       lit_default
    index        e_row_id
    from         wa_default
    transporting checkbox.
    lv_id = e_row_id.
*************refreshing tables************
    call method wa_alv->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.
  endmethod.       
            "handle_user_command
method user_command.
*****some code i will write with help of e_ucomm**********(   control not comming here)
endmethod.
endclass.  
Hi,Here i have one alv grid display if i click on grid checkbox method (hotspot) will triggers properly,,,,but if i select any button like save ,modify i have created on screen method user_command is not triggering ,control is going to pai of that screen.my question is it shold trigger usr_command right??????
any help appriciated.
Thanks

Hi, Lingaraj.
Check your events handlers is registered
SET HANDLER go_event_receiver->handle_double_click FOR go_grid.
SET HANDLER go_event_receiver->handle_toolbar      FOR go_grid.
SET HANDLER go_event_receiver->handle_user_command FOR go_grid.
SET HANDLER go_event_receiver->handle_menu_button  FOR go_grid.
SET HANDLER go_event_receiver->handle_context_menu FOR go_grid.
SET HANDLER go_event_receiver->on_f4               FOR go_grid.
SET HANDLER go_event_receiver->handle_data_changed FOR go_grid.
before calling an ALV:
go_grid->set_table_for_first_display(
     EXPORTING  is_layout        = ls_layout
                is_variant       = ls_variant
                i_save           = 'A'
      CHANGING  it_outtab        = gt_outtab
                it_fieldcatalog  = lt_fieldcat
Hope it will be helpful for you.
Best regards,
George Shlyahov.

Similar Messages

  • At line-selection & at user-command event issue

    hi
    i am working on a interactive report,with at line & at user command event,on list 3 i have used a pf status,to trigger the at user command event,till that i was working with at line selection,which are working fine,but on list 3,i am able to see my pf status,but at user command event is not working properly,its still working like at line selection event,if i clk on record,it take to for nxt action,which i want to do through the action button of pf status.
    In debugging i checked that it coming to at user command,but the action in sy-user is 'PICK' & its doing the operation.
    WHEN '3'.
          IF itab4[] IS NOT INITIAL.
            SET PF-STATUS 'Z203'.
            LOOP AT itab4.
              AT FIRST.
                WRITE:/1 'Material' ,18 'Name'.
              ENDAT.
              WRITE:/1 itab4-matnr,8 itab4-maktx.
              HIDE:itab4-matnr.
            ENDLOOP.
          ELSE.
            WRITE:/ 'No Data Found'.
          ENDIF.
      ENDCASE.
      BREAK-POINT.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'CALL'.
          PERFORM bdc_mm02.
      ENDCASE.
    pls tel me how to use at line selection & at user command in same report to make both events working efficiently.
    regds
    vipin

    Check whether you have assigned Function Key F2 to your function code 'CALL'. If so change that function key. The function key F2 is always linked to function code 'PICK'.
    Regards
    Sathar

  • Command-C is not working consistently to.

    Command-C is not working consistently for me. In multiple apps, but mostly in Word, I find myself pressing Command-C and then Command-V to paste and what I paste is the LAST thing I copied, not the most recent. I sometimes have to repeat teh sequence several times before it pastes the thing I want it to. Any suggestions? I tried searching for this problem, but didn't find any relevant discussions. Thanks!

    Hello eeinna,
    I was thinking it might be a good idea to reset the SMC and the PRAM on the computer. Here are the 2 articles for those processes:
    About NVRAM and PRAM
    http://support.apple.com/kb/ht1379
    And
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    If needed I would also recommend testing the issue in a new user, and following the directions in this article as well based on what you find.
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    All the best,
    Sterling

  • Go to current song (command L) is not working in itunes 11

    Go to current song (command L) is not working in itunes 11, anyone having the same issue?

    Thanks for figuring that out.
    I thought that command-L was working when I first switched to iTunes 11, but then it wasn't working anymore. That's the ticket: I changed the display to show the sidebar.
    Still, I'd like to be able to use the command-L feature whether I'm showing the sidebar or not.
    I'd also like it if iTunes would keep showing the currently playing song when in Grid or Artist view modes. It doesn't, so I have to keep using command-L to see the current song info.

  • Transaction SE16: Field selection (User-Specific Settings) is NOT working for ALL tables

    Hi Guru’s,
    I have an issue in Transaction SE16, Field selection (User-Specific Settings) is NOT working in Tables (ALL tables).
    Following is the screenshot attached for your kind reference,
    That is in the initial screen of transaction SE16 if I choose Filed Name or Filed Label only the technical details (Field Names) are appearing and not the descriptions like Client, Purchasing Doc, and Company Code Doc. Category Document Type etc…
    Right now I am using ECC6 and EHP7 SAP system.
    Please help me to resolve this issue by implementing any OSS note or User Role creations or any technical changes required in system.
    Hope the requirement is clear and in case need any clarification please revert back.
    NOTE: Right now in Development System we don’t have any successful user to compare the settings.
    Regards,
    Kumar.S

    Thanks Patra.
    Even I searched in SAP portal and couldn't able to find the relevant OSS note.
    Following is my BASIS team response,
    "Only you can view Table Field values from higher release"
    Can you suggest / guide on this comment as well.
    Looking forward to your speedy response.
    Regards,
    Kumar.S

  • Command-V will not work!

    I use command-c & command-v more than any other keys on my keyboard and all of a sudden, command-v will not work.  I think one of my children pushed something that disabled it, but I cannot get it to paste anything even though my other command options work.  When I press command-c the "Edit" tab highlights and when I press command-v the "Edit" tab also highlights but it does nothing. It does this in every program so it's not program specific. Wow...amazing how missing one function can disable a person so quickly!

    A couple of people who have had this problem found an SMC reset resolved it, which is odd as you wouldn't think there would be any connection. However it is easy enough to do.
    from;
    http://support.apple.com/kb/HT3964
    1.
    Shut down the computer.
    2.
    Unplug the computer's power cord.
    3.
    Wait fifteen seconds.
    4.
    Attach the computer's power cord.
    5.
    Wait five seconds, then press the power button to turn on the computer.
    If that does not work, then explore your idea that your kids may have re-assigned that function to something else. Ask them if they were doing anything like that.

  • AT USER COMMAND event in interactive reports

    hi experts,
    Can anyone explain me about AT USER COMMAND event with one practical ex.
    thanks in advance
    R.vijai

    Hi vijaya kumar,
        If the user chooses a function code during list processing that is neither processed by the system, or PICK or PF<nn>, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:
    AT USER-COMMAND.
    <statements>.
    In this event block, you can use an IF or CASE structure to tell the function codes apart. They are available in the system field SY-UCOMM. There are further system fields that are filled in list events, such as SY-LSIND and SY-PFKEY, that allow you to make further case distinctions.
    REPORT Test_program.
    START-OF-SELECTION.
      SET PF-STATUS 'TEST'.
      WRITE:  'Basic list, SY-LSIND =', sy-lsind.
    AT LINE-SELECTION.
      WRITE:  'LINE-SELECTION, SY-LSIND =', sy-lsind.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TEST'.
          WRITE:  'TEST, SY-LSIND =', sy-lsind.
      ENDCASE.
    With this code double click on 'TEST' and define your own PF status and give user command as TEST and check out this useful programe.
    All the very best to you.
    Regards,
    Mohan Vamsi Krishna.A

  • How do I paste a screen capture? Edit-paste or command-V do not work.

    How do I paste a screen capture? Edit-paste or command-V do not work.  Tom

    how did you take the screenshot?
    if you used a key combo like command+shift+ a number it will be saved as a file on your desktop
    you need to add control* to whatever key combination you pressed to put it on your clipboard
    *sorry for saying shift before i meant control

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

  • Shift-Command-R does not work anymore

    Hello all,
    I've noticed that the shortcut shift-command-r does not work anymore on my macbook pro. I used it for the calendar to refresh all calendars, and its also handy to open the reader in safari 5.
    When I open the keyboard viewer from the language and text menu I can see it when I press shift, then command but when I press "R" nothing changes, only shift+command stay highlighted. Other letters do work, so its a bit strange.
    Anyone know a solution for this?
    Thank you in advance

    Nope thats not the problem, the listening key is Esc. It is as if the keyboard does not register it when the R is pressed in combination with the shift and the command together. As I said, the keyboard viewer shows every keystroke except the shift-command-r combi.

  • I opened something that won't seem to quit. Command Q is not working and nothing else will, what else could I do to quit?

    I opened something that won't seem to quit. Command Q is not working and nothing else will. What could I do to quit?

    Nevermind! I right-clicked on the application and clicked force quit and it worked! That's all I had to do!

  • Simple WD4A Portal Eventing does not work

    Hello togehter,
    I'm trying to get a simple Portal Eventing to work with two WebDynpro ABAP components. I read several threads as well as a blog from Thomas Jung about this but still have no eventing. What am I doing wrong? I think that it might be only a little obstacle but I can't get it. So what I didi is:
    1.) Created 1st WD4A application with a button and an action behind that button:
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      l_portal_manager->fire(
        portal_event_namespace = 'urn:my.namespace'
        portal_event_name      = 'test_event'
        portal_event_parameter = 'testValue' ).
    2.) Created 2nd WD4A application with the following code in the WDDOinit-Method:
    DATA: l_api_component  TYPE REF TO if_wd_component,
            l_portal_manager TYPE REF TO if_wd_portal_integration,
            view TYPE REF TO if_wd_view_controller.
      l_api_component = wd_comp_controller->wd_get_api( ).
      l_portal_manager = l_api_component->get_portal_manager( ).
      view ?= wd_this->wd_get_api( ).
      l_portal_manager->subscribe_event(
        portal_event_namespace = 'urn:my.namespace'
        portal_event_name      = 'test_event'
        view                   = view
        ACTION                 = 'CATCH_EVENT' ).
    and an action.
    method ONACTIONCATCH_EVENT .
      data: EVT_NAME type STRING,
            evt_parameter type string.
      EVT_NAME = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_NAME' ).
      if EVT_NAME = 'test_event'.
        evt_parameter = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_PARAMETER' ).
        DATA:
          ls_text TYPE if_main=>element_main,
          node_main TYPE REF TO if_wd_context_node,
          elem_main TYPE REF TO if_wd_context_element.
        node_main = wd_context->get_child_node( name = `MAIN` ).
        evt_parameter = 'IT WORKED'.
      else.
        evt_parameter = 'did not work'.
      endif.
      ls_text-text_receiver = evt_parameter.
      node_main->bind_element( ls_text ).
    endmethod.
    3.) FInally I created two iViews (for each WD4A application) and a page, linked the iViews in the page and made a preview. Unfortunately nothing happend in the second iVIew with the 2nd WD4A application in it.
    Any help?
    Thanx in advance
    Matthias

    Hello,
    thanks for your answers. But the problem is not yet solved, the link gives nothing new for me.
    To amend my first post:
    After having created and activated my both small WD4A applications, I created 2 similar iViews (iViews for WebDynpro -> and chose WD ABAP) in my portal. Both iViews have the same namespace (which is SAP - is this ok?) and no application parameter.
    Then I created both a Standard SAP page and a WebDynpro proxy page and added the 2 iViews as deltalink. The page and the iViews have the same prefix (but this is not important, isn't it?).
    --> In both pages the portal eventing does not work
    The ABAP server and the Portal server are the same machine and I call the portal with the full qualified domain name:
    http://<servername>.<domain>:50000/irj/portal
    When I test my WD4A applications in se80 I get the path http://<servername>.<domain>:8000/sap/bc/webdynpro/sap/z_event_receiver?sap-language=EN
    so this is the same domain.
    I even have an entry in my hosts-file for
    <myInternalIp>  <servername>.<domain>
    - Do I have to specify the domain explicitly in addition when integration the WD4A applications in the portal?
    - Is there a correlation between the Portal Event namespace, the namespace of my iViews and page and the domain name of my server?
    - Does the portal event namespave to have the prefix urn: or not?
    Thanks again in advance

  • How to organize app windows in Exposé.? The command 1 , or, command 2 does not works.

    How to organize app windows in Exposé.? The command 1 , or, command 2 does not works.

    There is no Exposé in OS X Mountian Lion, Apple removed it for "Mission Control" and yes it is a confusing mess.
    https://support.apple.com/kb/ht4689

  • LOCK THE USER AFTER X ATTEMPTS --NOT WORKING?

    LOCK THE USER AFTER X ATTEMPTS --NOT WORKING
    OpenSSO -->Configuration-->Authentication -->Core -->Login Failure Lockout Count:( 3 ) --> Warn User After N Failures: ( 4)--> Email Address to Send Lockout Notification: --> [[email protected]|mailto:[email protected]]
    I tried above step but failed to achieve LOCKING the ACCOUNT...
    Could some one please help me...

    This only works if you use the LDAP auth module.

  • I have a MacBook Air using Maverick. I have files in the trash I want to recover. I do not have "Put Back" and Command   Delete does not work.

    I have a MacBook Air using Maverick. I have files in the trash I want to recover to their original files. I do not have "Back Up" and "Command + Delete" does not work.

    Drag them out of the Trash and put them in their original location. Put Back may work on one file at a time.

Maybe you are looking for

  • My computer is no longer picking up my iphone

    My computer will no longer recognize that my iphone is connected, and the iphone itelf does not connect with anything through the USB port (wall charger or computer). I have tried connecting with several USB cables including my ophone cable as well a

  • Does a new contract mean you should get new phone? NEW MEANS NEW,RIGHT?

    I signed a 2 year contract and got what I was told was a brand new Blackberry Tour. Problem is when I sent in the rebate, they said the rebate was already given for that particular device. Long story short, the phone had so many problems it was not u

  • Order acknowledgement inbound scenario in EDI

    Hi, We have to setup the order acknowledgement inbound scenario in EDI. as I am new to EDI need help in this. If somebody has any document or link of tutorial please send it to ankur.ty5 @ gmail.com . Thanks in advance Ankur

  • It pains me to say it but ...

    I don't think Keynote is ready for the adult world yet. I am the CEO of an organisation that is dominated by Microsoft Office users, but I am the key Apple advocate and have been espousing the use of Keynote for our corporate presentations. However,

  • Creating CD from Midi files

    I have 3 files I composed using Sibelius software. I have imported them to itunes and can play them - they are .mid files. I can't seem to burn these files to an audio CD which is my goal - any ideas?