<?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: populating Variants in dropdown (values from table) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771902#M645911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the answer. used another function module CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          RETFIELD               = 'VARIANT'&lt;/P&gt;&lt;P&gt;          PVALKEY                = ' '&lt;/P&gt;&lt;P&gt;          VALUE_ORG              = 'S'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          VALUE_TAB              = LT_VARI&lt;/P&gt;&lt;P&gt;          RETURN_TAB             = LT_RETTAB&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR        = 1&lt;/P&gt;&lt;P&gt;         NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;P&gt;         OTHERS                 = 3&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to populate the selected item from F4 help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE LT_RETTAB INTO LW_RETURN INDEX 1.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        L_VAR = LW_RETURN-fieldval.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 09:02:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T09:02:55Z</dc:date>
    <item>
      <title>populating Variants in dropdown (values from table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771898#M645907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have the requirement of the user must input the name of variant by select from dropdown. The values should be taken from a saptable. On selection screen two fields are present variant and variant description. the values for Variant field VARIANT should populate from table RSVAR which should populate in dropdown field format.Once the variant is selected another field description should also be visible relevant to variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Mirul sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 04:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771898#M645907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T04:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: populating Variants in dropdown (values from table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771899#M645908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Welcome to SDN forum&lt;/P&gt;&lt;P&gt;for that Variant field you can create a drop down list with all the possible values using the fun module VRM_SET_VALUES&lt;/P&gt;&lt;P&gt;see the sample code and do accordingly&lt;/P&gt;&lt;P&gt;REPORT zwa_test2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPE-POOLS : vrm.&lt;/P&gt;&lt;P&gt;tables: bkpf.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : values TYPE vrm_values.&lt;/P&gt;&lt;P&gt;DATA : wa LIKE LINE OF values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: dd type bkpf-BSTAT user-command abc.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options: a for bkpf-bukrs MODIF ID buk.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options: b for bkpf-belnr MODIF ID SEL.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  If list_box = 2.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      if screen-group1 = 'SEL'.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '1'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Orange'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '2'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Red'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '3'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Blue'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa-key = '4'.&lt;/P&gt;&lt;P&gt;  wa-text = 'Gray'.&lt;/P&gt;&lt;P&gt;  APPEND wa TO values.&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              = 'LIST_BOX'&lt;/P&gt;&lt;P&gt;            values          = values&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;&lt;/P&gt;&lt;P&gt;Ref Program:  DEMO_DROPDOWN_LIST_BOX&lt;/P&gt;&lt;P&gt;Link: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2951115"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 04:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771899#M645908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T04:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: populating Variants in dropdown (values from table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771900#M645909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use function module&lt;/P&gt;&lt;P&gt;VRM_SET_VALUES&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;regards&lt;/P&gt;&lt;P&gt;Giridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 04:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771900#M645909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T04:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: populating Variants in dropdown (values from table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771901#M645910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the code anji reddy. I will try to match my requirement and the given code. I will get back to you on this regard soon. you mentioned a link know that is not showing the contents.. please check it once and give me some reference program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 04:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771901#M645910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T04:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: populating Variants in dropdown (values from table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771902#M645911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the answer. used another function module CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          RETFIELD               = 'VARIANT'&lt;/P&gt;&lt;P&gt;          PVALKEY                = ' '&lt;/P&gt;&lt;P&gt;          VALUE_ORG              = 'S'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          VALUE_TAB              = LT_VARI&lt;/P&gt;&lt;P&gt;          RETURN_TAB             = LT_RETTAB&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR        = 1&lt;/P&gt;&lt;P&gt;         NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;P&gt;         OTHERS                 = 3&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to populate the selected item from F4 help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE LT_RETTAB INTO LW_RETURN INDEX 1.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        L_VAR = LW_RETURN-fieldval.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 09:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-variants-in-dropdown-values-from-table/m-p/2771902#M645911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T09:02:55Z</dc:date>
    </item>
  </channel>
</rss>

