<?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: what is basic difference between like and like line of in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595886#M1275423</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;If you have a data object in you code,for example - &lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;          BEGIN OF rng_str,&lt;/P&gt;&lt;P&gt;            sign    TYPE  ddsign,&lt;/P&gt;&lt;P&gt;            option  TYPE  ddoption,&lt;/P&gt;&lt;P&gt;            low     TYPE  numc10,&lt;/P&gt;&lt;P&gt;            high    TYPE  numc10,&lt;/P&gt;&lt;P&gt;          END OF rng_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case if you would like to create a structure type rng_str, in such case you use LIKE:&lt;/P&gt;&lt;P&gt;data: rng_str1 &lt;STRONG&gt;like&lt;/STRONG&gt; rng_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code if you have an internal table and you would like to declare a structure of this internal table then we use LIKE LINE OF for the data object. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: rng_tabl  LIKE TABLE OF rng_str. "table type declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_structure &lt;STRONG&gt;like line of&lt;/STRONG&gt; itab. "line type or work area declaration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2009 11:46:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-12T11:46:58Z</dc:date>
    <item>
      <title>what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595881#M1275418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me the difference between ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CQ.) What is basic difference between like and like line of ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595881#M1275418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595882#M1275419</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;The Like refer to standard structrure or Table which we are refering the Work Area..&lt;/P&gt;&lt;P&gt;..now from above 4.7 sap version Like is absolute ,we are using Type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still Like is Using in when we are refering the Tabloes or srtuctures in Function modules..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Like line of reffers to Local structure or interal table Work Area..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on May 12, 2009 4:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595882#M1275419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595883#M1275420</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; Like :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data:
 w_char type c,
 w_char1 like w_char.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will create w_char1 of type w_char.&lt;/P&gt;&lt;P&gt;Like Line :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data:
 t_mara like zmara,
fs_mara like line of zmara.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Consider zmara as the table type of mara.Then t_mara is a internal table of structure mara and fs_mara is the work area for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nithya Murugesan on May 12, 2009 1:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595883#M1275420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595884#M1275421</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 are declaring a variable similar to a field in a table, we use like.&lt;/P&gt;&lt;P&gt;data: w_bukrs like bkpf-bukrs.&lt;/P&gt;&lt;P&gt;Like is also used if you need to declare a work area similar to a database structure.&lt;/P&gt;&lt;P&gt;data: w_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Like line of " is used if we declare a work area similar to an internal table defined in the program.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;data: begin of t_abc occurs 0,&lt;/P&gt;&lt;P&gt;         X1(1),&lt;/P&gt;&lt;P&gt;         X2(2),&lt;/P&gt;&lt;P&gt;        end of t_abc.&lt;/P&gt;&lt;P&gt;data: w_abc like line of t_abc. &lt;/P&gt;&lt;P&gt;Here w_abc is similar to work area of table t_abc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595884#M1275421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595885#M1275422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;begin of type_struc,&lt;/P&gt;&lt;P&gt;  fld1 type c,&lt;/P&gt;&lt;P&gt;  fld2 type i,&lt;/P&gt;&lt;P&gt;end of type_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;wa1 type type_struc,  &lt;/P&gt;&lt;P&gt;wa2 like wa1.             " use like to define a line obj like another line obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;itab type table of sflight,&lt;/P&gt;&lt;P&gt;wa3 like line of itab. " wa3 is the line obj having the structure like that of table sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595885#M1275422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595886#M1275423</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;If you have a data object in you code,for example - &lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;          BEGIN OF rng_str,&lt;/P&gt;&lt;P&gt;            sign    TYPE  ddsign,&lt;/P&gt;&lt;P&gt;            option  TYPE  ddoption,&lt;/P&gt;&lt;P&gt;            low     TYPE  numc10,&lt;/P&gt;&lt;P&gt;            high    TYPE  numc10,&lt;/P&gt;&lt;P&gt;          END OF rng_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case if you would like to create a structure type rng_str, in such case you use LIKE:&lt;/P&gt;&lt;P&gt;data: rng_str1 &lt;STRONG&gt;like&lt;/STRONG&gt; rng_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code if you have an internal table and you would like to declare a structure of this internal table then we use LIKE LINE OF for the data object. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: rng_tabl  LIKE TABLE OF rng_str. "table type declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_structure &lt;STRONG&gt;like line of&lt;/STRONG&gt; itab. "line type or work area declaration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595886#M1275423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: what is basic difference between like and like line of</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595887#M1275424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  like is similar to Type...&lt;/P&gt;&lt;P&gt;  Now we use Type instead of like .&lt;/P&gt;&lt;P&gt;  used to declare an INternal table or structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However Like line is use to declare a work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:- &lt;/P&gt;&lt;P&gt; itab type standard table of zitab.  -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;&amp;gt; Declaring Internal table  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_itab like line of itab.----&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&amp;gt; Declaring Work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 11:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-basic-difference-between-like-and-like-line-of/m-p/5595887#M1275424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T11:50:01Z</dc:date>
    </item>
  </channel>
</rss>

