<?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: Internal Table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275999#M494948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even then it will work.&lt;/P&gt;&lt;P&gt;Are you calculating cumulative tax?? do you need to calculate total tax for all the records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 May 2007 07:15:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-26T07:15:34Z</dc:date>
    <item>
      <title>Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275996#M494945</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; I have written a program for tax break up by using EKKO,EKPO,KONP,KONV AND SOME J* TABLES,&lt;/P&gt;&lt;P&gt;BY SPECIFYING DIFFERENT CONDITIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LAST I GOT THE DATA IN AN INTERNAL TABLE IT_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE STRUCTURE IS OF IT_FINAL IS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_FINAL OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;      EBELP LIKE EKPO-EBELP,&lt;/P&gt;&lt;P&gt;      KNUMV LIKE EKKO-KNUMV,&lt;/P&gt;&lt;P&gt;      KAWRT LIKE KONV-KAWRT,&lt;/P&gt;&lt;P&gt;      MWSK1 LIKE KONV-MWSK1,&lt;/P&gt;&lt;P&gt;      KSCHL LIKE KONV-KSCHL,&lt;/P&gt;&lt;P&gt;      KBETR LIKE KONP-KBETR,&lt;/P&gt;&lt;P&gt;      BASEVAL1 LIKE KONV-KAWRT,&lt;/P&gt;&lt;P&gt;      END OF IT_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have to display the data . But the problem is there is some final calculation in the internal table.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the tax code contains 'JMO1' Condition type then we have to handle it entire differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if the tax code contains 'JMO1' AND 'JIP1 or JIP2' And we have to handle it differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taxcode 			cnd.type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;89.				JMO1,&lt;/P&gt;&lt;P&gt;				JEC1,&lt;/P&gt;&lt;P&gt;				JA1S,&lt;/P&gt;&lt;P&gt;				JIP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; KBETR contains the  Percentage .&lt;/P&gt;&lt;P&gt; KAWRT contains the Basevalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it contains like the above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR JM01 We calculate as normal like tax = ( KAWRT * KBETR ) / 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR JA1S,JEC1  We should take the Basevalue TAX. And calculate tax . TAX1 = ( TAX * KBETR ) / 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT FOR JIP1 BASE VALUE IS TAX + TAX1 AND PERCENTAGE IS KBETR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF We put a LOOP ON Internal table  the HOW Can we Identify for the Taxcode 'JMO1' EXISTS AND JIP1 EXITS AND WE MAY GET THE FIRST RECORD AS JIP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN WE SOLVE THIS PROBLEM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 06:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275996#M494945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-26T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275997#M494946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this condition in loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_FINAL.&lt;/P&gt;&lt;P&gt;If tax_code cs 'JMO1'.&lt;/P&gt;&lt;P&gt;tax = ( IT_FINAL-KAWRT * IT_FINAL-KBETR ) / 100.&lt;/P&gt;&lt;P&gt;write tax.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if tax_code cs 'JEC1' or tax_code cs 'JEC1'.&lt;/P&gt;&lt;P&gt;tax = ( IT_FINAL-KAWRT * IT_FINAL-KBETR ) / 100.&lt;/P&gt;&lt;P&gt;tax1 = ( TAX * IT_FINAL-KBETR ) / 100.&lt;/P&gt;&lt;P&gt;write tax1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if tax_code cs '&lt;/P&gt;&lt;P&gt;tax = ( IT_FINAL-KAWRT * IT_FINAL-KBETR ) / 100.&lt;/P&gt;&lt;P&gt;tax1 = ( TAX * IT_FINAL-KBETR ) / 100.&lt;/P&gt;&lt;P&gt;tax2 = ( (TAX + TAX1) * IT_FINAL-KBETR ) / 100.&lt;/P&gt;&lt;P&gt;write tax2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I understood the problem right..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 07:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275997#M494946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-26T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275998#M494947</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;But in the loop if the first record is JIP1 Then after that record is 'JMO1'&lt;/P&gt;&lt;P&gt;What about it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 07:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275998#M494947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-26T07:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275999#M494948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even then it will work.&lt;/P&gt;&lt;P&gt;Are you calculating cumulative tax?? do you need to calculate total tax for all the records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 07:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2275999#M494948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-26T07:15:34Z</dc:date>
    </item>
  </channel>
</rss>

