<?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: Passing parameter as a range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586756#M1939176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to have the user name in parameters I2_CASH and I3_CASH set the user names itselfs as the keys when composing table L_VALUES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_usnam1 INTO l_usnam1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;l_value-key = l_usnam1-usnam.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;l_value-text = l_usnam1-usnam.&lt;/P&gt;&lt;P&gt;APPEND l_value to l_values.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Feb 2016 11:11:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-02-20T11:11:09Z</dc:date>
    <item>
      <title>Passing parameter as a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586755#M1939175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small issue in my requirement. I have the following selection screen in my report and I had to put drop downs as shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891731" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Now the drop downs are&amp;nbsp; parameters and not select-options as shown below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891732" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am populating the drop down for the username using the FM VRM_SET_VALUES as shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891733" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Now, the main issue that I have is that I need to pass the username from the drop downs as a range in a custom function module.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the approach I took:&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a range table:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891735" /&gt;&lt;/P&gt;&lt;P&gt;I appended the values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891736" /&gt;&lt;/P&gt;&lt;P&gt;However, on debugging I can see the the parameters I3_CASH and I2_CASH are not holding any values at all. &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.sap.com/74/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891740" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the range table LT_USNAM2 passed to the FM&amp;nbsp; is empty &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/891741" /&gt;&lt;/P&gt;&lt;P&gt;So can anyone please help me out as to how to populate the range table so that I can get the higher and lower values and append them so they can be passed to the FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 07:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586755#M1939175</guid>
      <dc:creator>manish_malakar0316</dc:creator>
      <dc:date>2016-02-20T07:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter as a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586756#M1939176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to have the user name in parameters I2_CASH and I3_CASH set the user names itselfs as the keys when composing table L_VALUES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_usnam1 INTO l_usnam1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;l_value-key = l_usnam1-usnam.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;l_value-text = l_usnam1-usnam.&lt;/P&gt;&lt;P&gt;APPEND l_value to l_values.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 11:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586756#M1939176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-20T11:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter as a range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586757#M1939177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- add comments to your source code - someone else will have to do maintennance&lt;/P&gt;&lt;P&gt;- add types and texts to your selection screen fields - better understanding given&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if IM_CASHIER is a range, it will be defined a a table type with a table line with columns sign, option, low, high.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;USNAM2&amp;gt; LIKE LINE OF &lt;SPAN style="font-size: 13.3333px;"&gt;LT_USNAM2.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;APPEND INITIAL LINE TO LT_USNAM2 ASSIGNING &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;USNAM2&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;USNAM2&amp;gt;-sign = 'I'. "Include optio&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;USNAM2&amp;gt;-option = 'EQ'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;USNAM2&amp;gt;-low = I2_CASH.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards Clemens&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 14:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-as-a-range/m-p/11586757#M1939177</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-02-21T14:37:39Z</dc:date>
    </item>
  </channel>
</rss>

