<?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: REFRESH ROW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974467#M1801113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using OOPS ALV, Have you tried with method 'Get_selected_rows' of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose your custom button UCOMM is 'SEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI module on Ok code = 'SEL' you can write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; alvgd is object of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;alvgd-&amp;gt;get_selected_rows&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_index_rows = lt_rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;lt_rows will returns all selected rows of your ALV final output. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Deependra&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 10:31:05 GMT</pubDate>
    <dc:creator>deependra_shekhawat3</dc:creator>
    <dc:date>2013-12-19T10:31:05Z</dc:date>
    <item>
      <title>REFRESH ROW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974466#M1801112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have ALV with customer button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/347086" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If i change the button option, the screen charge other information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/347133" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to have selected the second row of first screen and I push other option in button i lose this selection when i return to this screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/347165" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I get selected row without refresh when I change the button option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974466#M1801112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-19T10:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH ROW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974467#M1801113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using OOPS ALV, Have you tried with method 'Get_selected_rows' of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose your custom button UCOMM is 'SEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI module on Ok code = 'SEL' you can write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; alvgd is object of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;alvgd-&amp;gt;get_selected_rows&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_index_rows = lt_rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;lt_rows will returns all selected rows of your ALV final output. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Deependra&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974467#M1801113</guid>
      <dc:creator>deependra_shekhawat3</dc:creator>
      <dc:date>2013-12-19T10:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH ROW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974468#M1801114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i Use &lt;SPAN style="color: #333333; font-size: 12px;"&gt;method 'Get_selected_rows' of cl_gui_alv_grid&lt;/SPAN&gt; but this method don´t save the row pushed on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that if i select one row and change other option in custom button, when y return, the OO ALV has select the rows selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974468#M1801114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-19T10:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH ROW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974469#M1801115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can assume the button functionality you given. here when you are coming back to 2000, system is selecting the entries with 2000 value and populating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it is repopulating the table entries again and NOT just coming back to the previuos screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we want to highlight the particular line, then we need to handle event for the mouse selection and store the index value in a global variable. so when you select another type of entries , if the global index is having some value you can highlight that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will cause musch malfunction here, lets say we ar in alv for 2000 and selcted 2nd row, when we go for 2100 2nd row will be highlighted , again if we go to 2200 next again 2nd row will be high lighted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we cant do this by index, we can do this by layout, like 2000 layout, 2100 layout. but this is also possible if we knew how many values we are getting for the button. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i just want highlight one point that is, for us its like coming back to previuos screen, but for the system it is just another alv with another value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhaskar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974469#M1801115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-19T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH ROW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974470#M1801116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please paste code whatever you have written in PAI . As per my understanding in PAI event you can get selected row number .&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and as you suggested, when you return on screen you want those rows selected, for this you can use set_selected_rows in same event after get_selected_rows fires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;gr_alvgd-&amp;gt;set_selected_rows&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_index_rows = lt_rows.&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deependra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-row/m-p/9974470#M1801116</guid>
      <dc:creator>deependra_shekhawat3</dc:creator>
      <dc:date>2013-12-19T10:46:45Z</dc:date>
    </item>
  </channel>
</rss>

