<?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: Select with calculation in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666893#M1944728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Armin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my select statement as you suggested and its worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ( zeytufe * zeygh ) AS zeycarpan FROM zhrp008 INTO @wa_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;By the way, the operator / is not allowed in integer expressions.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2016 12:11:48 GMT</pubDate>
    <dc:creator>emrhkls</dc:creator>
    <dc:date>2016-04-29T12:11:48Z</dc:date>
    <item>
      <title>Select with calculation in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666888#M1944723</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 function module which gathering data from a ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ztable:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/940502" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I wanted to populate ZEYCARPAN field as "ZEYTUFE * ZEYGH" when I used SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 12:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666888#M1944723</guid>
      <dc:creator>emrhkls</dc:creator>
      <dc:date>2016-04-28T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select with calculation in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666889#M1944724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you read the ABAP keyword documentation? Does it offer such a possibility?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 13:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666889#M1944724</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-04-28T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select with calculation in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666890#M1944725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to get the ZEYCARPAN value as "ZEYTUFE * ZEYGH" into an INTERNAL table then it is possible BUT you should have SAP_BASIS/SAP_ABA components latest version. I think you should have at least 7.4 version to have this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 13:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666890#M1944725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-28T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select with calculation in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666891#M1944726</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;First you get the data through select statement into first internal table, then send the first internal table data to final internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally you can loop there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_FIRST INTO WA_FIRST.&lt;/P&gt;&lt;P&gt;WA_FINAL-ZEYCARPAN = WA_FIRST-ZEYTUFE * WA_FIRST-ZEYGH.&lt;/P&gt;&lt;P&gt;CLEAR : WA_FIRST.&lt;/P&gt;&lt;P&gt;APPEND WA_FINAL TO IT_FINAL.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if my understood is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Divya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 14:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666891#M1944726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-28T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select with calculation in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666892#M1944727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's possible to do the calculation immediately in the SELECT. See ABAP langauage documentation: SELECT sql_exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least on basis NW 7.4 SP08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a, b, a * b AS c FROM abc INTO @data(lt_abc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table has three fields: a, b and c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666892#M1944727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-28T15:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select with calculation in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666893#M1944728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Armin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my select statement as you suggested and its worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ( zeytufe * zeygh ) AS zeycarpan FROM zhrp008 INTO @wa_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;By the way, the operator / is not allowed in integer expressions.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 12:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-calculation-in-function-module/m-p/11666893#M1944728</guid>
      <dc:creator>emrhkls</dc:creator>
      <dc:date>2016-04-29T12:11:48Z</dc:date>
    </item>
  </channel>
</rss>

