<?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: Input Fields in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017755#M80489</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;You can do editable alv using set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct_grid_lset TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;i_grid_fcat TYPE lvc_t_fcat&lt;/P&gt;&lt;P&gt;DATA ls_fcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;ls_fcat-fieldname = 'DATE'.&lt;/P&gt;&lt;P&gt;ls_fcat-ref_table = 'TYPE'.&lt;/P&gt;&lt;P&gt;ls_fcat-ref_field = 'C'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ls_fcat-edit = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ls_fcat-coltext = text-030."Date&lt;/P&gt;&lt;P&gt;ls_fcat-seltext = text-030.&lt;/P&gt;&lt;P&gt;APPEND ls_fcat TO p_i_grid_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD o_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_bypassing_buffer = space&lt;/P&gt;&lt;P&gt;is_variant = ws_f_grid_disvar&lt;/P&gt;&lt;P&gt;i_save = ws_c_grid_save&lt;/P&gt;&lt;P&gt;is_layout = struct_grid_lset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_grid_outs[]&lt;/P&gt;&lt;P&gt;it_fieldcatalog = i_grid_fcat[]&lt;/P&gt;&lt;P&gt;it_sort = i_sort_fcat. " Period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Check this code.Another way using field symbols.&lt;/P&gt;&lt;P&gt;i_fieldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;w_layout TYPE lvc_s_layo ,&lt;/P&gt;&lt;P&gt;w_variant TYPE disvariant.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;lfs_fieldcat&amp;gt; TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;*Default display&lt;/P&gt;&lt;P&gt;LOOP AT p_fieldcat ASSIGNING &amp;lt;lfs_fieldcat&amp;gt;.&lt;/P&gt;&lt;P&gt;CASE &amp;lt;lfs_fieldcat&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;WHEN 'DATE'.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-coltext = text-050.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-no_out = ' '.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-scrtext_l = text-050.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;b&amp;gt;lfs_fieldcat&amp;gt;-edit = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2005 09:51:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-29T09:51:15Z</dc:date>
    <item>
      <title>Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017747#M80481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I displayed a ALV list wich some fields ready for input.&lt;/P&gt;&lt;P&gt;The problem I'm facing is, when I enter a value in, for example TEXT ITEM, I can easly catch the new value. &amp;lt;b&amp;gt;But&amp;lt;/b&amp;gt; when I change a field wich is DATE FORMAT i don't see the changes and therefore can't update the value in my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017747#M80481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017748#M80482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;            I hope you are might using the event data_changed where you will be getting a object er_data_changed an object of cl_alv_changed_protocol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which has a table mt_mod_cells which will have the changed or inserted records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017748#M80482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017749#M80483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I'm using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017749#M80483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017750#M80484</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;You should be using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING&lt;/P&gt;&lt;P&gt;  er_data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the Handle_Data_changed method, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the methods get_cell_value exporting ls_mod_cell-row_id to get the changed value and validate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017750#M80484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017751#M80485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But that means that I should change my program from using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY to CALL METHOD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017751#M80485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017752#M80486</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;How do you do to find out the new value is wroten in your ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017752#M80486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017753#M80487</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; I dont know who to do it without Call Method. Please go to Se80 -&amp;gt; Packages -&amp;gt; SLIS. In that , look out for an example program BCALV_EDIT_03. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017753#M80487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017754#M80488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you can't get the user inputted from ALV?&lt;/P&gt;&lt;P&gt;have you tried this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
LC_GLAY TYPE LVC_S_GLAY.
 
* this is the critical point 
LC_GLAY-EDT_CLL_CB = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
       I_GRID_SETTINGS = LC_GLAY
       IT_FIELDCAT = L_ALV_FILEDCAT
     TABLES
       T_OUTTAB = ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will be helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 03:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017754#M80488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T03:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Input Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017755#M80489</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;You can do editable alv using set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct_grid_lset TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;i_grid_fcat TYPE lvc_t_fcat&lt;/P&gt;&lt;P&gt;DATA ls_fcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;ls_fcat-fieldname = 'DATE'.&lt;/P&gt;&lt;P&gt;ls_fcat-ref_table = 'TYPE'.&lt;/P&gt;&lt;P&gt;ls_fcat-ref_field = 'C'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ls_fcat-edit = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ls_fcat-coltext = text-030."Date&lt;/P&gt;&lt;P&gt;ls_fcat-seltext = text-030.&lt;/P&gt;&lt;P&gt;APPEND ls_fcat TO p_i_grid_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD o_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_bypassing_buffer = space&lt;/P&gt;&lt;P&gt;is_variant = ws_f_grid_disvar&lt;/P&gt;&lt;P&gt;i_save = ws_c_grid_save&lt;/P&gt;&lt;P&gt;is_layout = struct_grid_lset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_grid_outs[]&lt;/P&gt;&lt;P&gt;it_fieldcatalog = i_grid_fcat[]&lt;/P&gt;&lt;P&gt;it_sort = i_sort_fcat. " Period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Check this code.Another way using field symbols.&lt;/P&gt;&lt;P&gt;i_fieldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;w_layout TYPE lvc_s_layo ,&lt;/P&gt;&lt;P&gt;w_variant TYPE disvariant.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;lfs_fieldcat&amp;gt; TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;*Default display&lt;/P&gt;&lt;P&gt;LOOP AT p_fieldcat ASSIGNING &amp;lt;lfs_fieldcat&amp;gt;.&lt;/P&gt;&lt;P&gt;CASE &amp;lt;lfs_fieldcat&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;WHEN 'DATE'.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-coltext = text-050.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-no_out = ' '.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-scrtext_l = text-050.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;b&amp;gt;lfs_fieldcat&amp;gt;-edit = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 09:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-fields-in-alv/m-p/1017755#M80489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T09:51:15Z</dc:date>
    </item>
  </channel>
</rss>

