<?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: Simple Abap Programming Question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263120#M1722055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lo - local object&lt;/P&gt;&lt;P&gt;lr - local range (not sure about this)&lt;/P&gt;&lt;P&gt;lt - local table&lt;/P&gt;&lt;P&gt;ls - local structure&lt;/P&gt;&lt;P&gt;lv - local variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These kinds of declarations may be project specific as specified by the client or used in one project in order to have uniformity in coding practices within the team. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1214/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Feb 2013 15:24:34 GMT</pubDate>
    <dc:creator>former_member491621</dc:creator>
    <dc:date>2013-02-17T15:24:34Z</dc:date>
    <item>
      <title>Simple Abap Programming Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263119#M1722054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have very simple abap programming question.&lt;/P&gt;&lt;P&gt;Can sombody tell me why do we use prefixes ls, lo, lr ,lt when defining local variables inside abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;lo_dim &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE REF TO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;cl_uja_dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_dim_data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE REF TO &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;if_uja_dim_data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_attr_name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;uja_t_attr_name&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_sel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;uj0_t_sel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_sel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;uj0_s_sel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What is the meaning of programming this way. Why cant people in abap use simple variable names the way we do it java. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Also whats the different between all these. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So far I found out that cl is used to denote classes and if denotes interfaces. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but these lo, lr, lt, ls, lv have been confusing for me to understand.&amp;nbsp; I tried to look all over the place and couldn't find meaning for it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Helpful answers would be rewarded points.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Much Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ibrahim &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2013 15:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263119#M1722054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-17T15:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Abap Programming Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263120#M1722055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lo - local object&lt;/P&gt;&lt;P&gt;lr - local range (not sure about this)&lt;/P&gt;&lt;P&gt;lt - local table&lt;/P&gt;&lt;P&gt;ls - local structure&lt;/P&gt;&lt;P&gt;lv - local variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These kinds of declarations may be project specific as specified by the client or used in one project in order to have uniformity in coding practices within the team. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1214/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2013 15:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263120#M1722055</guid>
      <dc:creator>former_member491621</dc:creator>
      <dc:date>2013-02-17T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Abap Programming Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263121#M1722056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ibrahim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To your question, why can't you use simple variable names like in other programming languages, the answer is you can. You can very well go ahead and name your ABAP variables without the prefixes you mentioned. However, these prefixes have the advantage that just looking at the name you know the scope ('l' standing for local and 'g' standing for global) as well as the type (variable, structure, internal table etc.) of the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2013 15:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-abap-programming-question/m-p/9263121#M1722056</guid>
      <dc:creator>kakshat</dc:creator>
      <dc:date>2013-02-17T15:51:05Z</dc:date>
    </item>
  </channel>
</rss>

