<?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 function module.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913414#M380053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;       i m new to function module. can any one tell me wat will be the associated type of the itab in the import of my function module. and  my itab has fields from different table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one send give me the link for creating a function  module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        neha gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2007 10:56:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-16T10:56:42Z</dc:date>
    <item>
      <title>creating a function module..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913414#M380053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;       i m new to function module. can any one tell me wat will be the associated type of the itab in the import of my function module. and  my itab has fields from different table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one send give me the link for creating a function  module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        neha gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913414#M380053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: creating a function module..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913415#M380054</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;first of all create a strucutre in se11. this structure is similar to your internal table then declare the importing/exporting parameter with that structure type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913415#M380054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: creating a function module..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913416#M380055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase you want a function module interface table with fields from different DB tables, then create a structure in a type pool from SE11 and include the type pool in the main program (TOP include) of your function group.&lt;/P&gt;&lt;P&gt;Then you can use the structure as a TYPE decleration in your function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if your function module is RFC enabled, then it is not possible to use type pool structures and you must create a structure in SE11   data dictionary level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 10:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913416#M380055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T10:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: creating a function module..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913417#M380056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then U need to create a structure for the purpose in DDIC the associate this to the FM internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 11:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913417#M380056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: creating a function module..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913418#M380057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a link for creating a function module.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*Please mark all the helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 11:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913418#M380057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: creating a function module..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913419#M380058</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;if you do not want to do the DDIC work and you remain inside your system (no RFC), you can use a reference variable of TYPE REF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  l_ref type ref to data.
  get reference of itab into l_ref.
call function 'ZXY'
  exporting 
    REF = l_ref
* ...
*
In the function:

field-symbols:
  &amp;lt;itab&amp;gt; type table.
assign REF-&amp;gt;* to &amp;lt;itab&amp;gt;.
*...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sake of transparency, it is definitely better to create a structure and a table type with the stzructure as line type in data dictionary. But if you want flexibility, the passing of reference variables is a good method.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 11:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-function-module/m-p/1913419#M380058</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-16T11:41:16Z</dc:date>
    </item>
  </channel>
</rss>

