<?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 Problem with Method GET SELECTED ROWS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777005#M38867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am expiriencing a strange problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am using ALV Grid on a normal dynpro. &lt;/P&gt;&lt;P&gt;The User can mark on ore more rows for a jump to another dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem as follows: when no row is marked, I make sure that a message is raised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SELECTED_ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: LT_ROWS, &amp;lt;A&amp;gt;, &amp;lt;B&amp;gt;.&lt;/P&gt;&lt;P&gt;  CALL METHOD G_ALV_GRID-&amp;gt;GET_SELECTED_ROWS&lt;/P&gt;&lt;P&gt;  IMPORTING ET_INDEX_ROWS = LT_ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE LT_ROWS.&lt;/P&gt;&lt;P&gt;  CASE SY-TFILL.&lt;/P&gt;&lt;P&gt;    WHEN 0.&lt;/P&gt;&lt;P&gt;      MESSAGE S398(00) WITH 'Please mark a row'.&lt;/P&gt;&lt;P&gt;      G_EXIT = 'X'.  "don't go on in PAI dynpro&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the Error-message is raised, and I mark a row again, the method GET SELECTED ROWS don't bring up any entries in LT_ROW. I already tried the method   CL_GUI_CFW=&amp;gt;FLUSH (before and after GET SELECTED ROWS), but nothing ist going on, the internal table is still empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Sep 2004 11:09:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-09-15T11:09:48Z</dc:date>
    <item>
      <title>Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777005#M38867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am expiriencing a strange problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am using ALV Grid on a normal dynpro. &lt;/P&gt;&lt;P&gt;The User can mark on ore more rows for a jump to another dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem as follows: when no row is marked, I make sure that a message is raised:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SELECTED_ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: LT_ROWS, &amp;lt;A&amp;gt;, &amp;lt;B&amp;gt;.&lt;/P&gt;&lt;P&gt;  CALL METHOD G_ALV_GRID-&amp;gt;GET_SELECTED_ROWS&lt;/P&gt;&lt;P&gt;  IMPORTING ET_INDEX_ROWS = LT_ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE LT_ROWS.&lt;/P&gt;&lt;P&gt;  CASE SY-TFILL.&lt;/P&gt;&lt;P&gt;    WHEN 0.&lt;/P&gt;&lt;P&gt;      MESSAGE S398(00) WITH 'Please mark a row'.&lt;/P&gt;&lt;P&gt;      G_EXIT = 'X'.  "don't go on in PAI dynpro&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the Error-message is raised, and I mark a row again, the method GET SELECTED ROWS don't bring up any entries in LT_ROW. I already tried the method   CL_GUI_CFW=&amp;gt;FLUSH (before and after GET SELECTED ROWS), but nothing ist going on, the internal table is still empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 11:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777005#M38867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T11:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777006#M38868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use the METHOD refresh_table_display during PBO? Because this sounds like a synchronization problems between the screen and the control on the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 11:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777006#M38868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777007#M38869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an event called 'DATA_CHANGED' which should be handy here. In any case, take a look at this program 'BCALV_TEST_GRID_EDITABLE' and I am sure you will be able to figure out the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 11:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777007#M38869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T11:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777008#M38870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was way tangent over there.... That was for the EDIT in ALV section..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THe program you should be looking is BCALV_GRID_05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if the issue is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 12:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777008#M38870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T12:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777009#M38871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, I don't use the REFRESH-Method...&lt;/P&gt;&lt;P&gt;should I ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 12:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777009#M38871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T12:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777010#M38872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this method should be used in case either the data has changed or methods have been used which change the display of grid, I think you should. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try if this helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 12:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777010#M38872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T12:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777011#M38873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well I'am impressed - what I didn't realised so far was taht every time a new instance of g_alv_grid was created. So i marked a row of g_alv_grid-&amp;lt;359&amp;gt;, but during get_selected_rows it was something like  g_alv_grid-&amp;lt;383&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 13:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777011#M38873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Method GET SELECTED ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777012#M38874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you have solved your problem. There are some actions clearing all selection and scrolling info. And since you every time create a new instance or call some method which clears your selections your selections table is lost.&lt;/P&gt;&lt;P&gt;For a screen session, you should use "set_table_for_first_display" for just once and for next PBO triggers you should execute the method "refresh_table_display".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 21:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-get-selected-rows/m-p/777012#M38874</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-09-15T21:49:11Z</dc:date>
    </item>
  </channel>
</rss>

