<?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: HR problem with payroll in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148383#M748549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you wouldnt be able to find all the details in Infotypes. &lt;/P&gt;&lt;P&gt;You need to understand that Payroll for evey country in SAP are stored in Cluster. &lt;/P&gt;&lt;P&gt;eg. PC00_M40_PAYROLL_CLSTR for India. We would  use this to access data for any employment period. Every months data is stored in this cluster amd would have a unique sequence number SEQNR. We need to get this SEQNR for the period you would get the payroll for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Approach should be in the follwoing sequence. I beileve you would have Personell Number, Month and Year atleast in your selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First get the/all (based on the selection options) the personnel number(s) from table PA0001 into an Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Now for every PERNR from PA0001 get the Country and SEQNR from the FM CU_READ_RGDIR and CD_READ_LAST. and append it in your Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  Now use the FM PYXX_READ_PAYROLL_RESULT for every PERNR in your Internal Table by passing the SEQNR and PERNR and get the RESULT Cluster. Then use the Line which you mentioned &lt;/P&gt;&lt;P&gt;READ TABLE payroll-inter-rt WITH KEY lgart = '/T30' INTO wa_rt. where LGART would be your Wage Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this would help you getting started. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mouli&lt;/P&gt;&lt;P&gt;The Function module which i gave you would get the payroll details from a payroll cluster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 11:13:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-11T11:13:11Z</dc:date>
    <item>
      <title>HR problem with payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148380#M748546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I'd like to get a payroll for one person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: pernr,pyorgscreen, pytimescreen.
NODES: payroll TYPE pay99_result.
DATA: wa_rt LIKE LINE OF payroll-inter-rt.

GET pernr.
GET payroll.
  READ TABLE payroll-inter-rt WITH KEY lgart = '/T30' INTO wa_rt.

WRITE: ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen I choose 1 employee and some date (for excample searched value exists in 10/2007 so I give that period). When I launch program 'GET pernr' is perforemed whilst 'GET payroll' doesn't do anything &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; Debugger doesn't stop at 'READ TABLE payroll-inter-rt ...' Please give me some tip why there is such situation in my program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 09:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148380#M748546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T09:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: HR problem with payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148381#M748547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piotr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not try accessing the tables PA0001, PA0002... and which ever infotypes you need instead of LDB PERNR. Then using your selection screen data you could call a function PYXX_READ_PAYROLL_RESULT to access any individual personnel number or multiple personnel number payroll data for any period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mouli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandramouli Gangadharan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandramouli Gangadharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148381#M748547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T10:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: HR problem with payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148382#M748548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm completely new at this topic, could You explain a bit more? In which infotype table could I find info I'm searching for in line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;  READ TABLE payroll-inter-rt WITH KEY lgart = '/T30' INTO wa_rt.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: clu LIKE PCL2-RELID.
DATA: result type pay99_result occurs 0 with header line.

CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
  EXPORTING
*   clusterid = '31'
    employeenumber = '20100304'
    sequencenumber = '00022'
  CHANGING
    payroll_result = result.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but I receive 'Type conflict whec calling FModule' &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148382#M748548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T10:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: HR problem with payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148383#M748549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you wouldnt be able to find all the details in Infotypes. &lt;/P&gt;&lt;P&gt;You need to understand that Payroll for evey country in SAP are stored in Cluster. &lt;/P&gt;&lt;P&gt;eg. PC00_M40_PAYROLL_CLSTR for India. We would  use this to access data for any employment period. Every months data is stored in this cluster amd would have a unique sequence number SEQNR. We need to get this SEQNR for the period you would get the payroll for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Approach should be in the follwoing sequence. I beileve you would have Personell Number, Month and Year atleast in your selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First get the/all (based on the selection options) the personnel number(s) from table PA0001 into an Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Now for every PERNR from PA0001 get the Country and SEQNR from the FM CU_READ_RGDIR and CD_READ_LAST. and append it in your Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  Now use the FM PYXX_READ_PAYROLL_RESULT for every PERNR in your Internal Table by passing the SEQNR and PERNR and get the RESULT Cluster. Then use the Line which you mentioned &lt;/P&gt;&lt;P&gt;READ TABLE payroll-inter-rt WITH KEY lgart = '/T30' INTO wa_rt. where LGART would be your Wage Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this would help you getting started. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mouli&lt;/P&gt;&lt;P&gt;The Function module which i gave you would get the payroll details from a payroll cluster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 11:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-problem-with-payroll/m-p/3148383#M748549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T11:13:11Z</dc:date>
    </item>
  </channel>
</rss>

