<?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: transfer tables between functions ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932847#M386125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does TDRAW have the same structure as TEMPDRAW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2007 17:25:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-14T17:25:45Z</dc:date>
    <item>
      <title>transfer tables between functions ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932846#M386124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i am trying to transfer a table from one function to another and i am getting a run time error saying that:&lt;/P&gt;&lt;P&gt;although the currently specified field 'tempdraw' is the correct type, its length is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what seems to be the problem?&lt;/P&gt;&lt;P&gt;here is a code sample.&lt;/P&gt;&lt;P&gt;i have to transfer table from function1 to function2. here is what i am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function function1&lt;/P&gt;&lt;P&gt;DATA: tempdraw like draw occurs 0.&lt;/P&gt;&lt;P&gt;data: wa like line of tdraw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tdraw into wa.&lt;/P&gt;&lt;P&gt;append wa to tempdraw.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function function2&lt;/P&gt;&lt;P&gt; exporting tempdraw.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;endfunction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function function2&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;*"     REFERENCE(TL) LIKE  DRAW STRUCTURE  DRAW&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endfunction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so here i am getting the above stated runtime error.&lt;/P&gt;&lt;P&gt;I even tried to export the table to a memory id in functio1 and then import it in functio2 but this also does not seem to work. &lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 17:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932846#M386124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T17:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: transfer tables between functions ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932847#M386125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does TDRAW have the same structure as TEMPDRAW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 17:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932847#M386125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T17:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: transfer tables between functions ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932848#M386126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rob&lt;/P&gt;&lt;P&gt;yes, they are of the same type sorry i might have missed the following&lt;/P&gt;&lt;P&gt;code for functio1 starts with &lt;/P&gt;&lt;P&gt;function function1&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&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;*"      TDRAW STRUCTURE  DRAW OPTIONAL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endfunction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know rob why this is happening ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 17:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932848#M386126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T17:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: transfer tables between functions ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932849#M386127</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;The tables aren't declared in the function as import to receive a table. You need to declare it in the tables tab.&lt;/P&gt;&lt;P&gt;The error says that you have the same type, but in the import it's an workarea and the table tries to send more than one set of informations at a call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award with points the answers that helps you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 17:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-tables-between-functions/m-p/1932849#M386127</guid>
      <dc:creator>hermanoclaro</dc:creator>
      <dc:date>2007-02-14T17:33:04Z</dc:date>
    </item>
  </channel>
</rss>

