<?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: editable alv. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015518#M1497323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ibrahim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New to OOPS.Do you have a sample cade which I can go thorugh.&lt;/P&gt;&lt;P&gt;Can't we do without using OOPS ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 12:28:43 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2010-06-02T12:28:43Z</dc:date>
    <item>
      <title>editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015516#M1497321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had created an editable alv where I am having a blank field where the user will enter the data.And when hitting SAVE I want to capture this data in the alv grid back into the program for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

form list1 using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
  case r_ucomm.

    when '&amp;amp;IC1'.

      if rs_selfield-fieldname = 'MATNR'.
        read table it_final index rs_selfield-tabindex.
        set parameter id 'MAT' field it_final-matnr.
        call transaction 'MM03' and skip first screen.
      endif.

  when '&amp;amp;SAVE'.
      rs_SELFIELD-REFRESH = 'X'.
      loop at it_final.
      if it_final-chk = 'X'.
      modify it_final index sy-tabix transporting chk incident.
      endif.
      endloop.
endform
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the CHK as X but not the value that I am entering in the  incident (field name) at ALV gird.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 12:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015516#M1497321</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2010-06-02T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015517#M1497322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call the method check_changed_data of class cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The changes done on the editable alv will be copied in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : obj1 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object obj1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for e.g. call method obj1-&amp;gt;check_changed_data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 12:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015517#M1497322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015518#M1497323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ibrahim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New to OOPS.Do you have a sample cade which I can go thorugh.&lt;/P&gt;&lt;P&gt;Can't we do without using OOPS ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 12:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015518#M1497323</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2010-06-02T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015519#M1497324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;  when '&amp;amp;SAVE'.&lt;/P&gt;&lt;P&gt;      loop at it_final where chk = 'X'.&lt;/P&gt;&lt;P&gt;         modify it_final index sy-tabix transporting chk incident.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      rs_SELFIELD-REFRESH = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 12:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015519#M1497324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T12:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015520#M1497325</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 think the problem is with the modify it_final sy-tabic.&lt;/P&gt;&lt;P&gt;if you want to modify only one line which is slected then &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at it_final where chk = 'X'.&lt;/P&gt;&lt;P&gt;       modify it_final  transporting where chk = 'X'. &lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if multipul lines is selected then:&lt;/P&gt;&lt;P&gt;loop at it_final where chk = 'X'.&lt;/P&gt;&lt;P&gt;       modify it_final  transporting where chk = 'X' and&lt;/P&gt;&lt;P&gt;                                                                field1 = it_final-feild1 and&lt;/P&gt;&lt;P&gt;                                                                field2 = it_final-feild2. &lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem, but resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 12:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015520#M1497325</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2010-06-02T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015521#M1497326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it not possible without OOPS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 13:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015521#M1497326</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2010-06-02T13:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: editable alv.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015522#M1497327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            e_grid = ref_grid.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF NOT ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;        CALL METHOD ref_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above set of code met my requirement of capturing the data that is changed by the user  in the alv gird  and using it for further processing within the program.Thanks to SDN wiki.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 14:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/7015522#M1497327</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2010-06-03T14:21:19Z</dc:date>
    </item>
  </channel>
</rss>

