ALV-Event data_changed after searchhelp with userdefined searchhelpexit

Hi there ...
I'm using an OO alv grid with an elementary searchhelp at defined fields.
the search help uses an searchhelpexit, that simply filters data, to show the right stuff
everything works fine!
dependent on the returned value of the searchhelp, I need to trigger a recalculation of values.
the alv-event "data_changed" looks interesting for that issue ... especially the flag "e_onf4_after" ...
BUT: I don't know, when the flag is set :$
the event is raised (with marked flags "e_onf4" and "e_onf4_before") before the Searchhelplist is displayed .... but I need to react AFTER the searchhelp is closed and the selected value is returned ...
all I want to do is:
trigger the recalculation after the user selected a value at the searchhelp
can anybody help me in that case?!
thanks a lot  & enjoy your weekend
Markus

Hi,
You can call elementary search help like any popup screen
with function F4IF_FIELD_VALUE_REQUEST.
- Call f4 help manually in the event DATA_CHANGED
- Process your recalculation
- set values on cells..
I hope it helps.

Similar Messages

  • ALV, event DATA_CHANGED, avoid insert of duplicate key

    Hello,
    I would like to implement edit functionality of an internal table with ALV based on class CL_GUI_ALV_GRID. Some fields of internal table are key fields and the combination of them should be unique. The user has a possibility to add a new record (all fields in new record are editable) or change values in an existing record (only non-key fields are editable). So far so good, it works.
    I'm doing a validation of entered data in the event DATA_CHANGED. In this event I'm checking if the new record is a duplicate combination of existing key fields. If yes, then all fields of the new record are reported as error with ADD_PROTOCOL_ENTRY method. This removes all entries related to this row from MT_GOOD_CELLS table and this is ok for me.
    My problem: after validation ALV inserts such empty row in my internal table and next time, when the user makes a correction, this record is an update and not a new record (there is no entry in MT_INSERTED_ROWS).
    Question: Is there a possibility to avoid ALV inserting a new record when all its cells are bad?
    Regards,
    Annie

    Hi,
    As far as i have understood your problem,you can try the following to avoid the insertion of an empty row:
    When you must be creating an empty row,just set a flag say flag_create = 'X'.
    Then when you are performing the validation then if there is an error then check for this flag that is :
    if flag_create = 'X'.
    then delete from the internal table based on sy-tabix.
    endif.
    This way the new row that got appended with wrong values will get deleted and the code will not consider this as an updated row.
    Kindly <<deleted> if useful.:)
    Follow the rules of engagement
    Edited by: Vijay Babu Dudla on Jan 9, 2012 7:07 AM

  • ALV event  data_changed error

    Hello everybody,
    I have a one  editable field in ALV. After 'ENTER'  I want do some actions ( check input , save data into DB table...).
    CLASS lcl_gui DEFINITION CREATE PROTECTED.
      PUBLIC SECTION.
        DATA: mor_alv    TYPE REF TO cl_gui_alv_grid,
    METHODS:   alv_init,
                        alv_changed FOR EVENT data_changed
                                             OF cl_gui_alv_grid
                                             IMPORTING er_data_changed,
                        register_events,
    METHOD register_events .
       CALL METHOD mor_alv->register_edit_event
         EXPORTING
         i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        SET HANDLER me->alv_changed FOR mor_alv.
      ENDMETHOD.
    After  I change field and pres 'ENTER' I get popup with message "Programs error" and program exits.
    (On the screen in other container I  also have  ALV Tree-CL_GUI_ALV_TREE , maybe it is impotrant to mention...)
    Please help.

    Hi Sandeep,
    as I said I just get popup wit error message "Program errors" with just "Exit" button, when I press the button program exits.
    I get no runtime error, just this popup.
    Regards
    Jan.

  • OO ALV validation check without event DATA_CHANGED and results via popup

    Hi Gurus,
    I'm working on SAP ECC 6.0 and I'm facing a problem during the ALV validation check. My requirement is to show an ALV with one editable field. In addition I have to pre-initialize this field in order to give a reference value to the user, but this is not always correct, or better, this field represent the maximum amount available, but, because of other validation checks, this field is not always correct (and it's ok, it's not a problem), and if it is greater than another amount I have to display an error.
    I was thinking about catching the event DATA_CHANGED and do the checks inside of it. It works but not completely, because if the user do not change anything the event is not raised and I cannot do my checks.
    My solution is to do the checks without catching the DATA_CHANGED event and display the errors in a separate popup window.
    The checks are ok, but I have problems during the displaying of the results: I would like to use the class CL_ALV_CHANGED_DATA_PROTOCOL in order to display the errors, I tried creating the Object:
      Data: go_Error Type Ref To CL_ALV_CHANGED_DATA_PROTOCOL.
      Create Object go_Error
        Exporting
    *      i_container =
          i_calling_alv = go_0200_Alv
    giving it a reference to the ALV (the go_0200_Alv is my CL_GUI_ALV_GRID object).
    Then I did many Call Methods to the Add_Protocol_Entry to add the message in the protocol and then display them calling the Display_Protocol Method of my "go_Error".
    The Popup is shown and the "links" to the ALV are correct (if I double click a message it selects the corresponding row of the ALV, but (and it's my problem) I cannot see the Description of the Column with the error: the popup window is an ALV grid itself with 3 columns ("Message Type", "Name of the Column" and "Message Text") where I can see correctly the Message Type and the Message Text but not the name of the column.
    Debugging the code I found that If I catch the event, the parameter er_Data_Changed (the class CL_ALV_CHANGED_DATA_PROTOCOL) is filled with some other informations like Modified Rows and other attributes like FieldCatalog, Row-ID, so I thought the problem was related to that, and that's why I replicated the whole case in my processing, filling every table I would see if I use the "standard way" for validation. Bu it didn't correct the error. I still don't see the name of the Column.
    This is my code, it's only the part interested, If you need other informations, please ask me and I will copy them.
    form CHECK_ALV_0200_0110 Changing pc_Error Type Char01.
      Data: lt_MatchK1 Type tp_Matches1_Key_t,
            l_Message  Type Char100,
            l_MessX    Type String,
            l_QtaRes   Type ZDM_AMT_ASSIGNED,
            l_QtaAcc   Type ZDM_AMT_ACCRUED,
            l_QtaStep  Type ZDM_AMT_ASSIGNED.
      Field-Symbols: <fs_Table>    Type Standard Table,
                     <fs_Master>   Type Standard Table,
                     <fs_Mod_Cell> Type LVC_S_MODI,
                     <fs_Line>     Type Any,
                     <fs_Field>    Type Any,
                     <fs_Any>      Type Any.
      Data lt_Matches_Alv_Mod Type tp_Matches1_Alv_t.
      Data ls_Modi Type LVC_S_MODI.
      Data: l_Row_ID Type I,
            l_Tabix  Type I.
      Field-Symbols: <fs_Match_ALV> Type tp_Matches1_Alv_s.
      Free go_Error.
      CREATE OBJECT go_Error
        EXPORTING
    *      i_container =
          i_calling_alv = go_0200_Alv
    * Validation Checks
      Clear pc_Error.
      Clear ls_Modi.
      Loop At gt_Matches1_Alv Assigning <fs_Match_ALV>.
        l_Tabix = Sy-Tabix.
        Check <fs_Match_ALV>-Status Eq con_Status_Temp.
    *   Set the Modified Row for the CL_ALV_CHANGED_DATA_PROTOCOL object
          Append <fs_Match_ALV> To lt_Matches_Alv_Mod.
          Add 1 To ls_Modi-Row_Id.
          ls_Modi-FieldName = 'AMT_DEDUCTED'.
          Write <fs_Match_ALV>-Amt_Deducted To ls_Modi-Value Currency <fs_Match_ALV>-Waers.
          Condense ls_Modi-Value No-Gaps.
          ls_Modi-Tabix = l_Tabix.
          Append ls_Modi To: go_Error->mt_Mod_Cells,
                             go_Error->mt_Good_Cells.
          l_Row_ID = ls_Modi-Row_Id.
        Clear l_Message.
        If <fs_Match_ALV>-Amt_Deducted Eq 0.
          pc_Error = con_X.
          CALL METHOD go_Error->Add_Protocol_Entry
            EXPORTING
              i_msgid     = 'ZDMV'
              i_msgty     = 'E'
              i_msgno     = '005'
    *          i_msgv1     =
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
              i_fieldname = 'AMT_DEDUCTED'
              i_row_id    = l_Row_ID
    *          i_tabix     =
          Continue.
        EndIf.
        Case g_Dynnr.
          When '0110'.
            Perform Get_ResQtaDispute1 Using lt_MatchK1
                                             <fs_Match_ALV>
                                       Changing l_QtaRes.
            Perform Get_ResQtaAccrued1 Using <fs_Match_ALV>
                                       Changing l_QtaAcc.
    *      When '0111'.
    *        Perform Get_ResQtaDispute2 Using lt_MatchK2
    *                                         <fs_Match_ALV>
    *                                   Changing l_QtaRes.
    *        Perform Get_ResQtaAccrued2 Using <fs_Match_ALV>
    *                                   Changing l_QtaAcc.
        EndCase.
        Add <fs_Match_ALV>-Amt_Deducted To l_QtaStep.
        If l_QtaStep > l_QtaRes.
    *     Store the Error
          pc_Error = con_X.
          Write l_QtaRes To l_Message Currency <fs_Match_ALV>-Waers.
          Condense l_Message No-Gaps.
          CALL METHOD go_Error->Add_Protocol_Entry
            EXPORTING
              i_msgid     = 'ZDMV'
              i_msgty     = 'E'
              i_msgno     = '002'
              i_msgv1     = l_Message
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
              i_fieldname = 'AMT_DEDUCTED'
              i_row_id    = l_Row_ID
    *          i_tabix     =
        EndIf.
        If l_QtaStep > l_QtaAcc.
    *     Store the Error
          pc_Error = con_X.
          Write l_QtaAcc To l_Message Currency <fs_Match_ALV>-Waers.
          Condense l_Message No-Gaps.
          CALL METHOD go_Error->Add_Protocol_Entry
            EXPORTING
              i_msgid     = 'ZDMV'
              i_msgty     = 'E'
              i_msgno     = '002'
              i_msgv1     = l_Message
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
              i_fieldname = 'AMT_DEDUCTED'
              i_row_id    = l_Row_ID
    *          i_tabix     =
        EndIf.
      EndLoop.
      If pc_Error Eq con_X.
    *   If there was at least one error, Display the Popup
        go_Error->mt_FieldCatalog[]   = gt_0200_FCat[].
        go_Error->ms_Layout-Zebra     = con_X.
        Get Reference Of lt_Matches_Alv_Mod[] Into go_Error->Mp_Mod_Rows.
        CALL METHOD go_error->display_protocol
    *      EXPORTING
    *        i_container        =
    *        i_display_toolbar  =
    *        i_optimize_columns =
      EndIf.
    EndForm.
    Do you know if there is a particular issue about that? Or, maybe, I'm doing something wrong...
    Please help me
    Regards,
    Claudio
    Edited by: Claudio Distrutti on Oct 31, 2008 12:38 PM

    Hello Claudio
    Nobody prevents you from calling your event handler method go_grid->HANDLE_DATA_CHANGED directly!
    What do I mean with that?
    I assume you are calling method go_grid->CHECK_CHANGED_DATA at the beginning of the PAI module to catch any changes from the editable ALV grid. Within the event handler method you do your validation and send the error popup if necessary.
    Now when the user closes the error popup and pushes e.g. the SAVE button then I can happen that method HANDLE_DATA_CHANGED does not trigger event DATA_CHANGED because nothing was indeed changed on the ALV grid. Yet the invalid value is still there.
    However within the FORM routine for saving the data you can just call your event handler method directly:
    FORM save_data.
    CALL METHOD go_grid->handle_data_changed
        EXPORTING
    *      er_data_changed =
          e_ucomm = 'SAVE'.
    ENDFORM.
    Now within your event handler method you always know when the method was called because if method CHECK_CHANGED_DATA triggers event DATA_CHANGED the IMPORTING parameter ER_DATA_CHANGED is bound whereas it is empty when the method is called from your SAVE routine.
    METHOD handle_data_changed.
      DATA: lo_log   TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
        IF ( er_data_changed IS BOUND ).
          lo_log = er_data_changed.
        ELSE.
          CREATE OBJECT lo_log.
        ENDIF.
    " Do the validations and send error log if necessary
      lo_log->DISPLAY_PROTOCOL( ).
    ENDMETHOD.
    Regards
      Uwe

  • ALV events for data_change  executing multiple times

    Hello Experts,
    I am using the event "data_changed" of cl_gui_alv_grid and its getting triggred multiple times based on
    no. of rows in my ALV grid output.
    For ex: if i have 5 rows and if i input a field in any cell in a new row, in data_changed event is triggered 2 times.
    The  LOOP AT er_data_changed->mt_mod_cells INTO ls_modified is executing 6 times as in above example
    even though is having only 1 entry.
    Can some one pls help me with this?
    Also i see the  toolbar event is often getting excuted multiples no of times making the application slow.
    Please suggest.
    Thanks
    Dan

    Dan,
    Maybe you've placed or doing something wrong, take this report as a pattern "BCALV_EDIT_03".
    Best regards,
    Alexandre

  • Set ALV cell, use of event DATA_CHANGED

    Hi experts,
    I want to set some ALV input fields using abap.
    That's easy, I can modify the table as I need and call the refresh of the ALV table ( refresh_table_display).
    But how can I "fill" the fields that the event DATA_CHANGED is called?
    When I fill manually in ALV, this event is raised...I need the event also when filling with ABAP...
    Thanks in advance
    Michael

    Hello Michael,
    This link shows you the right way to do:
    Get Changed Value In ALV Grid Dynamically - ABAP Development - SCN Wiki
    Inside HANDLE_DATA_CHANGED method, you can change the value of a cell in this way:
    CALL METHOD PR_DATA_CHANGED->MODIFY_CELL
        EXPORTING
          I_ROW_ID    = IT_TABLE-ROW_ID
          I_FIELDNAME = 'FIELD'
          I_VALUE     = IT_FLIGHT-FIELD.
    I hope you help.

  • In Final Cut Pro I was trying to move an Event Library from one hard drive to another as explained in the Help section.  After doing so, I received a message that my event is already open with the same identifier as the new one I just creat

    In Final Cut Pro I was trying to move an Event Library from one hard drive to another as explained in the Help section.  After doing so, I received a message that my event is already open with the same identifier as the new one I just created on the new disk.  It says the second document cannot be opened and to move one of these documents out of your Final Cut Events folder.  It also says to avoid this problem, copy events from within Final Cut Pro, but that is what I did in the first place.  What should I do to avoid the double opening conflict?

    What exactly are you doing and what version are you using with OS X 10.8?

  • Events not showing in iCal after sync with iPhone

    A whole week of appointments don't show up in iCal after syncing with my iPhone - all the appointments are on my iPhone but they won't copy over.
    Funnily enough, the week that is not showing up is changing every Monday...
    Anyone seen this before?

    I found this solution in another discussion. It's from this website: http://iphonewriter.blogspot.co.nz/2008/05/how-to-fixing-ical-iphone-sync-issues .html)
    "You'll know the syncing issue when you see it, because the new events you enter into the Calendar on your Apple iPhone will not appear in iCal. Said another way, you'll enter a new event into your iPhone, use iTunes to sync with your Mac (or MacBook in our case) and the new event on your iPhone will not show up in iCal. Keep trying, synch as you might, iCal and the Apple iPhone just won't get along.
    Here's the down and dirty fix:
    Open iCal and backup or export your entries. Make a note of the fie name and location, you're going to need them in a minute. Once your backup/export is completed, close the iCal application.
    Open Finder and remove everything inside the "Username/Library/Calendars" folder. For instance, if your username is "Joe", then move everything inside the "Joe/Library/Calendars" folder.
    Open the iSync application. It's located in the "/Applications/" folder. Once iSync is opened, go into the iSync Preferences (iSync -> Preferences) and push/click the "Reset Sync History" button. Then, close the iSync application.
    Re-Open the iCal application and Restore your calendar. When prompted, use your notes from Step #1 to select the file your created earlier.
    At this point all my appointments were showing up properly in iCal, and did not disappear after syncing again with the iPhone.

  • Calendar's 2nd Event Alert auto swaps with 1st alert after pressing Done button in the default "Home" Calendar. Why?

    Calendar's 2nd Event Alert auto swaps with 1st alert after pressing Done button in the default "Home" Calendar for IOS 7.1. Why? No such problem with the original IOS 6 that included in my iphone 5.

    Anyone got any ideas?

  • Events after syncing with Palm

    After syncing with my Palm, iCal has spread many but not all one-day events over two days. For instance, Halloween in iCal is now a two day holiday from October 30 through October 31. My cousin's birthday is now two days long as well. BUT, Easter is still just one day, as is my father's birthday. It's really weird. The two day spread does not happen on my Palm.

    Other users have reported this very same issue after updating to iOS 5.
    If you are using iCloud, try changing a contact in your iCloud.com. Then see if the Edit button reappears in the Contacts App.
    I can no longer designate a custom title for additional email addresses within a contact. I can edit contacts and add new ones, I just cannot designate an additional email address for a particular contact as home, or work, or any of the other titles that should be available. iOS 5 has caused some weird glitches for some of us.

  • Problem in raising the event DATA_CHANGED in OOP ALV

    Hi experts,
    I am currently having trouble in raising the event 'data_changed' in my OOP ALV . The event is triggered everytime I make changes to my editable cells but when it comes to clicking on the save button, it only calls 'data_changed_finished' and bypasses 'data_changed'.
    I need to call 'data_changed' before the data is saved to do some verification.
    My code is shown below.
    CALL METHOD gr_alvgrid->register_edit_event
         EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    *--functions
        CALL METHOD gr_alvgrid->set_table_for_first_display
        EXPORTING
        is_variant           = s_variant
        i_save               = 'A'
        i_default            = gc_true
        is_layout            = gs_layout
        it_toolbar_excluding = gt_exclude
        CHANGING
        it_outtab            = gt_list
        it_fieldcatalog      = gt_fieldcat
        EXCEPTIONS
        invalid_parameter_combination = 1
        program_error = 2
        too_many_lines = 3
        OTHERS = 4 .
        IF sy-subrc <> 0.
    "raise message
        ENDIF.
    CREATE OBJECT gr_event.
    SET HANDLER gr_event->handle_data_changed FOR gr_alvgrid.
    SET HANDLER gr_event->handle_data_changed_finished FOR gr_alvgrid.
    CALL METHOD gr_alvgrid->set_toolbar_interactive.
    CALL METHOD gr_alvgrid->set_ready_for_input
                  EXPORTING i_ready_for_input = 1.
    In my PAI
    CASE ok_code.
        WHEN 'SAVE'.
    *--->this calls the event 'data_changed_finished' and bypasses  'data_changed'.*                                                     
    *Check if there's data changed.
          CALL METHOD gr_alvgrid->check_changed_data
            IMPORTING
              e_valid = l_valid.
      ENDCASE.
    I checked the sap sample program BCALV_EDIT_04 and I don't see any difference except for register_edit_event but I don't think that I can leave this out in my code . Is there any points i'm missing here?
    Thanks,
    Patrick

    Hi, Spin
    do like below,
    DATA: gr_alvgrid TYPE REF TO cl_gui_alv_grid,
          cc_alv TYPE REF TO cl_gui_custom_container.
    IF cc_alv IS INITIAL. " USE This Condition
      CREATE OBJECT cc_alv
        EXPORTING
          container_name = 'CC_ALV'.
      CREATE OBJECT gr_alvgrid
        EXPORTING
          i_parent = cc_alv.
      CALL METHOD gr_alvgrid->set_table_for_first_display
        EXPORTING
          is_variant                    = s_variant
          i_save                        = 'A'
          i_default                     = gc_true
          is_layout                     = gs_layout
          it_toolbar_excluding          = gt_exclude
        CHANGING
          it_outtab                     = gt_list
          it_fieldcatalog               = gt_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc = 0.
        "raise message
      ENDIF.
    ENDIF.
    Please reply if any Issue,
    Thanks and Regard,
    Faisal

  • Cl_gui_alv_grid: Summing after event: data_changed

    Hello,
    I want to get the Sub-Total lines refreshed within
    the event "data_changed of cl_gui_alv_grid"
    Actually it works in PAI  with
    method "REFRESH_TABLE_DISPLAY". But i want to do it
    immidiatly when the user has changed some value.
    Calling this method within the event "data_changed.."
    has no effect.
    I could't find a method which is doing this.
    Maybe the event SUBTOTAL_TEXT will work, but i don't
    know exactly whow to implement it.
    Can somebody help me?
    Thanks in advance
    Michael

    Hi Michael
    Try calling the method <b>"REFRESH_TABLE_DISPLAY"</b> at the end of the event <b>"data_changed_finished"</b> instead.
    If this does not help, try defining youe events as application events.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Outlook 2007 calendar events font changes after syncing with iTunes

    I use Outlook 2007 on a Windows XP PC. I have no problems syncing Outlook calendar events with my iPhone 4 other than for one highly annoying detail. My default font in Outlook is set to Times New Roman 12 pt. Whenever I sync, all of my calendar events' text in Outlook is changed from Times New Roman 12 pt. to Calibri 11 pt., and sometimes more recently, to Arial 10 pt.
    It's driving me nuts as I find Calibri to be hideous-looking. In addition to the font change, all other special formatting such as bold and italics are removed.
    Has anyone experienced this before or know what's going on? Many thanks in advance to anyone who can help.

    Has no one experienced this issue? I can't understand why this happening. It's been almost two months since I posted this.
    To reiterate: After syncing with iTunes (the newest version), all custom text formatting in Outlook 2007 calendar events are changed to Calibri 11 point, and sometimes more recently, to Arial 10 point. My default font is set to Times New Roman 12 point.
    Any help would be greatly appreciated.

  • Need docu on alv events with examples

    hi experts,
    Need help on docu in <b>alv events</b> with exam</b>ples
    thanks in advance.

    Hi,
    Check this link..
    http://www.sap-basis-abap.com/abap/events-in-alv-and-their-fm.htm
    go through following links......
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    Re: Performance Optimization for the following Code (URGENT & VERY IMPORTAN
    The main events in alv and their FM and why we use these:
    1. SLIS_PRINT_ALV.
    2. SLIS_T_LISTHEADER.
    3. SLIS_T_EVENT.
    4. SLIS_T_SORTINFO_ALV.
    5. SLIS_T_LAYOUT_ALV.
    6. SLIS_T_FIELDCAT_ALV.
    For more information check the following link:
    http://sap-img.com/abap/what-are-the-events-in-alv.htm
    Regards,
    Omkar.

  • AbapOO-event data_changed and F4- not in correct sequence (unwanted popup)

    Hi,
    I have a splitter screen as a docking container to screen 100.
    This splitter has a tree and an alv.
    The alv part is editable and has the event data_changed is defined for the editable field.
    The fieldcatalog on the alv (which has a dynamic field symbol as the data table) had the flag F4AVAILABE=X on the editable field.
    The problem:
    when I change the value on the editable field from invalid value to valid value, I still get the automatic SAP popup that says that my old value is not found in the check table.
    WHY DO I GET THIS POPUP?
    OR
    HOW TO CONTROL THAT THE POPUP WILL BE AFTER THE VALUE CHANGE IS CAUGHT?
    I checked the field symbol table and the value is being changed in the table before I get the message (for some reason on the data_changed event, the table er_data_changed->mt_good_cells is initial but the table er_data_changed->mt_mod_cells is filled with my changed data).
    The ugly solution:
    I put 'leave to screen 100' command after the update and I do not get the popup message anymore. but I would like to do so without refreshing the whole screen with this trip to the server.
    I tried to put dispatch and flush (doesn't make sense to put them here but it can't damage) but this didn't help.
    any ideas?
    Thanks guys.

    Thanks for your reply.
    I did several programs with this method and the data always appears. you can also examine the SAP program I mentioned down.
    I think that will not work but I may be wrong.
    do you have any exape using this handler?
    This event does not have a reference to the changed data so you would not know what field was changed.
    if you look at the SAP example program BCALV_GRID_EDIT you will see that they use the same thing:
    class lcl_event_receiver definition.
      public section.
        methods handle_data_changed
          for event data_changed of cl_gui_alv_grid
          importing er_data_changed.
    class lcl_event_receiver implementation.
      method handle_data_changed.
        perform data_changed using er_data_changed.
      endmethod.
    form data_changed using  rr_data_changed type ref to
                                             cl_alv_changed_data_protocol.
      data: ls_mod_cells type lvc_s_modi.
      loop at rr_data_changed->mt_good_cells into ls_mod_cells.
        case ls_mod_cells-fieldname.
          when  'CARRID'.
    Itay

Maybe you are looking for