<?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: Passing tables between functions - compilation error ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984971#M402316</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;Is this a typo..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have given the parameter as COMPONENT ..But you are passing COMPONENTS.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" TABLES&lt;/P&gt;&lt;P&gt;*" &amp;lt;b&amp;gt;COMPONENT&amp;lt;/b&amp;gt; STRUCTURE SDOKCOMPRP OPTIONAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SDOK_PHIOS_FILE_PROPERTIES_GET'&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;component = &amp;lt;b&amp;gt;COMPONENTS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 16:44:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T16:44:01Z</dc:date>
    <item>
      <title>Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984970#M402315</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 append a line to a table and pass this tables in the tables parameter to the other function but i am getting a compilation error. Here is what i have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the declaration of function f1 in the tables section i have a table called component:&lt;/P&gt;&lt;P&gt;FUNCTION f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      COMPONENT STRUCTURE  SDOKCOMPRP OPTIONAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here i write code to append one line to COMPONENT*******&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;then i want to call function 'SDOK_PHIOS_FILE_PROPERTIES_GET'&lt;/P&gt;&lt;P&gt;and i am calling it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SDOK_PHIOS_FILE_PROPERTIES_GET'&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;component = COMPONENTS&lt;/P&gt;&lt;P&gt;BAD_OBJECTS = BADOBJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this is giving a compilation error saying that COMPONENTS is unknow,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After modifying the table in function f1 i want to send it to function ''SDOK_PHIOS_FILE_PROPERTIES_GET' which will modify the table again and return it to fucntion f1. Does anyone know how to do this ?&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>Wed, 21 Feb 2007 16:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984970#M402315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T16:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984971#M402316</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;Is this a typo..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have given the parameter as COMPONENT ..But you are passing COMPONENTS.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" TABLES&lt;/P&gt;&lt;P&gt;*" &amp;lt;b&amp;gt;COMPONENT&amp;lt;/b&amp;gt; STRUCTURE SDOKCOMPRP OPTIONAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SDOK_PHIOS_FILE_PROPERTIES_GET'&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;component = &amp;lt;b&amp;gt;COMPONENTS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 16:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984971#M402316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T16:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984972#M402317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the table is modied by the function f1 it returns sy-subrc = 0 if it is 0 then pass  it to function F2 and here to check the sy-subrc and if it is 0 then pass it again to function F1 by calling it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 16:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984972#M402317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T16:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984973#M402318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it is not a typo, &lt;/P&gt;&lt;P&gt;When i try components = component.&lt;/P&gt;&lt;P&gt;it compiles and works, but this will assign the table components found in function 'SDOK_PHIOS_FILE_PROPERTIES_GET'&lt;/P&gt;&lt;P&gt;to the table component declared in my function f1. But this is not what i want, i want to modify the table component "which is declared in my fucntion and is of the same type of COMPONENTS declared in the second function" after mmodifying it i want to send it to fucntion 'SDOK_PHIOS_FILE_PROPERTIES_GET' to further process it and then i want to send COMPONENTS function from 'SDOK_PHIOS_FILE_PROPERTIES_GET' back to f1 so that i can read the values from it. Any ideas on how to send these tables back and forth ?&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>Wed, 21 Feb 2007 16:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984973#M402318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984974#M402319</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 still didn't understand your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the tables parameter&lt;/P&gt;&lt;P&gt;*" COMPONENT STRUCTURE SDOKCOMPRP OPTIONAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to modify the COMPONENT parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then declare a local internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_COMPONENT LIKE SDOKCOMPRP OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_COMPONENT[] = COMPONENT[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***APPEND THE LINE to the table T_COMPONENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass T_COMPONENT to the FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SDOK_PHIOS_FILE_PROPERTIES_GET'&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;component = &amp;lt;b&amp;gt;T_COMPONENT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;BAD_OBJECTS = BADOBJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not what you want..Please explain your requirement in detail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 16:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984974#M402319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T16:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984975#M402320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cannot understand it clearly...&lt;/P&gt;&lt;P&gt;but i wht i think is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;component is an internal table &lt;/P&gt;&lt;P&gt;which ur passing it to function module F1 and here the values in the table component changes, noe u want to send the changed component table to function F2 and here too component table get changed and u want this component table to be send back to function F1...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 16:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984975#M402320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing tables between functions - compilation error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984976#M402321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 has a table call it x, f1 modifies x and want to send it to f2 "f2 is an internal sap function, and has an internal tables called y which is the same type as x" f2 also changes table x and now it returns it to f1 which prints its content. this is what i want to do but it is not working. for some reason, this is not taking place, i am not knowing how to send the tables back and forth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside f1 i say&lt;/P&gt;&lt;P&gt;call function 'f2'&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;        y=x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i am debugging, i enter into fucntion f2 and its copy of table y is not equal to the values inside x, so how to send this table x from f1 to f2 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 17:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-between-functions-compilation-error/m-p/1984976#M402321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T17:09:49Z</dc:date>
    </item>
  </channel>
</rss>

