<?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: Dump during payroll execution in badi using function Module for salary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528180#M1656438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem resolved.self.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 13:48:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-19T13:48:55Z</dc:date>
    <item>
      <title>Dump during payroll execution in badi using function Module for salary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528176#M1656434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I have come across a strange dump I have used the badi "HR_INDVAL"  in which I have been using Indirect valuation for calculating the overtime and gratuity. The badi is working fine when I m using PA30 for storing data in infotype 15 but when I am running payroll that badi gives me dump on the Function Module for Gross salary.&lt;/P&gt;&lt;P&gt;Dump:&lt;/P&gt;&lt;P&gt;" At a LOOP over an internal table, it is not allowed to be changed."&lt;/P&gt;&lt;P&gt;Error Analysis.&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    At a LOOP over an internal table, the table is not allowed to be changed&lt;/P&gt;&lt;P&gt;     in the loop tail as a whole.&lt;/P&gt;&lt;P&gt;    SORT, MOVE, REFRESH, CLEAR are, for example, not allowed.&lt;/P&gt;&lt;P&gt;Module Name                             RP_FILL_WAGE_TYPE_TABLE&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION 'HR_GET_TOTAL_AMOUNT_P0008'
            EXPORTING
              pernr                     = pernr
              date                      = begda
*           P0008                     =
*           P0001                     =
*           FREQUENCY                 = '  '
*           LEAVE_HOURLY              = ' '
           IMPORTING
              amount                    = grosssal
*           AMOUNT_ORIG               =
*           FREQUENCY_ORIG            =
*           FREQUENCY_ORIG_TEXT       =
**           CURRENCY                  = 'PKR'
           EXCEPTIONS
             no_entry_in_t001p         = 1
             no_entry_in_t503          = 2
                others = 4 .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can some body Help me out in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jan 19, 2012 12:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 07:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528176#M1656434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-19T07:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dump during payroll execution in badi using function Module for salary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528177#M1656435</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;In the method of your BADI 'HR_INDVAL' , check if you are sorting or refreshing as said in the dump.&lt;/P&gt;&lt;P&gt;*SORT, MOVE, REFRESH, CLEAR are, for example, not allowed.&lt;/P&gt;&lt;P&gt;*Might be you are trying to sort or refresh internal table 'grosssal'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 09:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528177#M1656435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-19T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dump during payroll execution in badi using function Module for salary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528178#M1656436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zahid, goto ST22 and open the dump.. it would show the exact line where it dumped. that will help you analyze what happened.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 10:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528178#M1656436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-19T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dump during payroll execution in badi using function Module for salary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528179#M1656437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siri Vas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              As you can see this function Module is returning me the Gross salary in a single value it is not an internal table. My issue has resolved by calculating the salary manually mean to say using infotype 8 and allowances tables. Now it is working perfectly alright. But I wasn't been able to figure out why is it throwing the dump on function Module. I have debugged all the function module there is a function module RP_FILL_WAGE_TYPE_TABLE  here it is creating the problem. it is using two internal tables one p00015[] and the other one is pp00015[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it is throwing dump when it comes across a statement where they are equaling both p00015[] = pp00015[]. here p00015[ ] is empty where pp00015[ ] is filled here it is creating the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx for everything the problem is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jan 19, 2012 7:06 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ZAHID HAMEED on Jan 19, 2012 7:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 13:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528179#M1656437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-19T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dump during payroll execution in badi using function Module for salary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528180#M1656438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem resolved.self.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 13:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528180#M1656438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-19T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dump during payroll execution in badi using function Module for salary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528181#M1656439</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;Post all calculations you do in "HR_INDVAL", after passing the value to&amp;nbsp; valuation_output &amp;amp; valuation structures, should explicitly pass subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And at the beginning,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;valuation_output&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;amount &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;8&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;This will avoid dump while running the payroll. This is of no significance if the same HR_INDVAL is just for PA30 calculations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 10:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-during-payroll-execution-in-badi-using-function-module-for-salary/m-p/8528181#M1656439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-05T10:41:09Z</dc:date>
    </item>
  </channel>
</rss>

