<?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: column editable mode using factory method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626942#M1664451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DEFINITION part as follow:
 METHODS handle_user_command
        FOR EVENT user_command OF cl_gui_alv_grid
        IMPORTING
             e_ucomm.

IMPLEMENTATION Part as follow: 

METHOD handle_user_command.
    DATA: wr_data_changed TYPE REF TO cl_alv_changed_data_protocol.
    DATA: lt_rows TYPE lvc_t_row,
          lt_index TYPE  lvc_s_row-index.

    CASE e_ucomm.
      WHEN 'EDIT'.
        PERFORM change_alv_row.
*        MESSAGE 'THIS IS A EDIT BUTTON' TYPE 'I'.
        CALL METHOD o_ref_grid-&amp;gt;refresh_table_display.

FORM change_alv_row .
  DATA: i_row_table TYPE lvc_t_roid,
        i_row TYPE lvc_t_row,
        s_row TYPE lvc_s_row.

  CALL METHOD o_ref_grid-&amp;gt;get_selected_rows
    IMPORTING
      et_index_rows = i_row
      et_row_no     = i_row_table.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  LOOP AT i_row INTO s_row.
*  LOOP AT i_display INTO w_display WHERE pick = 'X'.
    READ TABLE i_display INTO w_display INDEX s_row-index.
    IF sy-subrc = 0.
      PERFORM get_values_for_alv.
    ENDIF.
*  ENDLOOP.
  ENDLOOP.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 12:00:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-29T12:00:29Z</dc:date>
    <item>
      <title>column editable mode using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626941#M1664450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell the solution of my problem . i am using factory method to display basic list . in the basic list i want to display in one column editable mode . which method should i call for respect reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope you understand my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;venkat rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 11:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626941#M1664450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T11:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: column editable mode using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626942#M1664451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DEFINITION part as follow:
 METHODS handle_user_command
        FOR EVENT user_command OF cl_gui_alv_grid
        IMPORTING
             e_ucomm.

IMPLEMENTATION Part as follow: 

METHOD handle_user_command.
    DATA: wr_data_changed TYPE REF TO cl_alv_changed_data_protocol.
    DATA: lt_rows TYPE lvc_t_row,
          lt_index TYPE  lvc_s_row-index.

    CASE e_ucomm.
      WHEN 'EDIT'.
        PERFORM change_alv_row.
*        MESSAGE 'THIS IS A EDIT BUTTON' TYPE 'I'.
        CALL METHOD o_ref_grid-&amp;gt;refresh_table_display.

FORM change_alv_row .
  DATA: i_row_table TYPE lvc_t_roid,
        i_row TYPE lvc_t_row,
        s_row TYPE lvc_s_row.

  CALL METHOD o_ref_grid-&amp;gt;get_selected_rows
    IMPORTING
      et_index_rows = i_row
      et_row_no     = i_row_table.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  LOOP AT i_row INTO s_row.
*  LOOP AT i_display INTO w_display WHERE pick = 'X'.
    READ TABLE i_display INTO w_display INDEX s_row-index.
    IF sy-subrc = 0.
      PERFORM get_values_for_alv.
    ENDIF.
*  ENDLOOP.
  ENDLOOP.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 12:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626942#M1664451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: column editable mode using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626943#M1664452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at&lt;/P&gt;&lt;P&gt;-  &lt;SPAN __jive_macro_name="thread" id="733872"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- [Power of ABAP Objects: Overcome the Restrictions of SALV Model|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12187]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 12:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626943#M1664452</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-02-29T12:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: column editable mode using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626944#M1664453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sorry to say i am not using cl_gui_alv_grid . i am using factory method cl_salv_table class. could you please tell me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;editable column in basic list  regarding this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;venkat rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 13:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626944#M1664453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: column editable mode using factory method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626945#M1664454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't get sidetracked by posters who write about something else....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raymond gave you the answer....SALV is, &lt;STRONG&gt;by design&lt;/STRONG&gt;, not editable.  I recommend using the OO ALV version when you have this kind of need.  SALV is a great "wrapper" for OO ALV for reporting....it's not the fix for everything.  You can easily accomplish what you want in OO ALV, or you can refer to Raymond's link to N. Patel's excellent work on using OO to overcome SALV limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 13:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/column-editable-mode-using-factory-method/m-p/8626945#M1664454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T13:14:40Z</dc:date>
    </item>
  </channel>
</rss>

