<?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 Reg BAPI to select table entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987891#M705604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any bapi/FM which will select data from any database table, based on a selection criteria we provide as import parameter and display any table entries satisfying the criteria?&lt;/P&gt;&lt;P&gt;i know RFC_GET_TABLE_ENTIRES but here we cant give a selection criteria.. is there any other FM/BAPI to do this task?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2007 14:46:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-26T14:46:41Z</dc:date>
    <item>
      <title>Reg BAPI to select table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987891#M705604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any bapi/FM which will select data from any database table, based on a selection criteria we provide as import parameter and display any table entries satisfying the criteria?&lt;/P&gt;&lt;P&gt;i know RFC_GET_TABLE_ENTIRES but here we cant give a selection criteria.. is there any other FM/BAPI to do this task?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 14:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987891#M705604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reg BAPI to select table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987892#M705605</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;Please check FM RFC_READ_TABLE.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 14:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987892#M705605</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-26T14:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reg BAPI to select table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987893#M705606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sreejith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the FM RFC_READ_TABLE where you can pass the where conditions in the options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: BEGIN OF rfc_options OCCURS 0.
          INCLUDE STRUCTURE rfc_db_opt.
  DATA: END OF rfc_options.

  DATA: BEGIN OF rfc_fields OCCURS 0.
          INCLUDE STRUCTURE rfc_db_fld.
  DATA: END OF rfc_fields.

  DATA: BEGIN OF rfc_data OCCURS 0.
          INCLUDE STRUCTURE tab512.
  DATA: END OF rfc_data.
* read inbound partner-agreements
  tab_name = 'EDP13'.
  REFRESH rfc_options.
  REFRESH rfc_fields.
  REFRESH rfc_data.
  REFRESH rfc_options.
  REFRESH rfc_fields.
  REFRESH rfc_data.

rfc_options = 'RCVPRN = P_RCVPRN'.
append rfc_options.

  rfc_fields-fieldname = 'MANDT'.
  rfc_fields-offset = 0.
  rfc_fields-length = 3.
  rfc_fields-type = 'C'.
  APPEND rfc_fields.
  rfc_fields-fieldname = 'RCVPRN'.
  rfc_fields-offset = 3.
  rfc_fields-length = 10.
  rfc_fields-type = 'C'.
  APPEND rfc_fields.
  rfc_fields-fieldname = 'RCVPRT'.
  rfc_fields-offset = 13.
  rfc_fields-length = 2.
  rfc_fields-type = 'C'.
  APPEND rfc_fields.
  rfc_fields-fieldname = 'RCVPFC'.
  rfc_fields-offset = 15.
  rfc_fields-length = 2.
  rfc_fields-type = 'C'.
  APPEND rfc_fields.
  CALL FUNCTION 'RFC_READ_TABLE'
    DESTINATION g_rfcdest
    EXPORTING
      query_table          = tab_name
    TABLES
      options              = rfc_options
      fields               = rfc_fields
      data                 = rfc_data
    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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 14:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987893#M705606</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-26T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reg BAPI to select table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987894#M705607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This does not meet my requirement as we cant give a selection criteria as input to this FM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 14:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987894#M705607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T14:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg BAPI to select table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987895#M705608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can give as many where conditions  in the OPTIONS table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 14:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987895#M705608</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-26T14:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reg BAPI to select table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987896#M705609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want a fm which i can directly execute and see the table entries in Simulation clients. I cant do any coding .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 15:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bapi-to-select-table-entries/m-p/2987896#M705609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T15:01:54Z</dc:date>
    </item>
  </channel>
</rss>

