<?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: Function module table output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006745#M957155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what's happening, My internal table is filled then the next command is endfunction as soon as the FM leaves the form for filling my table the contents are cleared. So I need to find a way to not clear the contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 00:46:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T00:46:46Z</dc:date>
    <item>
      <title>Function module table output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006742#M957152</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 am having a problem with a function module I created, First I created the program as a stand alone program and it runs fine, fills up the output table and displays data. I then put the code into a function module. When I run the function module I get no results BUT if I put a breakpoint at the last command beffore end function I see all my records in my output table. How do I get the function module to end and show me how many records were inserted into my table? I tried declaring my table in the tables tab but did not have any luck. Any idea's?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 23:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006742#M957152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T23:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function module table output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006743#M957153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the tables tab declare your table output like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RETURN LIKE BAPIRETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the program fill the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
move: 'E'  to return-type,
      '002' to return-code,
      text-m17 to return-message.
append return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And call the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: t_return TYPE TABLE OF BAPIRETURN WITH HEADER LINE.

CALL FUNCTION &amp;lt;fm_name&amp;gt;
  TABLES
    return = t_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Giancarlo Achin Aguero on Jun 19, 2008 2:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 00:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006743#M957153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T00:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module table output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006744#M957154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks,&lt;/P&gt;&lt;P&gt;  I will try that in a program but my question really is how do I see my table while still in the function module? I.E when the function module ends and says ran xxx microseconds and shows table and results. I am getting zero results even though if I look at the table right before the function ends it is full&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 00:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006744#M957154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T00:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module table output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006745#M957155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what's happening, My internal table is filled then the next command is endfunction as soon as the FM leaves the form for filling my table the contents are cleared. So I need to find a way to not clear the contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 00:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006745#M957155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T00:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function module table output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006746#M957156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George Laing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare ur table in TABLES paramenter Tab in the function module as shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameter Name                       Type                           Associated Type
LT_TAB                               TYPE                               MARA&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After fetching the data from the data base in to ur Internal table then populate the table LT_TAB by appending  or moving the contents directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use the Table IT_TAB is populated or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 02:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006746#M957156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T02:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function module table output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006747#M957157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try to see that the structure of output_table into of the program is equal to the estructure of output_table into the function, maybe this will be the error ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-table-output/m-p/4006747#M957157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:46:36Z</dc:date>
    </item>
  </channel>
</rss>

