<?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 REGARDING LIST BOX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617456#M871447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HAI SDN MEMBERS,&lt;/P&gt;&lt;P&gt;                               IN THE GUISCREEN I HAVE TWO FIELDS ONE IS SHIPMENT TYPE AND ANOTHER ONE IS SHIPMENT PREFIX AND THE BOTH THE FIELDS ARE HAVING LIST BOXES &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIPMENT TYPE IS P OR H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIPMENT PREFIX FOR 'P 'IS A,V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIPMENT PREFIX FOR 'H' IS VVA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WE CHOOSE P IN THE FIRST LIST BOX ONLY A,V SHOULD BE ABLE TO SELECT IN THE SHIPMENTPREFIX LIST BOX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WE CHOOSE H IN THE FIRST LIST BOX ONLY VVA,VVS SHOULD BE ABLE TO SELECT IN SHIPMENT PREFIX LIST BOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN ANY ONE HELP ME REGARDING CODING&lt;/P&gt;&lt;P&gt;THANKS &lt;/P&gt;&lt;P&gt;ELIAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2008 11:05:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-01T11:05:20Z</dc:date>
    <item>
      <title>REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617456#M871447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HAI SDN MEMBERS,&lt;/P&gt;&lt;P&gt;                               IN THE GUISCREEN I HAVE TWO FIELDS ONE IS SHIPMENT TYPE AND ANOTHER ONE IS SHIPMENT PREFIX AND THE BOTH THE FIELDS ARE HAVING LIST BOXES &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIPMENT TYPE IS P OR H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIPMENT PREFIX FOR 'P 'IS A,V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIPMENT PREFIX FOR 'H' IS VVA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WE CHOOSE P IN THE FIRST LIST BOX ONLY A,V SHOULD BE ABLE TO SELECT IN THE SHIPMENTPREFIX LIST BOX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WE CHOOSE H IN THE FIRST LIST BOX ONLY VVA,VVS SHOULD BE ABLE TO SELECT IN SHIPMENT PREFIX LIST BOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN ANY ONE HELP ME REGARDING CODING&lt;/P&gt;&lt;P&gt;THANKS &lt;/P&gt;&lt;P&gt;ELIAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617456#M871447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617457#M871448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code works as you request but for another application.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need this line in your Global area:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS             vrm.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This in the main body&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE init_0110 OUTPUT.

  REFRESH ltype_result. CLEAR ltype_result.
* Drop down values

  SELECT ltype ltypex
    INTO TABLE ltype_result
*    into ( ltype_val-key, ltype_val-text )
    FROM zlmltyp
    WHERE auth NE '9'.    "System Only
*    APPEND ltype_val TO ltype_result.
*  ENDSELECT.

* Field name to assign drop down values
  ltype_field = 'WK_LTYPE'.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = ltype_field
            values          = ltype_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.

  ENDIF.

  IF prev_ltype NE wk_ltype.
    CLEAR: wk_status.
  ENDIF.

  REFRESH lstat_result. CLEAR lstat_result.
* Drop down values

  SELECT status statx
    INTO TABLE lstat_result
    FROM zlmstyp
    WHERE ltype = wk_ltype
      AND auth NE '9'.    "System Only

  SORT lstat_result.

* Field name to assign drop down values
  lstat_field = 'WK_STATUS'.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = lstat_field
            values          = lstat_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.

  ENDIF.

  prev_ltype = wk_ltype.
ENDMODULE.                 " init_0110  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, you will need to change the Value list parm to "A" for From Program and you will need a Fuction Code on your Primary List Box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617457#M871448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617458#M871449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elias , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your requirement you need to fill the 2nd list box based on the selected value of 1st listbox as we can not provide control to selections of list box values . So Its better to fill the 2nd list box according to the selections made on the 1st one . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI you can use this logic : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         check the value of the value selected in the 1st list box . &lt;/P&gt;&lt;P&gt;        accordingly fill the 1nd listbox .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code sample will make you understand how to fill the listbox and retrieve values from it .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Report ZTRY&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTRY.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill the list with values LINE 1 and LINE 2 . &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;&lt;/P&gt;&lt;P&gt;Set the dropdown list for the required screen field &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;Hope this is of help .  &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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617458#M871449</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2008-04-01T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617459#M871450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pasha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code might be useful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zdemo.

TYPE-POOLS: vrm.
data:
  g_name   TYPE vrm_id,
  g_list   TYPE vrm_values,
  g_list1  TYPE vrm_values,
  g_value        LIKE LINE OF g_list,
  g_resulttab    TYPE match_result_tab.

DEFINE fill_list_data.
  g_value-key = &amp;amp;1.
  g_value-text = &amp;amp;2.
  append g_value to &amp;amp;3.
END-OF-DEFINITION.

SELECTION-SCREEN BEGIN OF BLOCK block1.
PARAMETERS:
            p_stype AS LISTBOX VISIBLE LENGTH 15 DEFAULT 'P' USER-COMMAND UC1,
            p_sprfx(15) AS LISTBOX VISIBLE LENGTH 15.
SELECTION-SCREEN END OF BLOCK block1.

AT SELECTION-SCREEN OUTPUT.

g_name = 'P_STYPE'.
perform fill_list_box using g_name.

AT SELECTION-SCREEN ON p_stype. "VALUE-REQUEST FOR p_stype.

g_name = 'P_SPRFX'.
perform fill_list_box using g_name.


START-OF-SELECTION.
END-OF-SELECTION.

form fill_list_box using g_name.
clear: g_list,g_list1.
case g_name.
  when 'P_STYPE'.
    fill_list_data: 'P' 'P' g_list,
                    'H' 'H' g_list.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id     = g_name
        values = g_list.
  when 'P_SPRFX'.
    clear g_list1.
    refresh g_list1.
    if p_stype eq 'P'.
      fill_list_data: 'A' 'A' g_list1,
                      'V' 'V' g_list1.
    else.
      fill_list_data: 'VVA' 'VVA' g_list1,
                      'VVS' 'VVS' g_list1.
    endif.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id     = g_name
        values = g_list1.
endcase.



endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 12:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617459#M871450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617460#M871451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not a report program i have already desinged a screen for shipment type and prefix and i have table and i have draged and dropped that fields in layout&lt;/P&gt;&lt;P&gt;yes for report it is ok ,but i have fixed ranges for shipment type if i select p or h according i should be able to select for shipment prefix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 13:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617460#M871451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T13:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617461#M871452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not a report program i have already desinged a screen for shipment type and prefix and i have table and i have draged and dropped that fields in layout&lt;/P&gt;&lt;P&gt;yes for report it is ok ,but i have fixed ranges for shipment type if i select p or h according i should be able to select for shipment prefix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 13:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617461#M871452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617462#M871453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Elias pasha,
In your case what you have to do is that Set(give) Function Code for the 1st List Box. Means set Function code for the field u want to set List box. when you set Dunction code when u select the value from List box event is triggered then based on the value of the field(1st List box field), Fill up the second listbox. here is the procedure.

To get Drop Drown Box on screen .
Follow these steps.
&lt;STRONG&gt;1&lt;/STRONG&gt;.Go to T.Code SE51 and Select Laypout for the Screen.
&lt;STRONG&gt;2&lt;/STRONG&gt;.Double click on the field for which u want Dropdown box.
&lt;STRONG&gt;3&lt;/STRONG&gt;.Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box  
    or ListBox with key . Better to to select first one.
&lt;STRONG&gt;4&lt;/STRONG&gt;.Save and Activate ur screen .
&lt;STRONG&gt;5&lt;/STRONG&gt;.Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
&lt;STRONG&gt;6&lt;/STRONG&gt; Set function code to trigger event not in all cases.

Check the sample code to get Listbox data.
&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS :vrm.
DATA:
  i_natio TYPE vrm_values, "--&amp;gt;Table that is passed through FM vrm_set_values
  w_natio LIKE LINE OF i_natio.
 
DATA: 
BEGIN OF i_t005t OCCURS 0,
    land1 TYPE t005t-land1,
    natio TYPE t005t-natio,
END OF i_t005t.

IF i_t005t[] IS INITIAL.
  SELECT land1 natio
     FROM t005t
       INTO TABLE i_t005t
   WHERE spras = sy-langu.
  IF sy-subrc = 0.
  LOOP AT i_t005t .
      w_natio-key = i_t005t-land1.
      w_natio-text = i_t005t-natio.
      APPEND w_natio TO i_natio.
      CLEAR w_natio.
  ENDLOOP.
  ENDIF.
ENDIF.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
                       id = 'I_IT0002-NATIO' "--&amp;gt;Field for which dropdown is needed.
                values = i_natio
EXCEPTIONS
   id_illegal_name = 1
            OTHERS = 2.
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it helps.
&lt;STRONG&gt;Regards,&lt;/STRONG&gt;
&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 08:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617462#M871453</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-03T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617463#M871454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;               I have followed ur code but i am not getting the list displayed for my field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my fields are EMPIDTO  AND NAMETO, TABLE NAME -ZRIF_TO....i am having records in my table.....please let me know where i am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS :vrm.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  i_natio TYPE vrm_values, "--&amp;gt;Table that is passed through FM vrm_set_values&lt;/P&gt;&lt;P&gt;  w_natio LIKE LINE OF i_natio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;BEGIN OF i_t005t OCCURS 0,&lt;/P&gt;&lt;P&gt;    EMPIDTO TYPE ZRIF_TO-EMPIDTO,&lt;/P&gt;&lt;P&gt;    NAMETO TYPE ZRIF_TO-NAMETO,&lt;/P&gt;&lt;P&gt;END OF i_t005t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_t005t[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE EMPIDTO NAMETO&lt;/P&gt;&lt;P&gt;     FROM ZRIF_TO&lt;/P&gt;&lt;P&gt;    INTO (ZRIF_TO-EMPIDTO, ZRIF_TO-NAMETO)&lt;/P&gt;&lt;P&gt;    WHERE SLNO = ZRIF_TO-SLNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT i_t005t .&lt;/P&gt;&lt;P&gt;      w_natio-key = i_t005t-EMPIDTO.&lt;/P&gt;&lt;P&gt;      w_natio-text = i_t005t-NAMETO.&lt;/P&gt;&lt;P&gt;      APPEND w_natio TO i_natio.&lt;/P&gt;&lt;P&gt;      CLEAR w_natio.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&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 = 'I_IT0002-EMPIDTO' "--&amp;gt;Field for which dropdown is needed.&lt;/P&gt;&lt;P&gt;                values = i_natio&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;   id_illegal_name = 1&lt;/P&gt;&lt;P&gt;            OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 14:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617463#M871454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: REGARDING LIST BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617464#M871455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;               onemore request from me please do send me the procedure to save the text box which is created through screen painter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 14:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-list-box/m-p/3617464#M871455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T14:32:57Z</dc:date>
    </item>
  </channel>
</rss>

