<?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: NEW constractor expression in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518856#M2004561</link>
    <description>&lt;P&gt;One is an internal table, one is a reference to an internal table. Are you asking what is a data reference?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 14:05:34 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-04-20T14:05:34Z</dc:date>
    <item>
      <title>NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518853#M2004558</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I was wondering what is the defference between the two. In what ways IT_INPUT is different from IT_INPUT1?&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_input,
        cola TYPE string,
        colb TYPE string,
       END OF ty_input.
DATA: it_input TYPE STANDARD TABLE OF ty_input.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
TYPES: ty_input1 TYPE TABLE OF t100 WITH EMPTY KEY.
DATA:it_input1 TYPE REF TO ty_input1.
it_input1 = NEW #( ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518853#M2004558</guid>
      <dc:creator>former_member601153</dc:creator>
      <dc:date>2022-04-20T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518854#M2004559</link>
      <description>&lt;P&gt;the usage is different : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_input = value #( ( cola = 'a'   colb = 'b' ) ).&lt;BR /&gt;it_input1-&amp;gt;*  = value #( ( text = 'a' ) ( text = 'b' ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For me the big difference, is, you could modify the "ref to"  data in another part of your code (another method even if you set USING).&lt;/P&gt;&lt;P&gt;I don't know why, NEW with data give me pimples&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518854#M2004559</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-04-20T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518855#M2004560</link>
      <description>&lt;P&gt;Can you provide an example for what you said please?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;For me the big difference, is, you could modify the "ref to" data in another part of your code (another method even if you set USING).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518855#M2004560</guid>
      <dc:creator>former_member601153</dc:creator>
      <dc:date>2022-04-20T13:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518856#M2004561</link>
      <description>&lt;P&gt;One is an internal table, one is a reference to an internal table. Are you asking what is a data reference?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518856#M2004561</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-20T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518857#M2004562</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;class my_beautiful_class definition.&lt;BR /&gt;public section.&lt;BR /&gt;  methods my_method_1.&lt;BR /&gt;  methods my_method_2&lt;BR /&gt;    importing&lt;BR /&gt;      o_table type ref to ty_input1.&lt;BR /&gt;endclass.&lt;BR /&gt;&lt;BR /&gt;class my_beautiful_class implementation.&lt;BR /&gt;  method my_method_1.&lt;BR /&gt;    data it_input1 type ref to ty_input1.&lt;BR /&gt;    it_input1 = new #( ).&lt;BR /&gt;    it_input1-&amp;gt;* = value #( ( text = 'a' ) ).&lt;BR /&gt;    my_method_2( it_input1 ).&lt;BR /&gt;    cl_demo_output=&amp;gt;display_data( it_input1-&amp;gt;* ).&lt;BR /&gt;  endmethod.&lt;BR /&gt;&lt;BR /&gt;  method my_method_2.&lt;BR /&gt;    append value t100( text = 'b' ) to o_table-&amp;gt;*.&lt;BR /&gt;  endmethod.&lt;BR /&gt;endclass.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;start-of-selection.&lt;BR /&gt;  data(o_cut) = new my_beautiful_class( ).&lt;BR /&gt;  o_cut-&amp;gt;my_method_1( ).&lt;BR /&gt;end-of-selection.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518857#M2004562</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-04-21T07:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518858#M2004563</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; what do data references bring to the table? Meaning why should I used them instead of internal tables, is there anything to be gained; performance wise?&lt;/P&gt;&lt;P&gt;Also what are the key differences between a data reference and an internal table.&lt;/P&gt;&lt;P&gt;Already did some research but I am hoping a discussion between fellow ABAPers will add more value to my learning experience.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 15:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518858#M2004563</guid>
      <dc:creator>former_member601153</dc:creator>
      <dc:date>2022-04-21T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: NEW constractor expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518859#M2004564</link>
      <description>&lt;P&gt;1. what do data references bring to the table?&lt;/P&gt;&lt;P&gt;Nothing special concerning tables. The question concerns any kind of data type. I continue with the example of internal tables because you are focused on internal tables for some reason. Imagine that you want to refer to the same internal table from two different variables, and that you want any update to replicate automatically. You won't duplicate the internal table, it's easier to have one internal table, and have each variable point to the same internal table through a data reference.&lt;/P&gt;&lt;P&gt;2. Meaning why should I used them instead of internal tables, is there anything to be gained; performance wise?&lt;/P&gt;&lt;P&gt;Performance. Memory. Possibly more simple.&lt;/P&gt;&lt;P&gt;PS: if you don't have a use case, just forget about data references for now...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 15:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-constractor-expression/m-p/12518859#M2004564</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-21T15:49:03Z</dc:date>
    </item>
  </channel>
</rss>

