<?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: Multiple input value for one import parameter in RFC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511855#M1423612</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;In the FM definition, we do not have to use the TAB IMPORT. Rather we have to use the tab TABLES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the TABLES tab, &lt;/P&gt;&lt;P&gt;put the  parameter name as eg. VBLNR  LIKE RVBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-option is nothing but an internal table behind the scenes. Similar is the RVBELN.&lt;/P&gt;&lt;P&gt;So whatever is there in the select-option (single value, multiple values, exclude values, etc).... the full internal table of select-option will get passed (using TABLES) to the FM. Inside the FM you can use IN, as if the variable VBLNR was a select-option.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 06:38:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-15T06:38:33Z</dc:date>
    <item>
      <title>Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511849#M1423606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am  making simple RFC as for the import parameter we can use any filed but as we can enter only one input value for one parameeter I want to know how to make an import parameetr  with features as select option  so that we can enter more than one value for single fields  like  I want to read sales data  for order type OR20,  OR   , OR10  for this I have onlye One import fileds in RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  regards,&lt;/P&gt;&lt;P&gt;    zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 05:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511849#M1423606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T05:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511850#M1423607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can u help on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt;  zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511850#M1423607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511851#M1423608</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;In your FM (if it is a Z FM), use the TABLES parameter.&lt;/P&gt;&lt;P&gt;In that, there table should be of type RVBELN.  (In case you want to pass SALES ORDER in the format of a select-option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So while calling the FM, you can directly pass your select-option variable to this FM, in the tables parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RVBELN is a structure (consisting of four fields, just like select-option, for sales order)&lt;/P&gt;&lt;P&gt;There are other structures (in the format of a range / select-option) available in standard sap, and you can use them in the FM. If it is not there, you can easily consturct one in the dictionary using the four fields&lt;/P&gt;&lt;P&gt;SIGN - CHAR1&lt;/P&gt;&lt;P&gt;OPTION - CHAR2&lt;/P&gt;&lt;P&gt;LOW - as required by the field / data element&lt;/P&gt;&lt;P&gt;HIGH - as required by the field / data element&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511851#M1423608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511852#M1423609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;   The table / strucutr e which u have given is a range like high to low  i want to know about selection option  like if i use Range table  If i enter Low 1 and High 10  it will take all 1 to 10 as input  i want to give input onl like  1  ,  3  , 5  and 10  like this  how to perform this .&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; zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511852#M1423609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511853#M1423610</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;If you enter 1 to 10 on screen, in the select option,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you pass this select-option to the FM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then inside the FM, it will consider all 1,2,3,...10.&lt;/P&gt;&lt;P&gt;(Range  /  select-option /  range like structure  - is meant for that only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the FM, you will have to write select query using the syntax IN.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511853#M1423610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511854#M1423611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amit,&lt;/P&gt;&lt;P&gt;  It is OK  inside the FM i will write IN syntax but for in syntax  how to enter the IN value   from import parameter  if i use parameter i can eneter only signle value  if i use Range strucutre it will take all values from LOW to high  how to enter value from import parameter .&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;   zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511854#M1423611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511855#M1423612</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;In the FM definition, we do not have to use the TAB IMPORT. Rather we have to use the tab TABLES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the TABLES tab, &lt;/P&gt;&lt;P&gt;put the  parameter name as eg. VBLNR  LIKE RVBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-option is nothing but an internal table behind the scenes. Similar is the RVBELN.&lt;/P&gt;&lt;P&gt;So whatever is there in the select-option (single value, multiple values, exclude values, etc).... the full internal table of select-option will get passed (using TABLES) to the FM. Inside the FM you can use IN, as if the variable VBLNR was a select-option.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511855#M1423612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511856#M1423613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zafar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 import parameters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_low&lt;/P&gt;&lt;P&gt;lv_high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not through the RFC call pass 2 values.. low &amp;amp; high value.. lets say u have passed lv_low = 2 &amp;amp; lv_high = 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you want the select query to process records which has values 2 , 5, 7, 9 .. 11, 13 &amp;amp; 15.. which means lv_low + 1 logic &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the FM declare a range variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Ranges : r_val for ztable-value.

r_val-sign = 'I'.
r_val-option = 'EQ'.
r_val-low = lv_low.
append r_val.

lv_low = lv_low + 1.
if lv_low &amp;lt; lv_high.
r_val-low = lv_low.
append r_val.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise.if u want to select based on low &amp;amp; high value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;r_val-sign = 'I'.
r_val-option = 'EQ'.
r_val-low = lv_low.
r_val-high = lv_high.
append r_val.


select * from ztable where val in r_val.&lt;/CODE&gt;&lt;/PRE&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;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511856#M1423613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511857#M1423614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the OP's req. he has to use the TABLES as the interface parameter but i prefer to use the structure SELOPT instead of RVBELN &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will define as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;T_RANGE LIKE SELOPT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511857#M1423614</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-01-15T06:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple input value for one import parameter in RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511858#M1423615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That can be done, but the issue is the length of the LOW and HIGH. Selopt is GENERAL. - 24 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So inside FM when we do select query, it may not match with the table field of VBELN (bcos of prefixed 000 characters, length etc) and might not give proper results. That is why SAP has made many range structures for many important fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 06:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-input-value-for-one-import-parameter-in-rfc/m-p/6511858#M1423615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T06:53:37Z</dc:date>
    </item>
  </channel>
</rss>

