<?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: issue with oops alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823883#M1470572</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;In order to get the selected row in the alv table you have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say first alv is displayed the data from an iternal table ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this code in CASE SY-UCOMM &lt;/P&gt;&lt;P&gt;When user click Change or modify button then write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;rows TYPE lvc_t_row,&lt;/P&gt;&lt;P&gt;row_id TYPE lvc_t_roid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_index_rows = rows&lt;/P&gt;&lt;P&gt;et_row_no = row_id.&lt;/P&gt;&lt;P&gt;LOOP AT row_id INTO w_row.&lt;/P&gt;&lt;P&gt;here assign the details of selected to row in a table to temporary internal table ITAB2&lt;/P&gt;&lt;P&gt;and when pop up displays show this internal table data in ALV table 2 as edit mode.&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second ALV where it displays the selected records, after modifying records &lt;/P&gt;&lt;P&gt;use the same method get_selected_rows  and modify internal table then finally before comming to basic alv list&lt;/P&gt;&lt;P&gt;modify the first internal table ITAB1 with the modified internal table ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in Last PAI module in every list it is very important to refresh the container and grid&lt;/P&gt;&lt;P&gt;c_container-&amp;gt;free( ).&lt;/P&gt;&lt;P&gt;r_grid-&amp;gt;free( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helped!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 04:52:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-14T04:52:20Z</dc:date>
    <item>
      <title>issue with oops alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823881#M1470570</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 am displaying out put on oops alv.&lt;/P&gt;&lt;P&gt;then if user select a line item on out put i have to do calll some pop up alv and then  populate some checked item to &lt;/P&gt;&lt;P&gt;oops alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after doing modify th eoops alv i am not able to see selected item in the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to be short&lt;/P&gt;&lt;P&gt;on second alv selected item to be populated to fist alv.&lt;/P&gt;&lt;P&gt;then whatever changes it reflect in fist alv..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wht i ahv eto do?&lt;/P&gt;&lt;P&gt;please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to refresh alv or call method refresh alv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 17:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823881#M1470570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T17:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: issue with oops alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823882#M1470571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1° update your table with the selected table....&lt;/P&gt;&lt;P&gt;2° Refresh the second alv :   CALL METHOD alv2-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 17:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823882#M1470571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T17:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: issue with oops alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823883#M1470572</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;In order to get the selected row in the alv table you have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say first alv is displayed the data from an iternal table ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this code in CASE SY-UCOMM &lt;/P&gt;&lt;P&gt;When user click Change or modify button then write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;rows TYPE lvc_t_row,&lt;/P&gt;&lt;P&gt;row_id TYPE lvc_t_roid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_index_rows = rows&lt;/P&gt;&lt;P&gt;et_row_no = row_id.&lt;/P&gt;&lt;P&gt;LOOP AT row_id INTO w_row.&lt;/P&gt;&lt;P&gt;here assign the details of selected to row in a table to temporary internal table ITAB2&lt;/P&gt;&lt;P&gt;and when pop up displays show this internal table data in ALV table 2 as edit mode.&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second ALV where it displays the selected records, after modifying records &lt;/P&gt;&lt;P&gt;use the same method get_selected_rows  and modify internal table then finally before comming to basic alv list&lt;/P&gt;&lt;P&gt;modify the first internal table ITAB1 with the modified internal table ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in Last PAI module in every list it is very important to refresh the container and grid&lt;/P&gt;&lt;P&gt;c_container-&amp;gt;free( ).&lt;/P&gt;&lt;P&gt;r_grid-&amp;gt;free( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helped!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 04:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823883#M1470572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T04:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: issue with oops alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823884#M1470573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 09:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-oops-alv/m-p/6823884#M1470573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-10T09:08:41Z</dc:date>
    </item>
  </channel>
</rss>

