<?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 Parameter Passing in Functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103956#M104215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to pass in an internal table of C (Max length 1024), bit confused about the best way of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way of doing this? Do I define it under imports , or tables? Do I have to define a new type in SE11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2005 10:53:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-21T10:53:13Z</dc:date>
    <item>
      <title>Parameter Passing in Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103956#M104215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to pass in an internal table of C (Max length 1024), bit confused about the best way of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way of doing this? Do I define it under imports , or tables? Do I have to define a new type in SE11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 10:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103956#M104215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T10:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Passing in Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103957#M104216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt;  you should pass your table in TABLES section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  in the case of a table of C you can pass it with type "ANY TABLE" for example not structured table as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: xtab(1024) occurs 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the case of a structured table you should create a type table in SE11 and declare your table as "TYPE Z_TAB_TYPE"&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: xtab type Z_TAB_TYPE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of xtab occurs 0.
.......
data: end of xtab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 10:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103957#M104216</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2005-11-21T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Passing in Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103958#M104217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;create a structure in SE11.&lt;/P&gt;&lt;P&gt;and using that same under parameter type tables create the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 10:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103958#M104217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T10:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Passing in Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103959#M104218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt; If you want to pass the internal table in FMs, then use the Tables option. You don't need to crate any tables in SE11 .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 10:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103959#M104218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Passing in Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103960#M104219</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;Here is the sample code.Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;data itab type standard table of pa0001.&lt;/P&gt;&lt;P&gt;select * from pa0001 into table itab.&lt;/P&gt;&lt;P&gt;perform func &amp;lt;b&amp;gt;tables itab&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form func  tables   p_itab &amp;lt;b&amp;gt;structure pa0001&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;data lw type pa0001.&lt;/P&gt;&lt;P&gt;loop at p_itab into lw.&lt;/P&gt;&lt;P&gt;write lw-pernr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform.                    " func&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 11:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-in-functions/m-p/1103960#M104219</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-11-21T11:13:56Z</dc:date>
    </item>
  </channel>
</rss>

