<?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: Method parameter as TYPE Any in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698148#M31600</link>
    <description>&lt;P&gt;1. If the type TY_ITAB of your table is known to you statically at compile time, just convert the parameter PARAM with a standard conversion:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;  DATA(itab) = CONV ty_itab( param ).
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Note that if the table is large, this can have performance issues as you are potentially copying PARAM. To avoid this, you can also use a field symbol of the type instead:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS &amp;lt;itab&amp;gt; TYPE ty_itab.
ASSIGN param TO &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;2. If the type of the table is not known at compile time, use a generically typed field symbol&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS &amp;lt;itab&amp;gt; TYPE TABLE.
ASSIGN param TO &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Now, ITAB resp. &amp;lt;ITAB&amp;gt; are variables of table type accepted by LOOP AT and other table manipulation statements.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 11:16:47 GMT</pubDate>
    <dc:creator>BjoernJueliger</dc:creator>
    <dc:date>2018-07-20T11:16:47Z</dc:date>
    <item>
      <title>Method parameter as TYPE Any</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698145#M31597</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;
  &lt;P&gt;SAP enhancement has method parameter as TYPE ANY in Changing, by passing program it passed as a internal table but in that method as its TYPE ANY I am not able to use that as internal table, please suggest how we can do that?? &lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 21:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698145#M31597</guid>
      <dc:creator>amreshkumar_panda2</dc:creator>
      <dc:date>2018-07-19T21:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Method parameter as TYPE Any</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698146#M31598</link>
      <description>&lt;P&gt;I think you can do it this way:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA i_ref_tab TYPE REF TO DATA.
FIELD-SYMBOLS &amp;lt;itab&amp;gt; TYPE STANDARD TABLE.
CREATE DATA i_ref_tab LIKE input_tab[].
ASSIGN i_ref_tab-&amp;gt;* to &amp;lt;itab&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 04:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698146#M31598</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-07-20T04:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Method parameter as TYPE Any</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698147#M31599</link>
      <description>&lt;P&gt;Assign it to a &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm"&gt;Field Symbol &lt;/A&gt;of your required data type and use that as usual.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 06:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698147#M31599</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-07-20T06:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Method parameter as TYPE Any</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698148#M31600</link>
      <description>&lt;P&gt;1. If the type TY_ITAB of your table is known to you statically at compile time, just convert the parameter PARAM with a standard conversion:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;  DATA(itab) = CONV ty_itab( param ).
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Note that if the table is large, this can have performance issues as you are potentially copying PARAM. To avoid this, you can also use a field symbol of the type instead:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS &amp;lt;itab&amp;gt; TYPE ty_itab.
ASSIGN param TO &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;2. If the type of the table is not known at compile time, use a generically typed field symbol&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS &amp;lt;itab&amp;gt; TYPE TABLE.
ASSIGN param TO &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Now, ITAB resp. &amp;lt;ITAB&amp;gt; are variables of table type accepted by LOOP AT and other table manipulation statements.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 11:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-as-type-any/m-p/698148#M31600</guid>
      <dc:creator>BjoernJueliger</dc:creator>
      <dc:date>2018-07-20T11:16:47Z</dc:date>
    </item>
  </channel>
</rss>

