<?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: Internal table in function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957164#M66619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to close the post if we satisfy with reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Aug 2005 08:59:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-28T08:59:29Z</dc:date>
    <item>
      <title>Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957155#M66610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can one pass internal table in Function table. &lt;/P&gt;&lt;P&gt;In my case importing &amp;amp; exporting an internal table. the table gets updated in the function module.&lt;/P&gt;&lt;P&gt;Problem is internal table is not defined like a DDIc structure. Infact its defined using various field from various tables. so when tried to put loop on internal table it says table is not defined as internal table.&lt;/P&gt;&lt;P&gt;In such case where to define internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coding is&lt;/P&gt;&lt;P&gt;   Import:&lt;/P&gt;&lt;P&gt;    ITAB1&lt;/P&gt;&lt;P&gt;    ITAB2&lt;/P&gt;&lt;P&gt;   Export:&lt;/P&gt;&lt;P&gt;    ETAB1&lt;/P&gt;&lt;P&gt;    ETAB2&lt;/P&gt;&lt;P&gt;PLS HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957155#M66610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957156#M66611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anupma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have 2 choices:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Pass the tables using the TABLES parameters (both import and export).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Declare in the Data Dictionary table types for the internal tables ITAB1 ITAB2 ETAB1 and ETAB2; then you can pass the internal tables to the FM with reference to the table type defined in the Data Dictionary.&lt;/P&gt;&lt;P&gt;&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957156#M66611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957157#M66612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using that in import parametet, use that in tables. &lt;/P&gt;&lt;P&gt;Import/export parameter are only workareas and not tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957157#M66612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957158#M66613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you can transfer this kind of table with ANY TABLE.&lt;/P&gt;&lt;P&gt;You can reference the example like FM 'REUSE_ALV_LIST_DISPLAY'  table T_OUTTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without specify the type of the table, you can transfer it into FM. &lt;/P&gt;&lt;P&gt;And GET REF TO to get the reference of the table, assign to a Field-Symbol.&lt;/P&gt;&lt;P&gt;Then you can use some way to populate the internal table, E.G.  ASSIGN  Field-Symbol, or  RTTI technology.&lt;/P&gt;&lt;P&gt;There are many resources you can reference in the SDN.&lt;/P&gt;&lt;P&gt;Sorry for haven't too much time for list the resources for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957158#M66613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957159#M66614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure whether i under stood your problem clearly but  let me explain one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a FM if you want to pass any table to it or take values from a table from FM, it is declared under tab 'Tables'.&lt;/P&gt;&lt;P&gt;Here which ever tables you declare say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vartab type dbstr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is same as define in editor as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data vartab type dbstr occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957159#M66614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957160#M66615</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;I thing the problem with work area / Header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you do like&lt;/P&gt;&lt;P&gt;1. first define the structure ( now you defined as internal table &lt;/P&gt;&lt;P&gt;  Data : begin of ISTRuc,&lt;/P&gt;&lt;P&gt;          matnr  like mara-matnr,&lt;/P&gt;&lt;P&gt;          eindt  like mara-eindt,&lt;/P&gt;&lt;P&gt;         end of Istruc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : Itab type Istruc occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;  you keep the same internal table and define one more work area process the data with help of work area&lt;/P&gt;&lt;P&gt;  data : wa_a like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab into wa_a.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 10:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957160#M66615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T10:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957161#M66616</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;Typically 'IMPORT' and 'EXPORT' parameters of a function module are not tables, even though there are exceptions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are ITAB1 ITAB2 ETAB1 ETAB2 defined in your funtion module interface? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they don't have any type reference, then how is the function module recognizing the structure and modifying it(you said 'the table gets updated in the function module.')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are passing your internal table to the function module, all you are passing is the header of the internal table. Once you get your ETAB1 and ETAB2 you need to modify your internal table accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the function module code is what you want change, then put the ITAB1, ITAB2, ETAB1, ETAB2 in the tables parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at GUI_UPLOAD or GUI_DOWNLOAD function modules, they use a table without structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give us more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 15:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957161#M66616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T15:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957162#M66617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this resolved? If so, please reward and close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 19:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957162#M66617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T19:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957163#M66618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;It is discouraging to see that the posts are not being closed. Please close the post if answered, and if not please let the forum know. It doesn't have to be left open like this.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your attention,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2005 15:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957163#M66618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-27T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957164#M66619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to close the post if we satisfy with reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2005 08:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957164#M66619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-28T08:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957165#M66620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on to the left of the post (reply to your question) you will see three radio buttons. choose the one based on the answer. choosing solved will mark the thread as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2005 09:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957165#M66620</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-28T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957166#M66621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have faced a similar situation in one of my earlier programs. In this case, I have used ABAP Memory option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is, first I have exported the internal table ITAB to memory &lt;/P&gt;&lt;P&gt; using EXPORT ITAB from ITAB to MEMORY ID 'ZITAB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; later on inside the Function Module, I have retrievied the ITAB contents by importing it.  ( IMPORT ITAB to ITAB FROM MEMORY ID 'ZITAB'. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 15:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-in-function-module/m-p/957166#M66621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T15:41:41Z</dc:date>
    </item>
  </channel>
</rss>

