<?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 for Select Options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108774#M440417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this.  You can't use SELECT-OPTIONS, but you can use the PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

tables: vbak.

ranges: r_augru for vbak-augru.

selection-screen begin of line.
selection-screen comment 1(15) label.
parameters: p_augrul like vbak-augru visible length 10 as listbox.
selection-screen comment 40(15) to.
parameters: p_augruh like vbak-augru visible length 10 as listbox.
selection-screen end of line.

at selection-screen output.
  label = 'Order Reason'.
  to  = 'To'.


start-of-selection.

  r_augru-sign = 'I'.
  if p_augruh is initial.
    r_augru-option = 'EQ'.
  else.
    r_augru-option = 'BT'.
  endif.
  if p_augrul is initial.
    r_augru-low  = p_augrul.
  endif.
  if p_augruh is initial.
    r_augru-high = p_augruh.
  endif.
  append r_augru.

&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>Tue, 03 Apr 2007 20:44:49 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-04-03T20:44:49Z</dc:date>
    <item>
      <title>Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108768#M440411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement to have the field Order Reason (VBAK-AUGRU) in the selection screen. The problem is, the user wants it to be set-up similar to the field in the sales order. I can do it, but it is only a parameter, not a select-options. IS it possibel to create a list box in the selection screen with select options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 03:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108768#M440411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T03:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108769#M440412</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;Define like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_augru LIKE vbak-augru VISIBLE LENGTH 10 AS LISTBOX.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your description is long and you can not see whole description for some of the values, just increase the value of VISIBLE LENGTH accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maximum of description for "order reason" is 40 character. You can define VISIBLE LENGTH as '40' if you are not sure if in future there will be description of lenght '40'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_augru LIKE vbak-augru VISIBLE LENGTH 40 AS LISTBOX.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have nay question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 03:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108769#M440412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T03:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108770#M440413</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;   just check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&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;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 03:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108770#M440413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T03:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108771#M440414</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;Thanks for your replies. But I need the selection-screen to be a range value with list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 06:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108771#M440414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T06:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108772#M440415</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;LIST BOX with Selection Screen&lt;/P&gt;&lt;P&gt; For this the FM VRM_SET_VALUES is used to fill the value table and is passed to the parameter created with TYPE LISTBOX in the selection screen event&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PROGRAM zlist&lt;/P&gt;&lt;P&gt;TYPE-POOLS : VRM.&lt;/P&gt;&lt;P&gt;DATA: param TYPE vrm_id, &lt;/P&gt;&lt;P&gt;       values     TYPE vrm_values, &lt;/P&gt;&lt;P&gt;       value LIKE LINE OF values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_name(10) AS LISTBOX VISIBLE LENGTH 10.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT. &lt;/P&gt;&lt;P&gt;  param = 'P_NAME'. &lt;/P&gt;&lt;P&gt;  value-key = '1'.&lt;/P&gt;&lt;P&gt;  value-text = 'JOHN'.&lt;/P&gt;&lt;P&gt;  APPEND value TO values.&lt;/P&gt;&lt;P&gt;  value-key = '2'. &lt;/P&gt;&lt;P&gt;  value-text = 'PETER'.&lt;/P&gt;&lt;P&gt;  APPEND value TO values. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES' &lt;/P&gt;&lt;P&gt;    EXPORTING id     = param &lt;/P&gt;&lt;P&gt;              values = values. &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;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 06:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108772#M440415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T06:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108773#M440416</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;What do you mean by "range value with list box"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 20:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108773#M440416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T20:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108774#M440417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this.  You can't use SELECT-OPTIONS, but you can use the PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

tables: vbak.

ranges: r_augru for vbak-augru.

selection-screen begin of line.
selection-screen comment 1(15) label.
parameters: p_augrul like vbak-augru visible length 10 as listbox.
selection-screen comment 40(15) to.
parameters: p_augruh like vbak-augru visible length 10 as listbox.
selection-screen end of line.

at selection-screen output.
  label = 'Order Reason'.
  to  = 'To'.


start-of-selection.

  r_augru-sign = 'I'.
  if p_augruh is initial.
    r_augru-option = 'EQ'.
  else.
    r_augru-option = 'BT'.
  endif.
  if p_augrul is initial.
    r_augru-low  = p_augrul.
  endif.
  if p_augruh is initial.
    r_augru-high = p_augruh.
  endif.
  append r_augru.

&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>Tue, 03 Apr 2007 20:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-options/m-p/2108774#M440417</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-03T20:44:49Z</dc:date>
    </item>
  </channel>
</rss>

