<?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: table with type ANY in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266841#M780723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY TABLE is used to type a parameter, or field symbol, that can be a table of any type or structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY is used to type a parameter, or field symbol, that can be any type. You can't, however, use any table operations on a parameter/field-symbol typed as ANY. For that, you have to use ANY TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same applies to ANY. You can pass to the method a data object, without specifying its type (i.e, in dynamic programs).&lt;/P&gt;&lt;P&gt;Suppose that I need to split a line into a table, but I don't know the structure of this line:&lt;/P&gt;&lt;P&gt;I have a method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeMETHOD split_line_in_table IMPORTING im_line TYPE ANY&lt;/P&gt;&lt;P&gt;EXPORTING ex_table TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeMETHOD split_line_in_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT im_line AT separator INTO TABLE ex_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i can pass this method a line of ANY structure and get a table without specifying its structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 03:42:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T03:42:36Z</dc:date>
    <item>
      <title>table with type ANY in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266840#M780722</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;&lt;/P&gt;&lt;P&gt;I want to use a function module in different programs. I want to pass always a table and in a string the name of the structure, so that I can access the data with ASSIGN and the passed structure name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a structure I can use the type ANY, but if I want to use a table in a function module, I need to define a table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to define a tabletype with the type ANY? A Workaround would be fine too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards!&lt;/P&gt;&lt;P&gt; Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 14:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266840#M780722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: table with type ANY in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266841#M780723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY TABLE is used to type a parameter, or field symbol, that can be a table of any type or structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY is used to type a parameter, or field symbol, that can be any type. You can't, however, use any table operations on a parameter/field-symbol typed as ANY. For that, you have to use ANY TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same applies to ANY. You can pass to the method a data object, without specifying its type (i.e, in dynamic programs).&lt;/P&gt;&lt;P&gt;Suppose that I need to split a line into a table, but I don't know the structure of this line:&lt;/P&gt;&lt;P&gt;I have a method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeMETHOD split_line_in_table IMPORTING im_line TYPE ANY&lt;/P&gt;&lt;P&gt;EXPORTING ex_table TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeMETHOD split_line_in_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT im_line AT separator INTO TABLE ex_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i can pass this method a line of ANY structure and get a table without specifying its structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 03:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266841#M780723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T03:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: table with type ANY in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266842#M780724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly the information, which I was searching for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 08:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-type-any-in-function-module/m-p/3266842#M780724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T08:36:06Z</dc:date>
    </item>
  </channel>
</rss>

