<?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 distinct value dropdown list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423880#M822310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,  how do i pull the distinct value from the database table into the dropdown list? &lt;/P&gt;&lt;P&gt;my database table have 2 columns: program id and program code. how can i pull the first line of code of every program and populate them inside the dropdown list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give code sample.&lt;/P&gt;&lt;P&gt;thanks. &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 08:48:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-14T08:48:55Z</dc:date>
    <item>
      <title>distinct value dropdown list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423880#M822310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,  how do i pull the distinct value from the database table into the dropdown list? &lt;/P&gt;&lt;P&gt;my database table have 2 columns: program id and program code. how can i pull the first line of code of every program and populate them inside the dropdown list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give code sample.&lt;/P&gt;&lt;P&gt;thanks. &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423880#M822310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: distinct value dropdown list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423881#M822311</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;Use &lt;/P&gt;&lt;P&gt;SELECT DISTINCT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423881#M822311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: distinct value dropdown list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423882#M822312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it doesn't work. right now in my table,  i have 14 programs inside (each containing many lines of codes) and the program id for the program is distinct (each program have different id). how can i get the first line of code from each program and display in the dropdown list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423882#M822312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: distinct value dropdown list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423883#M822313</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;U need to declare the structure to transfer the data to be displayed in the dropdown list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS VRM.
DATA: NAME    TYPE VRM_ID,
          LIST    TYPE VRM_VALUES,
          VALUE   LIKE LINE OF LIST.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a PROCESS ON VALUE-REQUEST, you need to populate it with the data you want to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REFRESH LIST.
NAME = &amp;lt;OUTPUT FIELD NAME&amp;gt;.
* Get the values:
SELECT * FROM &amp;lt;TABLE&amp;gt;  WHERE ....
   VALUE-KEY  = &amp;lt;PROGRAM CODE&amp;gt;.
   VALUE-TEXT = &amp;lt;PROGRAM NAME&amp;gt;.
    APPEND VALUE TO LIST.
 ENDSELECT.

  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            ID     = NAME
            VALUES = LIST.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an sample only, how to populate the internal table LIST depends on where you have stored the program name and code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423883#M822313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: distinct value dropdown list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423884#M822314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do i put for the program code and program name? i want it to retrieve from database and display accordingly..but isn't this hard coding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 09:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/distinct-value-dropdown-list/m-p/3423884#M822314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T09:23:27Z</dc:date>
    </item>
  </channel>
</rss>

