<?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: Explain code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757707#M904043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that select statement is compulsary one. They might have been using the other fields of table T001 in the rest of the program.(I mean other than the field WAERS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They should have written select statement before the if condition as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from t001 client specified&lt;/P&gt;&lt;P&gt;where bukrs = s_bukrs-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear w_waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_paledg-low = '02'.&lt;/P&gt;&lt;P&gt;w_waers = t001-waers.&lt;/P&gt;&lt;P&gt;elseif s_paledg-low = '01'.&lt;/P&gt;&lt;P&gt;w_waers = 'USD'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 13:22:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-22T13:22:56Z</dc:date>
    <item>
      <title>Explain code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757704#M904040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in one of the programs i saw(see the below code) both the selects are written one after other as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if s_paledg-low = '02'.&lt;/P&gt;&lt;P&gt;    clear w_waers.&lt;/P&gt;&lt;P&gt;    select        * from t001&lt;/P&gt;&lt;P&gt;           where  bukrs  = s_bukrs-low.&lt;/P&gt;&lt;P&gt;      w_waers = t001-waers.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;  elseif s_paledg-low = '01'.&lt;/P&gt;&lt;P&gt;    w_waers = 'USD'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select        * from  t001 client specified&lt;/P&gt;&lt;P&gt;         where  bukrs  = s_bukrs-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both the selects are on t001, they used first select to get the value of WAERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for the second select they are not using the values of t001 any where in the complete code &lt;/P&gt;&lt;P&gt;can any one clarify why they have written like this with out using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 22, 2008 3:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 10:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757704#M904040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T10:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Explain code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757705#M904041</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 the values of t001 which are taken in the work area i,e, t001 are not being used any where in the program you can avoid the select statement as it has no significance of its usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 10:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757705#M904041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T10:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Explain code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757706#M904042</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;Yes, the selects do not make any sense since that value is no longer used in the program. It probably was at an earlier point, then someone removed the usage and forgot to remove the selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore the CLIENT SPECIFIED in the second select does not make any sense either because no MANDT is specified meaning it will read the data from the current client only anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757706#M904042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Explain code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757707#M904043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that select statement is compulsary one. They might have been using the other fields of table T001 in the rest of the program.(I mean other than the field WAERS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They should have written select statement before the if condition as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from t001 client specified&lt;/P&gt;&lt;P&gt;where bukrs = s_bukrs-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear w_waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_paledg-low = '02'.&lt;/P&gt;&lt;P&gt;w_waers = t001-waers.&lt;/P&gt;&lt;P&gt;elseif s_paledg-low = '01'.&lt;/P&gt;&lt;P&gt;w_waers = 'USD'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 13:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757707#M904043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T13:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Explain code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757708#M904044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that select statement is compulsary one. They might have been using the other fields of table T001 in the rest of the program.(I mean other than the field WAERS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They should have written select statement before the if condition as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from t001 client specified&lt;/P&gt;&lt;P&gt;where bukrs = s_bukrs-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear w_waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_paledg-low = '02'.&lt;/P&gt;&lt;P&gt;w_waers = t001-waers.&lt;/P&gt;&lt;P&gt;elseif s_paledg-low = '01'.&lt;/P&gt;&lt;P&gt;w_waers = 'USD'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 13:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757708#M904044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T13:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Explain code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757709#M904045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 10:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-code/m-p/3757709#M904045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T10:01:28Z</dc:date>
    </item>
  </channel>
</rss>

