<?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: Tax Calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129454#M743372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no other way, you have to use program RPCALCK0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this FM also HRWPC_RFC_BLAND_TEXT_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 19:38:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T19:38:30Z</dc:date>
    <item>
      <title>Tax Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129453#M743371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to calculate income tax instead of calling a form "calc_tax_ess" in the payroll driver RPCALCK0?  The peformance is so slow when you do it that way. I'm thinking of using a function module to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code of calculating tax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM calc_tax_ess IN PROGRAM ('RPCALCK0')&lt;/P&gt;&lt;P&gt;                         TABLES ptax1&lt;/P&gt;&lt;P&gt;                                ptax2&lt;/P&gt;&lt;P&gt;                                ptcrt&lt;/P&gt;&lt;P&gt;                                ptcrti&lt;/P&gt;&lt;P&gt;                                pit&lt;/P&gt;&lt;P&gt;                                ptext&lt;/P&gt;&lt;P&gt;                                error_ptext&lt;/P&gt;&lt;P&gt;                         USING&lt;/P&gt;&lt;P&gt;                                i_salary-abrdt&lt;/P&gt;&lt;P&gt;                                psw_prot&lt;/P&gt;&lt;P&gt;                                p_nuper&lt;/P&gt;&lt;P&gt;                                lc_num_pension_months&lt;/P&gt;&lt;P&gt;                                pnumpr&lt;/P&gt;&lt;P&gt;                                ptaxretcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 18:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129453#M743371</guid>
      <dc:creator>former_member184386</dc:creator>
      <dc:date>2007-11-29T18:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tax Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129454#M743372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no other way, you have to use program RPCALCK0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this FM also HRWPC_RFC_BLAND_TEXT_GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 19:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129454#M743372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T19:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tax Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129455#M743373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My program is calling RPCALCK0 and loading it severaal times inside a loop, it causing some performance issue because the number of rows can grow as big as 8000 records, this means calling the program 8,000 times. Is there another way I could resolve this problem. &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;loop at it_pernr.&lt;/P&gt;&lt;P&gt; PERFORM calc_tax_ess IN PROGRAM ('RPCALCK0')&lt;/P&gt;&lt;P&gt; TABLES ptax1&lt;/P&gt;&lt;P&gt;   ptax2&lt;/P&gt;&lt;P&gt;   ptcrt&lt;/P&gt;&lt;P&gt;   ptcrti&lt;/P&gt;&lt;P&gt;   pit&lt;/P&gt;&lt;P&gt;   ptext&lt;/P&gt;&lt;P&gt;   error_ptext&lt;/P&gt;&lt;P&gt; USING&lt;/P&gt;&lt;P&gt;   i_salary-abrdt&lt;/P&gt;&lt;P&gt;   psw_prot&lt;/P&gt;&lt;P&gt;   p_nuper&lt;/P&gt;&lt;P&gt;   lc_num_pension_months&lt;/P&gt;&lt;P&gt;   pnumpr&lt;/P&gt;&lt;P&gt;   ptaxretcode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 21:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129455#M743373</guid>
      <dc:creator>former_member184386</dc:creator>
      <dc:date>2007-11-29T21:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tax Calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129456#M743374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the program is loading the number of times the loop is executed. When you do a step debugging you'll notice that the runtime increases everytime you pass loop iteration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 22:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tax-calculation/m-p/3129456#M743374</guid>
      <dc:creator>former_member184386</dc:creator>
      <dc:date>2008-01-02T22:31:21Z</dc:date>
    </item>
  </channel>
</rss>

