<?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: FM RFC_READ_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570235#M1270658</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;try something like belwo..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT s_matnr.
CONCATENATE   'MATNR-SIGN = '  s_matnr-sign
                          'MATNR-OPTION =  ' s_matnr-option
                         'MATNR-LOW = ' s_matnr-low
                         'MATNR-HIGH = ' s_matnr-HIGH
                         OPTIONTEXT into OPTIONTEXT seperated by sapce.  
ENDLOOP.

   OPTIONS-TEXT = OPTIONTEXT.
   APPEND OPTIONS.

Pas this 
 CALL FUNCTION 'RFC_READ_TABLE' DESTINATION RFCSYS
           EXPORTING
                QUERY_TABLE          = 'AGR_1016'
           TABLES
                OPTIONS              = OPTIONS        "Pass to this as a option 
                FIELDS               = FIELDS
                DATA                 = ITAB .
              IF SY-SUBRC &amp;lt;&amp;gt; 0.
              ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 11:34:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T11:34:06Z</dc:date>
    <item>
      <title>FM RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570232#M1270655</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;I have writtten a program in APO that is required to read data from a bespoke table in R/3, so I'm using FM RFC_READ_TABLE to do this, I can easily retrieve 1 material by adding it to the Option table. My problem is that I have a select option in APO that I want to use to restrict the values being returned and I'm not sure how to code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;J-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 10:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570232#M1270655</guid>
      <dc:creator>TJRP</dc:creator>
      <dc:date>2009-05-21T10:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: FM RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570233#M1270656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In Option You can write simple where clause as you write in select statement.&lt;/P&gt;&lt;P&gt;may be you will have to build string everytime using "Concatenate" in your program to pass it to the "option"  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;Prajakta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570233#M1270656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T11:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: FM RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570234#M1270657</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 Options tab you can write your where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;matnr BETWEEN 'M1000' AND 'M1500'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570234#M1270657</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-05-21T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: FM RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570235#M1270658</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;try something like belwo..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT s_matnr.
CONCATENATE   'MATNR-SIGN = '  s_matnr-sign
                          'MATNR-OPTION =  ' s_matnr-option
                         'MATNR-LOW = ' s_matnr-low
                         'MATNR-HIGH = ' s_matnr-HIGH
                         OPTIONTEXT into OPTIONTEXT seperated by sapce.  
ENDLOOP.

   OPTIONS-TEXT = OPTIONTEXT.
   APPEND OPTIONS.

Pas this 
 CALL FUNCTION 'RFC_READ_TABLE' DESTINATION RFCSYS
           EXPORTING
                QUERY_TABLE          = 'AGR_1016'
           TABLES
                OPTIONS              = OPTIONS        "Pass to this as a option 
                FIELDS               = FIELDS
                DATA                 = ITAB .
              IF SY-SUBRC &amp;lt;&amp;gt; 0.
              ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570235#M1270658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T11:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: FM RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570236#M1270659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I built up the select statement by loop through the select option, I thought there would be a quick way but no such luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 10:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rfc-read-table/m-p/5570236#M1270659</guid>
      <dc:creator>TJRP</dc:creator>
      <dc:date>2009-06-01T10:28:10Z</dc:date>
    </item>
  </channel>
</rss>

