<?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 code dout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944143#M943292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if v_zfnpio = 'X'.&lt;/P&gt;&lt;P&gt;            select COUNT(*) from zme2o_vendors&lt;/P&gt;&lt;P&gt;                   where werks = v_werks&lt;/P&gt;&lt;P&gt;                   and   lifnr = v_lifnr&lt;/P&gt;&lt;P&gt;                   and   ZFNPIO = 'X'&lt;/P&gt;&lt;P&gt;                   and   ZFOSGR = 'X'.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;what does the above code do can any one explain me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 05:20:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T05:20:17Z</dc:date>
    <item>
      <title>code dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944143#M943292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if v_zfnpio = 'X'.&lt;/P&gt;&lt;P&gt;            select COUNT(*) from zme2o_vendors&lt;/P&gt;&lt;P&gt;                   where werks = v_werks&lt;/P&gt;&lt;P&gt;                   and   lifnr = v_lifnr&lt;/P&gt;&lt;P&gt;                   and   ZFNPIO = 'X'&lt;/P&gt;&lt;P&gt;                   and   ZFOSGR = 'X'.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;what does the above code do can any one explain me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944143#M943292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: code dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944144#M943293</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 above code is explained as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.The  if  condition  checks whether v_zfnpio is not empty or not . &lt;/P&gt;&lt;P&gt;   If it contains any value the code will be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The select statement fetches number of records from the customized table zme2o_vendors with &lt;/P&gt;&lt;P&gt;    key  werks = v_werks&lt;/P&gt;&lt;P&gt;   and the other conditions and lifnr = v_lifnr&lt;/P&gt;&lt;P&gt;   and ZFNPIO = 'X'&lt;/P&gt;&lt;P&gt;   and ZFOSGR = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944144#M943293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: code dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944145#M943294</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;&lt;STRONG&gt;It gives the number i.e count of the records in the table matching the where condition.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... COUNT( * ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Returns the number of lines selected. If the SELECT command contains a GROUP-BY clause, the system returns the number of lines for each group. You can use COUNT( * ) instead of COUNT(*). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Displays a list of all the customers on all the Lufthansa 0400 flights in the year 2001, with the number of bookings for each flight, ordered by customer name: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: name     TYPE scustom-name, &lt;/P&gt;&lt;P&gt;      postcode TYPE scustom-postcode, &lt;/P&gt;&lt;P&gt;      city     TYPE scustom-city, &lt;/P&gt;&lt;P&gt;      count    TYPE I. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT scustom&lt;SUB&gt;name scustom&lt;/SUB&gt;postcode scustom~city COUNT( * ) &lt;/P&gt;&lt;P&gt;       INTO (name, postcode, city, count) &lt;/P&gt;&lt;P&gt;       FROM scustom INNER JOIN sbook &lt;/P&gt;&lt;P&gt;         ON scustom&lt;SUB&gt;id = sbook&lt;/SUB&gt;customid &lt;/P&gt;&lt;P&gt;       WHERE sbook~fldate BETWEEN '20010101' AND '20011231' AND &lt;/P&gt;&lt;P&gt;             sbook~carrid   = 'LH '                         AND &lt;/P&gt;&lt;P&gt;             sbook~connid   = '0400' &lt;/P&gt;&lt;P&gt;       GROUP BY scustom&lt;SUB&gt;name scustom&lt;/SUB&gt;postcode scustom~city &lt;/P&gt;&lt;P&gt;       ORDER BY scustom~name. &lt;/P&gt;&lt;P&gt;  WRITE: / name, postcode, city, count. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: The database column whose values are to be aggregated has the type STRING or RAWSTRING. &lt;/P&gt;&lt;P&gt;Runtime Error: SAPSQL_AGGREGATE_LOB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: The database column for which the mean is to be calculated does not have a numeric type. &lt;/P&gt;&lt;P&gt;Runtime Error: SAPSQL_FIELDLIST_AVG_TYPE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: DThe database column whose values are to be totalled does not have a numeric type. &lt;/P&gt;&lt;P&gt;Runtime Error: SAPSQL_FIELDLIST_SUM_TYPE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 05:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944145#M943294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T05:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: code dout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944146#M943295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are code is checking for  v_zfnpio ,if it has any value then &lt;/P&gt;&lt;P&gt;you are fetching number of rows present in your table zme20_vendors which satisfy the following conditions&lt;/P&gt;&lt;P&gt; werks = v_werks&lt;/P&gt;&lt;P&gt;and lifnr = v_lifnr&lt;/P&gt;&lt;P&gt;and ZFNPIO = 'X'&lt;/P&gt;&lt;P&gt;and ZFOSGR = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-dout/m-p/3944146#M943295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T06:29:42Z</dc:date>
    </item>
  </channel>
</rss>

