<?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: ALV_Calculations_Multiplying fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275189#M1633272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. I have it working now.Really appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2011 11:34:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-10T11:34:45Z</dc:date>
    <item>
      <title>ALV_Calculations_Multiplying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275184#M1633267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, &lt;/P&gt;&lt;P&gt;Im new to SAP and am having some problems with alv reports. Im trying to multiply these values(ekko-menge &amp;amp; calp-vkpne) in order to get a total value e.g.&lt;/P&gt;&lt;P&gt;1: ekko-menge * calp-vkpne                             Total&lt;/P&gt;&lt;P&gt;2: ekko-menge * calp-vkpne                             Total&lt;/P&gt;&lt;P&gt;My main problem i think is that i cant create a join between the two since their is no corresponding field? Any help appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 10:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275184#M1633267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV_Calculations_Multiplying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275185#M1633268</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;You Create an internal table with all your fields what ever is required along with fields menge,calp and total by reffering to their correspond ing data types.After that you fetch all the data related to thier fields into that internal table by using 'for all entreis'.After that you fetch data by reading all the tables with in the internal table loop and also while fetching the data into internal you can also do calculations as total etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thiis is how you can fetch all the required data into an  internal table along with calculations and you can display as you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 11:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275185#M1633268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV_Calculations_Multiplying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275186#M1633269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. Is there a possibility you could put up some code examples or links to any tutorials online that wuld help me? Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 12:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275186#M1633269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV_Calculations_Multiplying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275187#M1633270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For to create the internal table, you can do as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TYPE ty_zzz,&lt;/P&gt;&lt;P&gt;menge type ekko-menge,&lt;/P&gt;&lt;P&gt;vkpne  type calp-vkpne,&lt;/P&gt;&lt;P&gt;END OF ty_zzz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: XXXX TYPE TABLE OF ty_zzz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, you do your select´s into xxx table, and use for your propose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 14:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275187#M1633270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV_Calculations_Multiplying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275188#M1633271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first doubt is, From where are you getting a value in the field CALP-VKPNE,which table are you referring to get this value, from the Structure or a data base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create an internal table with type&lt;/P&gt;&lt;P&gt;types: begin of ty_tab1,&lt;/P&gt;&lt;P&gt;           menge type ekko-menge,&lt;/P&gt;&lt;P&gt;           vkpne like calp-vkpne,&lt;/P&gt;&lt;P&gt;           total type dmbtr,   &lt;/P&gt;&lt;P&gt;end of ty_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;populate the internal table by having a SELECT query on your relevant tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_tab1 into wa_tab1.
wa_tab1-total = wa_tab1-menge * wa_tab1-vkpne.
modify it_tab1 from wa_tab1 transporting total.
endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert for further clarification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275188#M1633271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T18:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALV_Calculations_Multiplying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275189#M1633272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. I have it working now.Really appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 11:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-calculations-multiplying-fields/m-p/8275189#M1633272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-10T11:34:45Z</dc:date>
    </item>
  </channel>
</rss>

