<?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: regarding payroll in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149027#M116946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam sorry to distrub you again&lt;/P&gt;&lt;P&gt;C &lt;/P&gt;&lt;P&gt;in cu_read_rgdir FM&lt;/P&gt;&lt;P&gt;Iam taking the output into IT of type pc261&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from there how can I get the data related to pc205&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PAVAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2006 11:18:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-09T11:18:32Z</dc:date>
    <item>
      <title>regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149015#M116934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I Run Payroll where I can find the Company Code assigned to that PERNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 09:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149015#M116934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T09:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149016#M116935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the payroll results you have C0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the field KBUNN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Kostenverteilung&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF C0 OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE PC20A .&lt;/P&gt;&lt;P&gt;DATA: END OF C0 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149016#M116935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T10:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149017#M116936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Ur requirement is not fully clear !&lt;/P&gt;&lt;P&gt;2. payroll (program) runs on the concept of &lt;/P&gt;&lt;P&gt;   PAYROLL AREA&lt;/P&gt;&lt;P&gt;   (and not company code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. howevever,&lt;/P&gt;&lt;P&gt;   the funcational guy take care that&lt;/P&gt;&lt;P&gt;   for each company code, a new payroll&lt;/P&gt;&lt;P&gt;   area has been defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In case u want to find which company code&lt;/P&gt;&lt;P&gt;  is assigned to that pernr,&lt;/P&gt;&lt;P&gt;   infotype 0001 will help.&lt;/P&gt;&lt;P&gt;  ie. table PA0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149017#M116936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T10:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149018#M116937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for Ur response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I need is&lt;/P&gt;&lt;P&gt;I need to display the RGDIR data like payroll period paytype payroll identifier paydate etc., &lt;/P&gt;&lt;P&gt;along with the company code assigned to that PERNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to sort according to company code further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;PAVAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149018#M116937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149019#M116938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find BUKRS in WPBP table after looping at RGDIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149019#M116938</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-09T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149020#M116939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can U plz tell me its structure &lt;/P&gt;&lt;P&gt;I just didn't found there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PAVAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149020#M116939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T10:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149021#M116940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure is PC205&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149021#M116940</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-09T10:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149022#M116941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam confussed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;PAVAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149022#M116941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T10:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149023#M116942</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;To verify if the value is inthe Result, Use the Transaction 'pc_payresult'. Enter the pERNr and display the Results. You will see th RGDIR on the next screen. Double click on the Payroll Result you are intetrested and you will see all the Payroll internal tables on the next screen. Double click on WPBP &amp;amp; look for the value under 'CoCd'..It should be on the first line.. The Co Code is actually picked from Matser data ie 0001.. If you have already read 0001 in your Program, you an as well use p0001-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149023#M116942</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-09T10:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149024#M116943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Datti,&lt;/P&gt;&lt;P&gt;Thanks once again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can U plz tell ne how to get that after using cu_read_rgdir FM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 10:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149024#M116943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T10:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149025#M116944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I mean to ask is it is of PC261&lt;/P&gt;&lt;P&gt;and WPBP is of pc205&lt;/P&gt;&lt;P&gt;is there any FM to directly get the data of WPBP for a PERNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;PAVAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 11:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149025#M116944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T11:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149026#M116945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is quite simple.. After the function call to CU_READ_RGDIR for each pernr, the temp table RGDIR is filled. Loop at RGDIR for the Result in question and inside that loop.. read table WPBP index 1. the next step you will have the Co Code value in WPBP-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 11:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149026#M116945</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-09T11:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149027#M116946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam sorry to distrub you again&lt;/P&gt;&lt;P&gt;C &lt;/P&gt;&lt;P&gt;in cu_read_rgdir FM&lt;/P&gt;&lt;P&gt;Iam taking the output into IT of type pc261&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from there how can I get the data related to pc205&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PAVAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 11:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149027#M116946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-09T11:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: regarding payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149028#M116947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following code as a refrence.. But there are so many ways to read the Payroll results.. YOu could use the GET PAYROLL event or function modules like HR_PT_READ_PAYROLL_RESULT etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zppayresult.
.
data:  t_rgdir          like pc261 occurs 0 with header line.
include: rpcccd09,                      "constants for cluster CD/CU
         rpc2rx00,                      "Definition cluster RX (I)
         rpppxd00,                      "Buffer definition (I)
         rpc2ruu0.                      "US cluster

data: begin of common part buffer.
include: rpppxd10.                      "Buffer definition (II)
data: end  of common part buffer.
tables: pcl1, pcl2.
include rpppxm00.

start-of-selection.
  call function 'CU_READ_RGDIR'
    exporting
      persnr   = '00007519'
    tables
      in_rgdir = t_rgdir.
  if sy-subrc eq 0.
    loop at t_rgdir where seqnr = '00057'.
      rx-key-pernr = '00007519'.
      unpack t_rgdir-seqnr to rx-key-seqno.
*Import data from PCL2
      rp-imp-c2-ru.
      read table wpbp index 1.
      if sy-subrc eq 0.
        write:/ wpbp-bukrs.
      endif.
    endloop.
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2006 13:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-payroll/m-p/1149028#M116947</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-09T13:23:48Z</dc:date>
    </item>
  </channel>
</rss>

