<?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 creating a RFC function module to retreive data from multiple tables. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229972#M770475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;i have a requirement to create a RFC function module.where i need to fetch the data from multiple tables  and  when i give material no. as input and if that doesnt exist then i need to get a error message.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I m not sure about the PARAMETRES  to be passed so i am giving a sample code below which i will be using .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So pls provide me the detail steps according to the code below.&lt;/P&gt;&lt;P&gt;Your efforts will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;simraan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2008 04:33:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-17T04:33:59Z</dc:date>
    <item>
      <title>creating a RFC function module to retreive data from multiple tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229972#M770475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;i have a requirement to create a RFC function module.where i need to fetch the data from multiple tables  and  when i give material no. as input and if that doesnt exist then i need to get a error message.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I m not sure about the PARAMETRES  to be passed so i am giving a sample code below which i will be using .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So pls provide me the detail steps according to the code below.&lt;/P&gt;&lt;P&gt;Your efforts will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;simraan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 04:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229972#M770475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T04:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: creating a RFC function module to retreive data from multiple tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229973#M770476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Simran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create an Structure in R/3 for the fields which u will return from RFC.&lt;/P&gt;&lt;P&gt;Create one Import parameter for Material No.&lt;/P&gt;&lt;P&gt;Add one Export parameter for the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Material does not exits in system, return the error message and if everything is find populate the Table with the require result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points, if helpfull....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 04:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229973#M770476</guid>
      <dc:creator>piyush_mathur</dc:creator>
      <dc:date>2008-01-17T04:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: creating a RFC function module to retreive data from multiple tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229974#M770477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you need to read material data in RFC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check FM: &lt;STRONG&gt;CRS_MATERIAL_READ_ALL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to do as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
1. Declare parameters and tables as above FM
2. Give an additional parameter for Return Message
3. Within the FM, first check the material existence. If not populate error mesg in your RETURN mesg parameters.
4. Call above FM with the same parameters.
5. Output is same as above.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 05:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-rfc-function-module-to-retreive-data-from-multiple-tables/m-p/3229974#M770477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T05:05:31Z</dc:date>
    </item>
  </channel>
</rss>

