<?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 Adding value to Screen element Drop-down Box in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328946#M1031460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have prepared my Internal table.&lt;/P&gt;&lt;P&gt;Now I have to add the value of a particular field to the Screen Element which is drop down Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to add the values in that Drop-down box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 11:08:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-19T11:08:53Z</dc:date>
    <item>
      <title>Adding value to Screen element Drop-down Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328946#M1031460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have prepared my Internal table.&lt;/P&gt;&lt;P&gt;Now I have to add the value of a particular field to the Screen Element which is drop down Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to add the values in that Drop-down box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 11:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328946#M1031460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value to Screen element Drop-down Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328947#M1031461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPE-POOLS: VRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NAME TYPE VRM_ID,&lt;/P&gt;&lt;P&gt;LIST TYPE VRM_VALUES,&lt;/P&gt;&lt;P&gt;VALUE LIKE LINE OF LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME = 'PS_PARM'.&lt;/P&gt;&lt;P&gt;VALUE-KEY = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE-TEXT = 'LINE 1'.&lt;/P&gt;&lt;P&gt;APPEND VALUE TO LIST. VALUE-KEY = '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE-TEXT = 'LINE 2'.&lt;/P&gt;&lt;P&gt;APPEND VALUE TO LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE: / 'PARAMETER:', PS_PARM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details -&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIST BOX in SELECTION SCREEN&lt;/P&gt;&lt;P&gt;List Box is created in selection screen using PARAMETERS staement&lt;/P&gt;&lt;P&gt;with AS LISTBOX addition other attributes like VISIBLE LENGTH (width of listbox)&lt;/P&gt;&lt;P&gt;can be specified with the declaration.&lt;/P&gt;&lt;P&gt;PARAMETERS name(n) AS LISTBOX VISIBLE LENGTH n.&lt;/P&gt;&lt;P&gt;Here n is an integer and name is the name of parameter.&lt;/P&gt;&lt;P&gt;To populate the value list we use the FM VRM_SET_VALUES and the&lt;/P&gt;&lt;P&gt;selection screen event AT SELECTION-SCREEN OUTPUT is used to write the code to fill it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VRM_SET_VALUES &lt;/P&gt;&lt;P&gt;The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So&lt;/P&gt;&lt;P&gt;we should declare TYPE-POOLS VRM before using this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some important types declared in the VRM type group are&lt;/P&gt;&lt;P&gt;VRM_ID&lt;/P&gt;&lt;P&gt;It refers to the name of the input/output field associated with list box&lt;/P&gt;&lt;P&gt;VRM_VALUES&lt;/P&gt;&lt;P&gt;It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C&lt;/P&gt;&lt;P&gt;that will be used to create the list values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = name of screen element ,it is of TYPE VRM_ID&lt;/P&gt;&lt;P&gt;VALUES = internal table containing values,of TYPE VRM_VALUES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 13:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328947#M1031461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value to Screen element Drop-down Box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328948#M1031462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using your code, the list is showing on the Drop down but i am not able to make any selection from that.&lt;/P&gt;&lt;P&gt;When i select any value, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It comes blank in drop down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 13:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-value-to-screen-element-drop-down-box/m-p/4328948#M1031462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T13:33:27Z</dc:date>
    </item>
  </channel>
</rss>

