<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validation required on CELL in ALV using OOPs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670747#M1289501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register the DATA_CHANGED event of the ALV GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set a handler method for the same.&lt;/P&gt;&lt;P&gt;In the handler method fetch the required value and use the er_data_changed-&amp;gt;modify_cell method to modify the particular cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;Suppose I have my grid Y_V_ROLEGRID.&lt;/P&gt;&lt;P&gt;I am registering the event MC_EVT_MODIFIED.&lt;/P&gt;&lt;P&gt;I am creating a handler Y_OBJ_ROLE_EVT_HANDLER and hanlding it via the method Y_M_HANDLE_ROLE_CELL_MODIFIED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD y_v_rolegrid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.

    CREATE OBJECT  y_obj_role_evt_handler.

    SET HANDLER y_obj_role_evt_handler-&amp;gt;y_m_handle_role_cell_modified
    FOR y_v_rolegrid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_obj_role_evt_handler is of type yobj_evnt_handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in the handler class is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS  yobj_evnt_handler DEFINITION.

  PUBLIC SECTION.

    METHODS y_m_handle_role_cell_modified
    FOR EVENT data_changed OF cl_gui_alv_grid
    IMPORTING er_data_changed
              e_onf4
              e_onf4_before
              e_onf4_after
              e_ucomm.
ENDCLASS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The implementation is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS yobj_evnt_handler IMPLEMENTATION.
  METHOD y_m_handle_role_cell_modified.


    y_i_mod_cell = er_data_changed-&amp;gt;mt_mod_cells.

    LOOP AT y_i_mod_cell INTO y_wa_mod_cell
    WHERE fieldname EQ y_k_username.

            CALL METHOD er_data_changed-&amp;gt;modify_cell
              EXPORTING
                i_row_id    = y_wa_mod_cell-row_id
                i_tabix     = y_wa_mod_cell-tabix
                i_fieldname = y_wa_mod_cell-fieldname
                i_value     = space.

  ENDLOOP.
  ENDMETHOD.
ENDCLASS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not pasted the entire code but I hope you will be able to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 07:18:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T07:18:08Z</dc:date>
    <item>
      <title>Validation required on CELL in ALV using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670746#M1289500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt; I am using class CL_GUI_ALV_GRID to show the data in ALV.&lt;/P&gt;&lt;P&gt;In ALV on editable field is there to enter EBELN.&lt;/P&gt;&lt;P&gt;When i enter any value in that field and press 'ENTER', it shold fetch the LIFNR from EKKO and shows that in very next field in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me in which EVENT of CL_GUI_ALV_GRID should i write the code??&lt;/P&gt;&lt;P&gt;remember, i want this logic while  i press ENTER or AFTER SELECTING FROM F4 DROP DOWN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 06:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670746#M1289500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Validation required on CELL in ALV using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670747#M1289501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register the DATA_CHANGED event of the ALV GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set a handler method for the same.&lt;/P&gt;&lt;P&gt;In the handler method fetch the required value and use the er_data_changed-&amp;gt;modify_cell method to modify the particular cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;Suppose I have my grid Y_V_ROLEGRID.&lt;/P&gt;&lt;P&gt;I am registering the event MC_EVT_MODIFIED.&lt;/P&gt;&lt;P&gt;I am creating a handler Y_OBJ_ROLE_EVT_HANDLER and hanlding it via the method Y_M_HANDLE_ROLE_CELL_MODIFIED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD y_v_rolegrid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.

    CREATE OBJECT  y_obj_role_evt_handler.

    SET HANDLER y_obj_role_evt_handler-&amp;gt;y_m_handle_role_cell_modified
    FOR y_v_rolegrid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_obj_role_evt_handler is of type yobj_evnt_handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in the handler class is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS  yobj_evnt_handler DEFINITION.

  PUBLIC SECTION.

    METHODS y_m_handle_role_cell_modified
    FOR EVENT data_changed OF cl_gui_alv_grid
    IMPORTING er_data_changed
              e_onf4
              e_onf4_before
              e_onf4_after
              e_ucomm.
ENDCLASS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The implementation is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS yobj_evnt_handler IMPLEMENTATION.
  METHOD y_m_handle_role_cell_modified.


    y_i_mod_cell = er_data_changed-&amp;gt;mt_mod_cells.

    LOOP AT y_i_mod_cell INTO y_wa_mod_cell
    WHERE fieldname EQ y_k_username.

            CALL METHOD er_data_changed-&amp;gt;modify_cell
              EXPORTING
                i_row_id    = y_wa_mod_cell-row_id
                i_tabix     = y_wa_mod_cell-tabix
                i_fieldname = y_wa_mod_cell-fieldname
                i_value     = space.

  ENDLOOP.
  ENDMETHOD.
ENDCLASS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not pasted the entire code but I hope you will be able to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670747#M1289501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Validation required on CELL in ALV using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670748#M1289502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define an event handler method (e.g. HANDLE_DATA_CHANGED) for the event DATA_CHANGED.&lt;/P&gt;&lt;P&gt;However, I do not recommend to make the update of the LIFNR column within this method because there is a much simpler way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD handle_data_changed.

" Just trigger PAI of the dynpro by calling:
  CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code
    IMPORTING
      ok_code = 'REFRESH'.

ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After finishing method HANDLE_DATA_CHANGED the program will jump to the PAI section of your screen. Importantly, your OUTTAB itab contains now already the changed EBELN value and you have a defined OK-code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE user_command_0100. " PAI

  case gd_okcode.
    WHEN '...'.

    WHEN 'REFRESH'.
      PERFORM update_list.  " routine which updates LIFNR column
    WHEN OTHERS
    ENDCASE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details you may have a look at my blog:&lt;/P&gt;&lt;P&gt;[A Christmas Collection of Useful Classes|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12377] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670748#M1289502</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-05-28T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Validation required on CELL in ALV using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670749#M1289503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;font color="Black"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Refer the following code. This is the exact way you want to do. I took this sample code from program BCALV_GRID_EDIT. it will give all the information and it will fulfill your requirement.&lt;/P&gt;&lt;P&gt;any clarification please ask. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/font&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;font color="Blue"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;TOP Module. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;class lcl_event_receiver definition deferred. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;data: event_receiver type ref to lcl_event_receiver.    &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS LCL_EVENT_RECEIVER DEFINITION &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_event_receiver definition. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  public section. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;    methods handle_data_changed &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;      for event data_changed of cl_gui_alv_grid &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;      importing er_data_changed. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;    methods handle_f4 &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;      for event onf4 of cl_gui_alv_grid &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;      importing e_fieldname &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                es_row_no &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                er_event_data &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                et_bad_cells. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;endclass. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++ &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;perform Module. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_event_receiver IMPLEMENTATION &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_event_receiver implementation. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  method handle_data_changed. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;    perform data_changed using er_data_changed. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  endmethod. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  method handle_f4. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;    perform f4 using e_fieldname &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                     es_row_no &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                     er_event_data &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                     et_bad_cells. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  endmethod. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;endclass. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  data_changed &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form data_changed using  rr_data_changed type ref to &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                                         cl_alv_changed_data_protocol. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: ls_mod_cells type lvc_s_modi. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: ls_cells type lvc_s_modi. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: l_carrid type sflight-carrid. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: l_seats  type sflight-seatsocc. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: l_curr  type sflight-currency. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: l_seatsmax  type sflight-seatsmax. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: ls_sflight like gt_sflight1. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: ls_tcurc like tcurc.                                "#EC NEEDED &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  loop at rr_data_changed-&amp;gt;mt_good_cells into ls_mod_cells. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;    case ls_mod_cells-fieldname. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;      when  'CARRID'. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;        call method rr_data_changed-&amp;gt;get_cell_value &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                       exporting i_row_id = ls_mod_cells-row_id &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                                 i_fieldname = ls_mod_cells-fieldname &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                       importing e_value = l_carrid. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;        select single * &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;          into corresponding fields of ls_sflight &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;          from ( sflight left join scarr &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;            on sflight&lt;SUB&gt;carrid = scarr&lt;/SUB&gt;carrid ) &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;         where sflight~carrid = l_carrid. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;       if sy-subrc eq 0. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;          call method rr_data_changed-&amp;gt;modify_cell &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                    exporting i_row_id = ls_mod_cells-row_id &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                              i_fieldname = 'CARRNAME' &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;                              i_value     = ls_sflight-carrname. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;        endif. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;    endcase. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  endloop. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;endform. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  F4 &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt; &amp;lt;br /&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f4 using r_fieldname type lvc_fname &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;              rs_row_no type lvc_s_roid &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;              rr_event_data type ref to cl_alv_event_data &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;              rt_bad_cells type lvc_t_modi.                 "#EC * &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  field-symbols: &amp;lt;lt_f4&amp;gt; type lvc_t_modi. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  data: ls_f4 type lvc_s_modi. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  assign rr_event_data-&amp;gt;m_data-&amp;gt;* to &amp;lt;lt_f4&amp;gt;. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  ls_f4-fieldname = r_fieldname. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  ls_f4-row_id = rs_row_no-row_id. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  ls_f4-value = 'BLUBBER'. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  append ls_f4 to &amp;lt;lt_f4&amp;gt;. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  rr_event_data-&amp;gt;m_event_handled = 'X'. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;endform. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++ &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;PBO Module. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;create object event_receiver. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;set handler event_receiver-&amp;gt;handle_data_changed for grid1. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;set handler event_receiver-&amp;gt;handle_f4 for grid1. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;call method grid1-&amp;gt;register_f4_for_fields &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  exporting it_f4 = gt_f4. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;call method grid1-&amp;gt;register_edit_event &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;  exporting i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified. &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/font&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670749#M1289503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Validation required on CELL in ALV using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670750#M1289504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 09:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-required-on-cell-in-alv-using-oops/m-p/5670750#M1289504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T09:16:04Z</dc:date>
    </item>
  </channel>
</rss>

