<?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: Making a listbox in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706548#M892454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so i finally get output, but not the way i want it to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 PROFILE1&lt;/P&gt;&lt;P&gt;2 PROFILE2&lt;/P&gt;&lt;P&gt;3 PROFILE3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i want it to just be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROFILE1&lt;/P&gt;&lt;P&gt;PROFILE2&lt;/P&gt;&lt;P&gt;PROFILE3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Apr 2008 07:51:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-18T07:51:10Z</dc:date>
    <item>
      <title>Making a listbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706544#M892450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program, the user can select a specific "profile" from a list of profiles he can make himself. These are stored in a customizing table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the problem is, i can show 5 profiles, but if the user makes more then 5, i only get to see the first 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i make something like a list, so that there is a scrollbar or something when the user has more then 5 profiles?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 08:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706544#M892450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T08:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making a listbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706545#M892451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;You can use the function modules &lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;VRM_SET_VALUES &lt;/P&gt;&lt;P&gt;to populate the listbox and you have to limt the number of records as 5 when you are passing correponding ITAB to these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie, in the case of F4IF_INT_TABLE_VALUE_REQUEST,&lt;/P&gt;&lt;P&gt;you have to limit the number of records as 5 for VALUE_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rengith Skariah on Apr 17, 2008 1:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 11:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706545#M892451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T11:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Making a listbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706546#M892452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fritz,&lt;/P&gt;&lt;P&gt;  Assuming that you are using Dialog/Module code to display this list box,  How are you building this list box now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Dialog/Module make sure you're not getting all of the values by ensuring that you've scrolled down enough to see the last one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for coding it in the Dialog/Module program here is an example.  The one thing you MUST remember to do is on the field attributes in Screen Painter, the dropdown list for Value List on the Progam Tab must be an A for From Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this can go in the TOP include.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS             vrm. 
DATA: ltype_field   TYPE vrm_id,
      ltype_result  TYPE STANDARD TABLE OF vrm_value,
      ltype_val     LIKE LINE OF ltype_result.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO routine for the screen this dropdown list is for...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  REFRESH ltype_result. CLEAR ltype_result.
* Drop down values

  SELECT ltype ltypex                     " Building the table for the list box
    INTO TABLE ltype_result
    FROM zlmltyp
    WHERE auth NE '9'.    "System Only

* Field name to assign drop down values
  ltype_field = 'WK_LTYPE'.              " screen name of the field to use this list box
  CALL FUNCTION 'VRM_SET_VALUES'   " establishes the drop down list box.
       EXPORTING
            id              = ltype_field
            values          = ltype_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.

  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 11:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706546#M892452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T11:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Making a listbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706547#M892453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA declaration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS             vrm.
DATA: ltype_field   TYPE vrm_id,
      ltype_result  TYPE STANDARD TABLE OF vrm_value,
      ltype_val     LIKE LINE OF ltype_result.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code to build listbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE init_listbox OUTPUT.
  REFRESH ltype_result. CLEAR ltype_result.
* Drop down values

  LOOP AT cust_scrprof.
    ltype_val-key = '0000'.
    ltype_val-text = cust_scrprof.
    APPEND ltype_val TO ltype_result.
  ENDLOOP.

  CALL FUNCTION 'VRM_SET_VALUES'   " establishes the drop down list box.
       EXPORTING
            id              = ltype_field
            values          = ltype_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
  IF sy-subrc EQ 0.

  ENDIF.

ENDMODULE.                 " INIT_LISTBOX  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work though. I debugged it, and my table "ltype_result" is getting filled with all the profiles, however, the listbox does not get filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who knows why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok NVM, i just forgot some code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Fritz Heinzwagel on Apr 18, 2008 9:45 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Fritz Heinzwagel on Apr 18, 2008 9:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 07:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706547#M892453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T07:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Making a listbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706548#M892454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so i finally get output, but not the way i want it to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 PROFILE1&lt;/P&gt;&lt;P&gt;2 PROFILE2&lt;/P&gt;&lt;P&gt;3 PROFILE3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i want it to just be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROFILE1&lt;/P&gt;&lt;P&gt;PROFILE2&lt;/P&gt;&lt;P&gt;PROFILE3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 07:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-a-listbox/m-p/3706548#M892454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T07:51:10Z</dc:date>
    </item>
  </channel>
</rss>

