<?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 SELECT from a remote dictionary table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159410#M1195117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all mates,&lt;/P&gt;&lt;P&gt;I'm trying to make a simple record that, assuming a logical system "target" is specified with a parameter, tries to retrieve all the entries in a dictionary, std table (i.e, the EKPO one, to retrieve Order Requisition numbers of that system) of a remote system.&lt;/P&gt;&lt;P&gt;Example: the parameter I specify is the target logical system: a select option then declared as follows:&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_po_id FOR wa_po-object_id.&lt;/P&gt;&lt;P&gt;has a related search help that I would like to do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_po_id-low.&lt;/P&gt;&lt;P&gt;  DATA: it_help_item TYPE TABLE OF my_alv_type,&lt;/P&gt;&lt;P&gt;        it_return TYPE TABLE OF ddshretval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE it_help_item&lt;/P&gt;&lt;P&gt;    FROM remoteEKPO (that is to say, EKPO in log_sys specified)&lt;/P&gt;&lt;P&gt;    WHERE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is something like this possible in an "easy" way? Or the only way to do it is to implement a function in each backend to retrieve the local EKPO via RFC?&lt;/P&gt;&lt;P&gt;Thanks a lot for your help &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2009 14:48:49 GMT</pubDate>
    <dc:creator>matteo_montalto</dc:creator>
    <dc:date>2009-02-17T14:48:49Z</dc:date>
    <item>
      <title>SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159410#M1195117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all mates,&lt;/P&gt;&lt;P&gt;I'm trying to make a simple record that, assuming a logical system "target" is specified with a parameter, tries to retrieve all the entries in a dictionary, std table (i.e, the EKPO one, to retrieve Order Requisition numbers of that system) of a remote system.&lt;/P&gt;&lt;P&gt;Example: the parameter I specify is the target logical system: a select option then declared as follows:&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_po_id FOR wa_po-object_id.&lt;/P&gt;&lt;P&gt;has a related search help that I would like to do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_po_id-low.&lt;/P&gt;&lt;P&gt;  DATA: it_help_item TYPE TABLE OF my_alv_type,&lt;/P&gt;&lt;P&gt;        it_return TYPE TABLE OF ddshretval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE it_help_item&lt;/P&gt;&lt;P&gt;    FROM remoteEKPO (that is to say, EKPO in log_sys specified)&lt;/P&gt;&lt;P&gt;    WHERE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is something like this possible in an "easy" way? Or the only way to do it is to implement a function in each backend to retrieve the local EKPO via RFC?&lt;/P&gt;&lt;P&gt;Thanks a lot for your help &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 14:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159410#M1195117</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-02-17T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159411#M1195118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matteo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's the std fm module RFC_READ_TABLE to read a SAP table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 14:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159411#M1195118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T14:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159412#M1195119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this fm will not work with qty &amp;amp; unit fields in ECC 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 14:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159412#M1195119</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-02-17T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159413#M1195120</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;Yes I know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there's a oss note about this problem, i don't remember the number, but this is its concept:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's no solution, if the available std fm for RFC can't work for a certain table: it can only create an own fm for that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 15:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159413#M1195120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T15:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159414#M1195121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all mates, &lt;/P&gt;&lt;P&gt;better explain my current need... I JUST need to extract Purchase Order numbers, and not details, in order to put them in a subsequent ALV mask for selection. Do you think that method can do what I'm looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 15:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159414#M1195121</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-02-17T15:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159415#M1195122</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 this case u can use the fm RFC_READ_TABLE: here u need to indicate which table has to be read and which fields has to be extracted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to get only "CHAR" field that fm is ok: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: T_WHERE  TYPE TABLE OF RFC_DB_OPT,
      T_FIELDS TYPE TABLE OF RFC_DB_FLD,
      T_DATA   TYPE TABLE OF TAB512.

CALL FUNCTION 'RFC_READ_TABLE' DESTINATION &amp;lt;DEST&amp;gt;
  EXPORTING
    query_table                = 'EKPO'
*   DELIMITER                  = ' '
*   NO_DATA                    = ' '
*   ROWSKIPS                   = 0
*   ROWCOUNT                   = 0
  tables
    OPTIONS                    = T_WHERE    "&amp;lt;---- Where conditions
    fields                     = T_FIELDS   "&amp;lt;---- Field to be extracted
    data                       = T_DATA     "&amp;lt;---- Results
* EXCEPTIONS
*   TABLE_NOT_AVAILABLE        = 1
*   TABLE_WITHOUT_DATA         = 2
*   OPTION_NOT_VALID           = 3
*   FIELD_NOT_VALID            = 4
*   NOT_AUTHORIZED             = 5
*   DATA_BUFFER_EXCEEDED       = 6
*   OTHERS                     = 7
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 15:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159415#M1195122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT from a remote dictionary table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159416#M1195123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx to ya all mates &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 16:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-remote-dictionary-table/m-p/5159416#M1195123</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2009-02-17T16:43:54Z</dc:date>
    </item>
  </channel>
</rss>

