<?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: RFC_READ_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214215#M474647</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;just populate the select statement where conditions into table options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
options = 'MATNR in SEL_MATNR and ERSDA = SY-DATUM'.
append options.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the other procedure is..&lt;/P&gt;&lt;P&gt;get all the data. once the data is retreived, you can delete the data you dont need.&lt;/P&gt;&lt;P&gt;but, the first one is suggestable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;P&gt;*pls mark for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 06:28:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-23T06:28:04Z</dc:date>
    <item>
      <title>RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214214#M474646</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 using RFC_READ_TABLE function module to retrive table data in other server .&lt;/P&gt;&lt;P&gt;Here my issues how to use &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;WHERE&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; condition for selection criteria.&lt;/P&gt;&lt;P&gt;In this function module there is a table for where condition &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;OPTIONS&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;Could you please send sample code for using where condition for this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;shyla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 06:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214214#M474646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T06:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214215#M474647</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;just populate the select statement where conditions into table options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
options = 'MATNR in SEL_MATNR and ERSDA = SY-DATUM'.
append options.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the other procedure is..&lt;/P&gt;&lt;P&gt;get all the data. once the data is retreived, you can delete the data you dont need.&lt;/P&gt;&lt;P&gt;but, the first one is suggestable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;P&gt;*pls mark for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 06:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214215#M474647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T06:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214216#M474648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;If i am retrieving all material numbers in the mara table which are in my internal table it_output.Then how can write where condition i.e.&lt;/P&gt;&lt;P&gt;options = 'MATNR IN IT_OUTPUT-MATNR' is it will works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;shyla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 06:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214216#M474648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214217#M474649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;shyla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: line        like line .&lt;/P&gt;&lt;P&gt;  data: stmp_dokhl  like dokhl       occurs 100000 with header line.&lt;/P&gt;&lt;P&gt;  data: options1    like rfc_db_opt  occurs     10 with header line.&lt;/P&gt;&lt;P&gt;  data: nametab1    like rfc_db_fld  occurs     10 with header line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data: sel_tab     like sel_stat    occurs     10 with header line.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data: nametab     like bdi_mfgrp   occurs     10 with header line.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: begin of i_langobj occurs 20,&lt;/P&gt;&lt;P&gt;          id like dokil-id          ,&lt;/P&gt;&lt;P&gt;        end of i_langobj            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select distinct id from dokil into table i_langobj .&lt;/P&gt;&lt;P&gt;  sort: i_langobj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_langobj.&lt;/P&gt;&lt;P&gt;    clear: options1[] .&lt;/P&gt;&lt;P&gt;    clear: options1 .&lt;/P&gt;&lt;P&gt;    concatenate 'LANGU = '''&lt;/P&gt;&lt;P&gt;                language&lt;/P&gt;&lt;P&gt;                ''''&lt;/P&gt;&lt;P&gt;          into  line.&lt;/P&gt;&lt;P&gt;    move: line to options1 .&lt;/P&gt;&lt;P&gt;    append options1 .&lt;/P&gt;&lt;P&gt;    clear: options1 .&lt;/P&gt;&lt;P&gt;    concatenate 'AND ID = ''' i_langobj-id '''' into line .&lt;/P&gt;&lt;P&gt;    move: line to options1 .&lt;/P&gt;&lt;P&gt;    append options1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  call function 'TABLE_ENTRIES_GET_VIA_RFC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       destination                rfc_sys&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            langu               = sy-langu&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            only                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            tabname             = 'DOKIL'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            sel_tab             = sel_tab&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            nametab             = nametab&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            tabentry            = stmp_dokhl&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            internal_error      = 1&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;           table_has_no_fields = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            table_not_activ     = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            not_authorized      = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            others              = 5 .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear: stmp_dokhl[] .&lt;/P&gt;&lt;P&gt;    call function 'RFC_READ_TABLE'&lt;/P&gt;&lt;P&gt;         destination                rfc_sys&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              query_table          = 'DOKHL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            DELIMITER            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            NO_DATA              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            ROWSKIPS             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            ROWCOUNT             = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              options              = options1&lt;/P&gt;&lt;P&gt;              fields               = nametab1&lt;/P&gt;&lt;P&gt;              data                 = stmp_dokhl&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              table_not_available  = 1&lt;/P&gt;&lt;P&gt;              table_without_data   = 2&lt;/P&gt;&lt;P&gt;              option_not_valid     = 3&lt;/P&gt;&lt;P&gt;              field_not_valid      = 4&lt;/P&gt;&lt;P&gt;              not_authorized       = 5&lt;/P&gt;&lt;P&gt;              data_buffer_exceeded = 6&lt;/P&gt;&lt;P&gt;              others               = 7 .&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message e008 with i_langobj 'failed'.  "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    append lines of stmp_dokhl to old_dokhl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 06:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table/m-p/2214217#M474649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T06:54:31Z</dc:date>
    </item>
  </channel>
</rss>

