<?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 Parameter Listbox is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643849#M2014473</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
  &lt;P&gt;When i select any country name from listbox it is not reflecting. Only first value of the listbox is showing. Can anyone help me to resolve this issue.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;type-POOLs:vrm.&lt;BR /&gt;PARAMETERS:&lt;BR /&gt;            p_land1 as LISTBOX VISIBLE LENGTH 8 USER-COMMAND CMD.&lt;BR /&gt;data: it_list type vrm_values,&lt;BR /&gt;      wa_list like LINE OF it_list.&lt;BR /&gt;at SELECTION-SCREEN OUTPUT.&lt;BR /&gt;  clear: it_list[].&lt;BR /&gt;  select&lt;BR /&gt;    DISTINCT&lt;BR /&gt;    land1&lt;BR /&gt;    from kna1&lt;BR /&gt;    into CORRESPONDING FIELDS OF table it_kna1.&lt;BR /&gt;    if sy-subrc eq 0.&lt;BR /&gt;      loop at it_kna1 into wa_kna1.&lt;BR /&gt;        wa_list-text = wa_kna1-land1.&lt;BR /&gt;      append wa_list to it_list.&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;    endif.&lt;BR /&gt;    CALL FUNCTION 'VRM_SET_VALUES'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        id                    = 'P_LAND1'&lt;BR /&gt;        values                = it_list&lt;BR /&gt;*     EXCEPTIONS&lt;BR /&gt;*       ID_ILLEGAL_NAME       = 1&lt;BR /&gt;*       OTHERS                = 2&lt;BR /&gt;              .&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;* Implement suitable error handling here&lt;BR /&gt;    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Jul 2022 08:31:14 GMT</pubDate>
    <dc:creator>anujawani242683</dc:creator>
    <dc:date>2022-07-22T08:31:14Z</dc:date>
    <item>
      <title>Parameter Listbox is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643849#M2014473</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
  &lt;P&gt;When i select any country name from listbox it is not reflecting. Only first value of the listbox is showing. Can anyone help me to resolve this issue.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;type-POOLs:vrm.&lt;BR /&gt;PARAMETERS:&lt;BR /&gt;            p_land1 as LISTBOX VISIBLE LENGTH 8 USER-COMMAND CMD.&lt;BR /&gt;data: it_list type vrm_values,&lt;BR /&gt;      wa_list like LINE OF it_list.&lt;BR /&gt;at SELECTION-SCREEN OUTPUT.&lt;BR /&gt;  clear: it_list[].&lt;BR /&gt;  select&lt;BR /&gt;    DISTINCT&lt;BR /&gt;    land1&lt;BR /&gt;    from kna1&lt;BR /&gt;    into CORRESPONDING FIELDS OF table it_kna1.&lt;BR /&gt;    if sy-subrc eq 0.&lt;BR /&gt;      loop at it_kna1 into wa_kna1.&lt;BR /&gt;        wa_list-text = wa_kna1-land1.&lt;BR /&gt;      append wa_list to it_list.&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;    endif.&lt;BR /&gt;    CALL FUNCTION 'VRM_SET_VALUES'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        id                    = 'P_LAND1'&lt;BR /&gt;        values                = it_list&lt;BR /&gt;*     EXCEPTIONS&lt;BR /&gt;*       ID_ILLEGAL_NAME       = 1&lt;BR /&gt;*       OTHERS                = 2&lt;BR /&gt;              .&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;* Implement suitable error handling here&lt;BR /&gt;    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2022 08:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643849#M2014473</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-07-22T08:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Listbox is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643850#M2014474</link>
      <description>&lt;P&gt;You must fill the &lt;STRONG&gt;key&lt;/STRONG&gt; with the country code, and you must define P_LAND1 as &lt;STRONG&gt;type LAND1&lt;/STRONG&gt; (country code 3 characters). Visible length is for displaying the text (country name) so you'd better increase the length.&lt;/P&gt;&lt;P&gt;The key corresponds to the value of the screen field, and they should have same type (country code = 3 characters). &lt;/P&gt;&lt;P&gt;The text is just the information displayed (country name in full text).&lt;/P&gt;&lt;P&gt;When you select a value, it will fill P_LAND1 with the key.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643850#M2014474</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-07-22T09:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Listbox is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643851#M2014475</link>
      <description>&lt;P&gt;And it is also unnecessary to execute the code at every dynpro round-trip.&lt;/P&gt;&lt;P&gt;It can be moved to INITIALIZATION event, or a check should be added to validate whether the listbox table has been filled.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643851#M2014475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2022-07-22T09:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Listbox is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643852#M2014476</link>
      <description>&lt;P&gt;Hi Sandra Rossi&lt;/P&gt;&lt;P&gt;Now it's working. When i select country name from listbox it is displaying. But one more issue is facing. Issue is when i select any country name it shows but it disappear within few seconds.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-POOLs:vrm.&lt;BR /&gt;data:n type i value 1.&lt;BR /&gt;PARAMETERS:&lt;BR /&gt;            p_land1 type land1 as LISTBOX VISIBLE LENGTH 8 USER-COMMAND CMD.&lt;BR /&gt;data: it_list type vrm_values,&lt;BR /&gt;      wa_list like LINE OF it_list.&lt;BR /&gt;at SELECTION-SCREEN OUTPUT.&lt;BR /&gt;  clear: it_list[].&lt;BR /&gt;  select&lt;BR /&gt;    DISTINCT&lt;BR /&gt;    land1&lt;BR /&gt;    from kna1&lt;BR /&gt;    into CORRESPONDING FIELDS OF table it_kna1.&lt;BR /&gt;    if sy-subrc eq 0.&lt;BR /&gt;      loop at it_kna1 into wa_kna1.&lt;BR /&gt;        wa_list-key = n.&lt;BR /&gt;        wa_list-text = wa_kna1-land1.&lt;BR /&gt;      append wa_list to it_list.&lt;BR /&gt;      n = n + 1.&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;    endif.&lt;BR /&gt;    CALL FUNCTION 'VRM_SET_VALUES'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        id                    = 'P_LAND1'&lt;BR /&gt;        values                = it_list&lt;BR /&gt;*     EXCEPTIONS&lt;BR /&gt;*       ID_ILLEGAL_NAME       = 1&lt;BR /&gt;*       OTHERS                = 2&lt;BR /&gt;              .&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;* Implement suitable error handling here&lt;BR /&gt;    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643852#M2014476</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-07-22T09:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Listbox is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643853#M2014477</link>
      <description>&lt;P&gt;The key must be the country code. Sorry to not mention it explicitly -&amp;gt; answer edited.&lt;/P&gt;&lt;P&gt;When you select a value, it will fill P_LAND1 with the key.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643853#M2014477</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-07-22T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Listbox is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643854#M2014478</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Thanks Sandra. Issue is resolved.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 09:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-listbox-is-not-working/m-p/12643854#M2014478</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-07-22T09:39:56Z</dc:date>
    </item>
  </channel>
</rss>

