<?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 payroll code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-code/m-p/2528501#M573059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you send me simple payroll code using &lt;/P&gt;&lt;P&gt;GET PAYROLL event.&lt;/P&gt;&lt;P&gt;i know the function module method.&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Quavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jul 2007 11:38:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-14T11:38:11Z</dc:date>
    <item>
      <title>payroll code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-code/m-p/2528501#M573059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you send me simple payroll code using &lt;/P&gt;&lt;P&gt;GET PAYROLL event.&lt;/P&gt;&lt;P&gt;i know the function module method.&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Quavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 11:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-code/m-p/2528501#M573059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-14T11:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: payroll code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-code/m-p/2528502#M573060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   you can also use classes to read payroll without using GET Payroll event !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out ( OSS note # 699276 ) &lt;/P&gt;&lt;P&gt;The logical database GET PAYROLL has now been replaced with the class CL_HRPAY99_PRR_4_REPORTING. "PRR" is "Payroll Result Reader". It is succeeded by CL_HRPAY99_PRR_4_PNP_REPS and CL_HRPAY99_PRR_4_PNPCE_REPS, for use in programs with the logical database PNP or PNPCE (multiple payroll).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two classes are further succeeded by three classes that allow free period selection, individual day selection, or settlement run selection. Only these may be instantiated to read payroll results. They are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_HRPAY99_PRR_4_PNP_TISPAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_HRPAY99_PRR_4_PNP_SNGDAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_HRPAY99_PRR_4_PNP_PAYPER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_HRPAY99_PRR_4_PNPCE_TISPAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_HRPAY99_PRR_4_PNPCE_SNGDAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_HRPAY99_PRR_4_PNPCE_PAYPER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To simplify the class instantiation, the method GET_INSTANCE is available as an alternative. If you have multiple payroll, use CL_HRPAY99_PRR_4_PNPCE_REPS-&amp;gt;GET_INSTANCE; otherwise use CL_HRPAY99_PRR_4_PNP_REPS-&amp;gt;GET_INSTANCE; a suitable point for this call is the event START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These new classes allow simple access to the payroll results, are CE-compatible, are expandable (class succession) and can take into account a variety of selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure H99_PAYROLL_RESULT_READER contains all selection criteria that you may need in your programs, with altered texts and documentation. You can use these in the selection screens in your reports, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;Child classes of the classes CL_HR_PAY_RESULT and, if you have multiple payroll, also CL_HR_PAY_RESULT_PERSON, must be available for your country version. These daughter classes are called CL_HR_PAY_RESULT_** where ** is the ISO code indicator for your country. The German version is called CL_HR_PAY_RESULT_DE, for example; the American version is called CL_HR_PAY_RESULT_US and the American version for multiple payroll is called CL_HR_PAY_RESULT_PERSON_US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples of use&lt;/P&gt;&lt;P&gt;If you have multiple payroll:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data go_prr type ref to CL_HRPAY99_PRR_4_PNPCE_REPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gt_person_pr type H99_HR_PAY_RESULT_PERSON_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gt_peras_pr type H99_HR_PAY_RESULT_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;person_pr&amp;gt; type ref to CL_HR_PAY_RESULT_PERSON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;peras_pr&amp;gt; type ref to CL_HR_PAY_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data go_person_pr type ref to CL_HR_PAY_RESULT_PERSON_**.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data go_peras_pr type ref to CL_HR_PAY_RESULT_**.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method CL_HRPAY99_PRR_4_PNPCE_REPS=&amp;gt;GET_INSTANCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting (...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing ex_prr = go_prr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions INVALID_ENTRIES = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PERSON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method go_prr-&amp;gt;GET_P_P_PAYR_RESULTS_ALLIN1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting im_person = person&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing EX_PERSON_PAYROLL_RESULTS = gt_person_pr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX_PERAS_PAYROLL_RESULTS = gt_peras_pr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions (...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The person results are now in table gt_person_pr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and the contract results in table gt_peras_pr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_person_pr assigning &amp;lt;person_pr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_person_pr ?= &amp;lt;person_pr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here do what you have to do with each result&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_peras_pr assigning &amp;lt;peras_pr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_peras_pr ?= &amp;lt;peras_pr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here do what you have to do with each result&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have multiple payroll:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data go_prr type ref to CL_HRPAY99_PRR_4_PNP_REPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gt_pernr_pr type H99_HR_PAY_RESULT_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data go_pernr_pr type ref to CL_HR_PAY_RESULT_**.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;pernr_pr&amp;gt; type ref to CL_HR_PAY_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method CL_HRPAY99_PRR_4_PNP_REPS=&amp;gt;GET_INSTANCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting (...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing ex_prr = go_prr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions INVALID_ENTRIES = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method go_prr-&amp;gt;GET_PERNR_PAYR_RESULTS_ALLIN1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting im_pernr = pernr-pernr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importing EX_PERNR_PAYROLL_RESULTS = gt_pernr_pr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions (...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The results are now in table gt_pernr_pr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_pernr_pr assigning &amp;lt;pernr_pr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go_pernr_pr ?= &amp;lt;pernr_pr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here do what you have to do with each result&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 14:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-code/m-p/2528502#M573060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-14T14:38:35Z</dc:date>
    </item>
  </channel>
</rss>

