<?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 Using FM 'RFC_GET_TABLE_ENTRIES' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433202#M1246537</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've a program who need's read data from another machine.&lt;/P&gt;&lt;P&gt;I've some  z's programs that use that FM and i try use it but the result is empty.I call the function by this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RFC_GET_TABLE_ENTRIES' DESTINATION l_rfcdest " RFC destination of my other machine&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            gen_key     = l_genkey  "VBELN of VBKD&lt;/P&gt;&lt;P&gt;            max_entries = 1&lt;/P&gt;&lt;P&gt;            table_name  = 'VBKD'&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            entries     = lt_dadosremote&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS      = 1.&lt;/P&gt;&lt;P&gt;        IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           cf_retcode = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          sy-msgid = 'ZSD'.&lt;/P&gt;&lt;P&gt;          sy-msgno = '079'.&lt;/P&gt;&lt;P&gt;          sy-msgty = 'E'.&lt;/P&gt;&lt;P&gt;          sy-msgv1 = l_rfcdest.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 15:26:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T15:26:43Z</dc:date>
    <item>
      <title>Using FM 'RFC_GET_TABLE_ENTRIES'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433202#M1246537</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've a program who need's read data from another machine.&lt;/P&gt;&lt;P&gt;I've some  z's programs that use that FM and i try use it but the result is empty.I call the function by this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RFC_GET_TABLE_ENTRIES' DESTINATION l_rfcdest " RFC destination of my other machine&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            gen_key     = l_genkey  "VBELN of VBKD&lt;/P&gt;&lt;P&gt;            max_entries = 1&lt;/P&gt;&lt;P&gt;            table_name  = 'VBKD'&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            entries     = lt_dadosremote&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS      = 1.&lt;/P&gt;&lt;P&gt;        IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           cf_retcode = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          sy-msgid = 'ZSD'.&lt;/P&gt;&lt;P&gt;          sy-msgno = '079'.&lt;/P&gt;&lt;P&gt;          sy-msgty = 'E'.&lt;/P&gt;&lt;P&gt;          sy-msgv1 = l_rfcdest.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 15:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433202#M1246537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T15:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM 'RFC_GET_TABLE_ENTRIES'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433203#M1246538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this[ wiki|https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&amp;amp;pageid=85000499]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 15:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433203#M1246538</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-03-25T15:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM 'RFC_GET_TABLE_ENTRIES'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433204#M1246539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you should confirm , whether  VBKD table has any entries in destination system.&lt;/P&gt;&lt;P&gt;You should made the following change in your code.&lt;/P&gt;&lt;P&gt;In the following Code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RFC_GET_TABLE_ENTRIES' DESTINATION l_rfcdest " RFC destination of my other machine&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;from_key = l_fromkey&lt;/P&gt;&lt;P&gt;max_entries = 10&lt;/P&gt;&lt;P&gt;table_name = 'VBKD'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;entries = lt_dadosremote&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;cf_retcode = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;sy-msgid = 'ZSD'.&lt;/P&gt;&lt;P&gt;sy-msgno = '079'.&lt;/P&gt;&lt;P&gt;sy-msgty = 'E'.&lt;/P&gt;&lt;P&gt;sy-msgv1 = l_rfcdest.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got the required records from destination system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;Prasad GVK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 15:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433204#M1246539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using FM 'RFC_GET_TABLE_ENTRIES'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433205#M1246540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ricardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried the FM in our systems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to work fine if: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data exists in remote table for the vbeln entered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln is entered in correct format&lt;/P&gt;&lt;P&gt;    - if you used parm get_key you must pad vbeln with 0s.&lt;/P&gt;&lt;P&gt;    - if you used parm from_key you do not need to pad vbeln.&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;&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 17:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-fm-rfc-get-table-entries/m-p/5433205#M1246540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T17:27:21Z</dc:date>
    </item>
  </channel>
</rss>

