<?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 any example to import and export itab to function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649102#M1444691</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;as the table parameter in function module is obsolete, please advise an example on how to pass in an internal table &lt;/P&gt;&lt;P&gt;and return back the result in an internal table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, i have itab1 and itab2. By using table parameters i got the following code. Please advise alternative way by using import and export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      itab1 STRUCTURE  Zitab1&lt;/P&gt;&lt;P&gt;*"      itab2 STRUCTURE  Zitab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**do some logic here to assign value to itab2 and return.&lt;/P&gt;&lt;P&gt;  wa_itab2-a = xxx .&lt;/P&gt;&lt;P&gt;  wa_itab2-b = xxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append wa_itab2 to itab2.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Mar 2010 08:05:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-13T08:05:51Z</dc:date>
    <item>
      <title>any example to import and export itab to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649102#M1444691</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;as the table parameter in function module is obsolete, please advise an example on how to pass in an internal table &lt;/P&gt;&lt;P&gt;and return back the result in an internal table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, i have itab1 and itab2. By using table parameters i got the following code. Please advise alternative way by using import and export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      itab1 STRUCTURE  Zitab1&lt;/P&gt;&lt;P&gt;*"      itab2 STRUCTURE  Zitab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**do some logic here to assign value to itab2 and return.&lt;/P&gt;&lt;P&gt;  wa_itab2-a = xxx .&lt;/P&gt;&lt;P&gt;  wa_itab2-b = xxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; append wa_itab2 to itab2.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 08:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649102#M1444691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-13T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: any example to import and export itab to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649103#M1444692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create TABLES TYPES for your Zitab1 &amp;amp; Zitab2 then declare it as LIKE in the tables tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check function module MMPUR_TEXT_EXP_SUBSCREEN and its tables tab MMPUR_T_TEXTLINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 08:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649103#M1444692</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-13T08:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: any example to import and export itab to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649104#M1444693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi a®s,&lt;/P&gt;&lt;P&gt;that is what i'm doing now in the function module. but i feel not comfortable as the system prompt me that the like statement and table parameters are obsolete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any example to input and output the table by using export and import parameters.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 08:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649104#M1444693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-13T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: any example to import and export itab to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649105#M1444694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i am saying is declare your ZITAB1 &amp;amp; 2 as TABLES TYPE then give that in the Table Tab declaration. Please see the TABLES TYPE as MMPUR_T_TEXTLINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a tables types as ZITAB1_T for ZITAB1 then put this table type ZITAB1_T then you will not get that message as obsolete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 08:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649105#M1444694</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-13T08:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: any example to import and export itab to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649106#M1444695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;suppose you have two structure name struc1 and struc2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table type zitab1 &amp;amp; 2 for both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(itab1) TYPE  Zitab1&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(itab2) TYPE  Zitab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can avoid to use the obsolete table parameters as well as LIKE in function module creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 13:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649106#M1444695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-13T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: any example to import and export itab to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649107#M1444696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If do you want multuple entries whether this work ? putting structure as TYPE in IMPORT &amp;amp; EXPORT parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Mar 2010 05:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-example-to-import-and-export-itab-to-function-module/m-p/6649107#M1444696</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-14T05:20:29Z</dc:date>
    </item>
  </channel>
</rss>

