<?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: how to define range when using oo environment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323551#M1537172</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 use statement LIKE LINE OF without any problems. I don't see why it should not be OK. There is no structure unless you define it by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a quote from document about obsolete ABAP statements in OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message in ABAP Objects if the following syntax is used:&lt;/P&gt;&lt;P&gt;DATA itab TYPE LIKE TABLE OF ... WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;Correct syntax:&lt;/P&gt;&lt;P&gt;DATA: itab TYPE LIKE TABLE OF ... ,&lt;/P&gt;&lt;P&gt;wa LIKE LINE OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see that LIKE LINE OF is used in section Correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Sep 2010 23:51:07 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2010-09-09T23:51:07Z</dc:date>
    <item>
      <title>how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323549#M1537170</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 have a doubt regarding this when using OO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: spfli_wa TYPE spfli, 
      r_carrid TYPE RANGE OF spfli-carrid, 
      r_carrid_line LIKE LINE OF r_carrid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a structure I can do "type" for the work-area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: orgasmics on Sep 9, 2010 9:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 19:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323549#M1537170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-09T19:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323550#M1537171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check Ranges table types, for example CURTO_PSPNR_RANGE_T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 22:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323550#M1537171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-09T22:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323551#M1537172</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 use statement LIKE LINE OF without any problems. I don't see why it should not be OK. There is no structure unless you define it by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a quote from document about obsolete ABAP statements in OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message in ABAP Objects if the following syntax is used:&lt;/P&gt;&lt;P&gt;DATA itab TYPE LIKE TABLE OF ... WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;Correct syntax:&lt;/P&gt;&lt;P&gt;DATA: itab TYPE LIKE TABLE OF ... ,&lt;/P&gt;&lt;P&gt;wa LIKE LINE OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see that LIKE LINE OF is used in section Correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 23:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323551#M1537172</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-09-09T23:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323552#M1537173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you maintain or develop your class in transaction SE24 for example, then you will find a button Local Types in the Icon Bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on it and define a Type range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : rnge_bukrs TYPE RANGE OF bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : rnge_line TYPE LINE OF rnge_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will create a range table type and a structure of the same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use these types in any data statements of any method in that class or attribute of your your class or interfaces of your methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 01:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323552#M1537173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T01:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323553#M1537174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Martin has mentioned LIKE LINE OF &amp;lt;itab&amp;gt; will create a single table line using the internal table as reference. AFAIK in OO context LIKE is still acceptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you're still obsessed with TYPE, you can try as mentioned in the previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 01:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323553#M1537174</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-10T01:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323554#M1537175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My obsession comes when (afaik) "LIKE" alocates memory space for the variable, and "TYPE" only alocates the type data.&lt;/P&gt;&lt;P&gt;Correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your responses!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 08:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323554#M1537175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-14T08:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to define range when using oo environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323555#M1537176</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 doubt that there is a difference between LIKE and TYPE. LIKE just allows you to use already defined object for data definition. I also think that it doesn't matter if the code is structured correctly. If program is broken into small chunks (routines or methods) and there are no global variables. then you need all your local variables in the method and there is no difference if they are allocated in data definition or 3 lines later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 01:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-range-when-using-oo-environment/m-p/7323555#M1537176</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-09-15T01:35:57Z</dc:date>
    </item>
  </channel>
</rss>

