<?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 access to Function Module metadata in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048634#M88602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code to retreive these values from database,  implement this code in a custom RFC enabled function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002.


data: xattributes type tfdir.
data: isignature type table of fupararef with header line.


parameters: p_func type tfdir-funcname.


select single * from tfdir into xattributes
             where funcname = p_func.

select * into table isignature from fupararef
             where funcname = p_func.


write:/ xattributes-funcname, xattributes-fmode.

skip 1.

loop at isignature.

  write:/ isignature-parameter,
          isignature-paramtype,
          isignature-structure,
          isignature-defaultval.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers and mark your post as solved when solved completely.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2005 15:34:54 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-12-14T15:34:54Z</dc:date>
    <item>
      <title>RFC access to Function Module metadata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048631#M88599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for an API that will allow my program to: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Get a list of RFC-callable BAPIs available in my R/3 system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Get all the metadata for a particular BAPI. I.e. the list of all the imports, exports and tables and their descriptions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there standard SAP function modules that perform either of these tasks? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do with task 2 is generate the logic to call the BAPI within my own GUI, and not require my user to go to the SAP GUI and, say, generate an skeleton RFC C program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 15:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048631#M88599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T15:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: RFC access to Function Module metadata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048632#M88600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if there is a standard function module.  But you can build your own.  You just need to read the FUPARAREF table to get the importing/exporting parameters.  And the TFDIR table to check if its an RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 15:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048632#M88600</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-14T15:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: RFC access to Function Module metadata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048633#M88601</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;use class CL_FUNCTION_BUILDER_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 15:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048633#M88601</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-12-14T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: RFC access to Function Module metadata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048634#M88602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code to retreive these values from database,  implement this code in a custom RFC enabled function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002.


data: xattributes type tfdir.
data: isignature type table of fupararef with header line.


parameters: p_func type tfdir-funcname.


select single * from tfdir into xattributes
             where funcname = p_func.

select * into table isignature from fupararef
             where funcname = p_func.


write:/ xattributes-funcname, xattributes-fmode.

skip 1.

loop at isignature.

  write:/ isignature-parameter,
          isignature-paramtype,
          isignature-structure,
          isignature-defaultval.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers and mark your post as solved when solved completely.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 15:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-access-to-function-module-metadata/m-p/1048634#M88602</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-14T15:34:54Z</dc:date>
    </item>
  </channel>
</rss>

