<?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: Currency Drop Down List Subset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074722#M1703783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help with this.&amp;nbsp; I was able to get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 20:19:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-15T20:19:45Z</dc:date>
    <item>
      <title>Currency Drop Down List Subset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074719#M1703780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my program, how can I have my currency drop down window only show 'US' and 'CAD'?&amp;nbsp; I have not learned smart forms yet.&lt;/P&gt;&lt;P&gt;I have queried on this unsuccessfully thus far.&amp;nbsp; I finally came up with an idea but have not been able to figure out how to do it.&lt;/P&gt;&lt;P&gt;My thought is to have my parameter call a temp table that pulls a select statement e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from tcurc &lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ztcurc &lt;/P&gt;&lt;P&gt;WHERE waers in ('CAD, 'USD').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then my parameter is something like:&lt;/P&gt;&lt;P&gt;PARAMETERS:&amp;nbsp; p_curr LIKE ztcurc-waers DEFAULT 'USD' OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the user clicks the drop down only USD and CAD are options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I run into is that I haven't been able to get this result set into my parameter in time and my result shows all tcurc-waers.&lt;/P&gt;&lt;P&gt;After doing some debugging, I think that I need my temp table ztcurc in existence sometime before PAI finishes but not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to programming(1 year) and newer to ABAP.(3 months).&amp;nbsp; I am running version 4.6C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to create a permanent table so I am thinking I may be able to add another file like in C++ a .cpp file can have a .h file&lt;/P&gt;&lt;P&gt;associated with it in the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first question and I think I have followed procedure correctly. Be gentle &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074719#M1703780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-28T15:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Drop Down List Subset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074720#M1703781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the values for your dropdown list using the function module 'VRM_SET_VALUES'.&lt;/P&gt;&lt;P&gt;For that you have to declare the type-pool 'VRM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the code given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : vrm.&lt;BR /&gt;DATA: param&amp;nbsp; TYPE vrm_id,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values TYPE vrm_values,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&amp;nbsp; LIKE LINE OF values.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_curr(10) AS LISTBOX VISIBLE LENGTH 10.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;BR /&gt;&amp;nbsp; param = 'p_curr'.&lt;BR /&gt;&amp;nbsp; value-key = '1'.&lt;BR /&gt;&amp;nbsp; value-text = 'USD'.&lt;BR /&gt;&amp;nbsp; APPEND value TO values.&lt;BR /&gt;&amp;nbsp; value-key = '2'.&lt;BR /&gt;&amp;nbsp; value-text = 'CAD'.&lt;BR /&gt;&amp;nbsp; APPEND value TO values.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'VRM_SET_VALUES'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = param&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values = values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont be afraid of being a beginner. Everyone started like that only. Even i'm one &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1031/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074720#M1703781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-12T14:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Drop Down List Subset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074721#M1703782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing this in module pool,&lt;/P&gt;&lt;P&gt;then instead of the event 'AT SELECTION-SCREEN OUTPUT', you can put the code after that under the event 'PROCESS_BEFORE_OUTPUT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074721#M1703782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-12T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Drop Down List Subset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074722#M1703783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help with this.&amp;nbsp; I was able to get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 20:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-drop-down-list-subset/m-p/9074722#M1703783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-15T20:19:45Z</dc:date>
    </item>
  </channel>
</rss>

