<?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: Listbox weird behavior in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026370#M415436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put it on the MODULE PBO OUTPUT but still the same.   =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply &amp;lt;b&amp;gt;Vasanth.&amp;lt;/b&amp;gt; I appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 15:02:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-09T15:02:00Z</dc:date>
    <item>
      <title>Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026366#M415432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have listbox DD1 and I populated that with SPFLI-CITYFROM data. I used SELECT DISTINCT statement so that it will not repeat same entry on my list box. It was successful but then on the 2nd time and on the succeeding times you click on the listbox (trying to select other item), the listbox shows all the city entries from the SPFLI-CITYFROM. The SELECT DISTINCT takes effect only at first because as I have said on the 2nd and succeeding times you click the listbox, it will show you all entries of  SPFLI-CITYFROM data. why is that? i dont understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im sorry if i sound so dumb. im a newbie. big thanks to all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_________________________________&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: VRM.
DATA: VALUE TYPE VRM_VALUES WITH HEADER LINE.

DATA: DD1(20).
DATA: INT_SPFLI TYPE STANDARD TABLE OF SPFLI WITH HEADER LINE.

SELECT DISTINCT CITYFROM FROM SPFLI INTO CORRESPONDING FIELDS OF TABLE INT_SPFLI.

START-OF-SELECTION.
  SET SCREEN 100.

MODULE PBO OUTPUT.
  LOOP AT INT_SPFLI.
    VALUE-KEY = INT_SPFLI-CITYFROM.
    APPEND VALUE.
  ENDLOOP.

   CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
          ID     = 'DD1'
          VALUES = VALUE[].
ENDMODULE.

MODULE PAI INPUT.
  CASE SY-UCOMM.
    WHEN 'BTNEXIT'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 14:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026366#M415432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026367#M415433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put he select &lt;/P&gt;&lt;P&gt;SELECT DISTINCT CITYFROM FROM SPFLI INTO CORRESPONDING FIELDS OF TABLE INT_SPFLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the screen,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 14:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026367#M415433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026368#M415434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refresh the table before selecting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REFRESH INT_SPFLI.&lt;/P&gt;&lt;P&gt;clear INT_SPFLI.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT CITYFROM FROM SPFLI INTO CORRESPONDING FIELDS OF TABLE INT_SPFLI.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 14:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026368#M415434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026369#M415435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 
MODULE PBO OUTPUT.
 
 clear value.  refresh value.         " &amp;lt;-  RIGHT HERE

  LOOP AT INT_SPFLI.
    VALUE-KEY = INT_SPFLI-CITYFROM.
    APPEND VALUE.
  ENDLOOP.
 
   CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
          ID     = 'DD1'
          VALUES = VALUE[].
ENDMODULE.
 


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarsd,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 14:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026369#M415435</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-09T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026370#M415436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put it on the MODULE PBO OUTPUT but still the same.   =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply &amp;lt;b&amp;gt;Vasanth.&amp;lt;/b&amp;gt; I appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026370#M415436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026371#M415437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually if we want to be efficient, you should only get the data and build the value table once in the start of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

type-pools: vrm.
data: value type vrm_values with header line.

data: dd1(20).
data: int_spfli type standard table of spfli with header line.

initialization.

select distinct cityfrom from spfli
        into corresponding fields of table int_spfli.
  loop at int_spfli.
    value-key = int_spfli-cityfrom.
    append value.
  endloop.

start-of-selection.
  set screen 100.

module pbo output.


   call function 'VRM_SET_VALUES'
    exporting
          id     = 'DD1'
          values = value[].
endmodule.

module pai input.
  case sy-ucomm.
    when 'BTNEXIT'.
      leave program.
  endcase.
endmodule.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 15:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026371#M415437</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-09T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox weird behavior</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026372#M415438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &amp;lt;b&amp;gt;Rich Heilman&amp;lt;/b&amp;gt;. it solved my issue! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks also to &amp;lt;b&amp;gt;Chandrasekhar&amp;lt;/b&amp;gt;. I appreciate your effort. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;thanks guys! &amp;lt;/b&amp;gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 15:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-weird-behavior/m-p/2026372#M415438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T15:10:03Z</dc:date>
    </item>
  </channel>
</rss>

