<?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: Table parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712367#M311544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Along with the IMPORT EXPORT we also have TABLES parameters in the interface of the FM's. If you got SE37 the Function builder you can see a tab TABLES aong with IMPORT and EXPORT . You can enter you parameter name there and the structre of that table as the component type. Please make sure the strucutre is GLOBAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call the FM as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;FM_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; para1 = val1&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt; para2 = val2&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt; para3 = val3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2006 04:57:46 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2006-10-30T04:57:46Z</dc:date>
    <item>
      <title>Table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712365#M311542</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;   How we can pass a table parameter as a input parameter to FM and get the output as a table?Please give me some example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 04:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712365#M311542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T04:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712366#M311543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass a table as an import parameter in a Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a table type in SE11 of the table.&lt;/P&gt;&lt;P&gt;Then in SE37, in the import parameters, just give the parameter as &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;parameter type table  type_name.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me cite an example to justify my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you want to display the material number and description using a Function Module.You are selecting the required records and storing it in internal table ITAB with header line. You are calling a Function Module FUNCTION_MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION_MAKT contains an import parameter which is a table type of table MAKT.&lt;/P&gt;&lt;P&gt;In the Function Module, you are displaying the MATNR &amp;amp; MAKTX values. &lt;/P&gt;&lt;P&gt;Just write this code in the source code tab of the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COde&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_mytab type makt.&lt;/P&gt;&lt;P&gt;loop at mytable into wa_mytab.&lt;/P&gt;&lt;P&gt;write : wa_mytab-matnr,wa_mytab-maktx.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main program, just write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: makt.&lt;/P&gt;&lt;P&gt;data: itab type table of makt with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select * from makt into table itab up to 3 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSHAIL_FMTABLE1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;mytable = itab[]&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your query is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls amrk points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 04:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712366#M311543</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-30T04:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712367#M311544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Along with the IMPORT EXPORT we also have TABLES parameters in the interface of the FM's. If you got SE37 the Function builder you can see a tab TABLES aong with IMPORT and EXPORT . You can enter you parameter name there and the structre of that table as the component type. Please make sure the strucutre is GLOBAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call the FM as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;FM_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; para1 = val1&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt; para2 = val2&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt; para3 = val3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 04:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712367#M311544</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-10-30T04:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712368#M311545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the "Tables " options for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call fm &amp;lt;function name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : &amp;lt;table name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can pass the table by filling it.The output will be the same table after the operations conducted on it within your FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 04:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-parameter/m-p/1712368#M311545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T04:57:59Z</dc:date>
    </item>
  </channel>
</rss>

