<?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 USER_COMMAND Subroutine in ALV Grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217020#M1716912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say the ouput of my ALV report displays 10 fields based on the selection criteria entered. Each row has two editable rows (in other words the report has two editable columns). Now I want to edit 2nd, 5th and 8th rows. How do I need to capture the edited rows into an internal table at run-time using RS_SELFIELD? I am using FM REUSE_ALV_GRID_DISPLAY. Please suggest me a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 06:55:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-03T06:55:09Z</dc:date>
    <item>
      <title>USER_COMMAND Subroutine in ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217020#M1716912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say the ouput of my ALV report displays 10 fields based on the selection criteria entered. Each row has two editable rows (in other words the report has two editable columns). Now I want to edit 2nd, 5th and 8th rows. How do I need to capture the edited rows into an internal table at run-time using RS_SELFIELD? I am using FM REUSE_ALV_GRID_DISPLAY. Please suggest me a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 06:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217020#M1716912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: USER_COMMAND Subroutine in ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217021#M1716913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right this moment, I can think in this way - &lt;/P&gt;&lt;P&gt;The internal table for the list output is IT_OUTPUT. We know which two columns are editable. Now before calling the FM REUSE_ALV_GRID_DISPLAY, Pass the entire table content from IT_OUTPUT to another Internal Table IT_OUTPUT_P. Now display the List Output and make the necessary changes in the list. The IT_OUTPUT table is now with the modified values in those editable columns. Now compare the IT_OUTPUT_P with IT_OUTPUT table for those two editable columns. Then we can have the exact row numbers where the modifications have made.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 07:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217021#M1716913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T07:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: USER_COMMAND Subroutine in ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217022#M1716914</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;When you are using USER_COMMAND event, after double click on the report output,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row number is stored in structure 'rs_selfield-tabindex'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check wether it is 2nd, 5th or 8th row as per your consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is there then use 'slis_fieldcat_alv-edit' field and pass 'X' to it in order to edit that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rs_selfield-tabindex EQ 2 or rs_selfield-tabindex EQ 5 or rs_selfield-tabindex EQ 8.&lt;/P&gt;&lt;P&gt;slis_fieldcat_alv-edit = 'X'.&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;Thanks,&lt;/P&gt;&lt;P&gt;Govind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 07:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-subroutine-in-alv-grid/m-p/9217022#M1716914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T07:49:16Z</dc:date>
    </item>
  </channel>
</rss>

