<?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: Payroll cluster reading problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208126#M1005672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If U want to read the data based on the year entered on &lt;/P&gt;&lt;P&gt;selection screen then U'll get more number of records ..&lt;/P&gt;&lt;P&gt;(might be 12 .. one result for one month) ..&lt;/P&gt;&lt;P&gt;Get payroll periods based on the year entered ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change your coding as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT rgdir WHERE srtza = 'A'&lt;/P&gt;&lt;P&gt;AND abkrs IN s_abkrs &lt;/P&gt;&lt;P&gt;AND FPPER in r_FPPER. &amp;lt;-- U need to populate this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Read RU cluster) &lt;/P&gt;&lt;P&gt;rx-key-pernr = cd-key-pernr.&lt;/P&gt;&lt;P&gt;UNPACK rgdir-seqnr TO rx-key-seqno.&lt;/P&gt;&lt;P&gt;rp-init-buffer.&lt;/P&gt;&lt;P&gt;rp-imp-c2-ru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*get data from RT ... amount for required wage types ..&lt;/P&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;USE FM : HR_PAYROLL_PERIODS_GET to get the payroll periods ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 10:58:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-25T10:58:37Z</dc:date>
    <item>
      <title>Payroll cluster reading problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208122#M1005668</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;I want to read the RT table for PCL2(payroll cluster).&lt;/P&gt;&lt;P&gt;I want to fetch the data  on the basis of the payroll area and the current year...&lt;/P&gt;&lt;P&gt;How to do tht? Can anyone provide me some examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz provide some inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208122#M1005668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Payroll cluster reading problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208123#M1005669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first of all get all the employees ubder that payroll area ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function CU_READ_RGDIR .. to get the rgdir(PC261) &lt;/P&gt;&lt;P&gt;get the latest SEQNR from RGDIR structure from above ..&lt;/P&gt;&lt;P&gt;pass this FM : PYXX_READ_PAYROLL_RESULT along with pernr and get the payroll result ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'CU_READ_RGDIR'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    persnr                   = it_pernr-pernr&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;"   molga                     = molg&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;     in_rgdir                 = t_rgdir&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table t_rgdir into wa_rgdir with key srtza = 'A' &lt;/P&gt;&lt;P&gt;         fpbeg = pn-begda fpend = pn-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'PYXX_READ_PAYROLL_RESULT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      employeenumber                     = wa_info-pernr&lt;/P&gt;&lt;P&gt;      sequencenumber                     = wa_rgdir-seqnr&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      payroll_result                     = t_payresult&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at t_payresult-inter-rt into wa_rt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      case wa_rt-lgart .&lt;/P&gt;&lt;P&gt;      when ''.  &amp;lt;-- get the BETRG(amount) based on the LGART&lt;/P&gt;&lt;P&gt;      endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208123#M1005669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Payroll cluster reading problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208124#M1005670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="41375"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zzpayroll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: pa0001,&lt;/P&gt;&lt;P&gt;        pcl1,           "HR Cluster 1&lt;/P&gt;&lt;P&gt;        pcl2.           "HR Cluster 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Standard Include for US Payroll&lt;/P&gt;&lt;P&gt;include rpc2ruu0.            "Cluster RD data definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include rpc2cd00.            "Cluster CD Data-Definition&lt;/P&gt;&lt;P&gt;include rpc2ca00.            "Cluster CA Data-Definition&lt;/P&gt;&lt;P&gt;include rpc2rx00.            "Cluster RF data definition internat. part&lt;/P&gt;&lt;P&gt;include rpppxd00.            "Data definition buffer PCL1/PCL2&lt;/P&gt;&lt;P&gt;include rpppxd10.            "Common part buffer PCL1/PCL2&lt;/P&gt;&lt;P&gt;include rpppxm00.            "Buffer handling routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal Table to Hold data from PA0001&lt;/P&gt;&lt;P&gt;data : begin of it_pa0001 occurs 0,&lt;/P&gt;&lt;P&gt;         pernr like pa0001-pernr,&lt;/P&gt;&lt;P&gt;         begda like pa0001-begda,&lt;/P&gt;&lt;P&gt;         endda like pa0001-endda,&lt;/P&gt;&lt;P&gt;       end of it_pa0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of output occurs 0,&lt;/P&gt;&lt;P&gt;        pernr type pa0000-pernr,&lt;/P&gt;&lt;P&gt;        abart type abrar,&lt;/P&gt;&lt;P&gt;        zeinh type pt_zeinh,&lt;/P&gt;&lt;P&gt;        lgart like pa0008-lga01,&lt;/P&gt;&lt;P&gt;        betrg like pa0009-betrg,  "gROSS AMMOUNT.&lt;/P&gt;&lt;P&gt;        end of output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  v_seqnr  like pc261-seqnr.  "Sequence Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------select option&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options : s_pernr for pa0001-pernr, "Pernr&lt;/P&gt;&lt;P&gt;                  s_date  for sy-datum.     "Date&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform getd-data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  getD-data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form getd-data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       begda&lt;/P&gt;&lt;P&gt;       endda&lt;/P&gt;&lt;P&gt;       from pa0001&lt;/P&gt;&lt;P&gt;       into table it_pa0001&lt;/P&gt;&lt;P&gt;       where pernr in s_pernr.&lt;/P&gt;&lt;P&gt;sort it_pa0001 by pernr begda descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_pa0001.&lt;/P&gt;&lt;P&gt;data : v_molga  like t500l-molga .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CU_READ_RGDIR'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    persnr                   = it_pa0001-pernr&lt;/P&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt;   molga                    = v_molga&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    in_rgdir                 = rgdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    sort rgdir by seqnr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at rgdir where   srtza = 'A' and&lt;/P&gt;&lt;P&gt;                       void is initial and&lt;/P&gt;&lt;P&gt;                       reversal is initial and&lt;/P&gt;&lt;P&gt;                       outofseq is initial and&lt;/P&gt;&lt;P&gt;                       paydt    in s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_seqnr = rgdir-seqnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    rp-init-buffer.&lt;/P&gt;&lt;P&gt;    rx-key-pernr = it_pa0001-pernr.&lt;/P&gt;&lt;P&gt;    rx-key-seqno = v_seqnr.&lt;/P&gt;&lt;P&gt;    rp-imp-c2-ru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at rt.&lt;/P&gt;&lt;P&gt;      output-pernr = it_pa0001-pernr.&lt;/P&gt;&lt;P&gt;      output-betrg = rt-betrg.&lt;/P&gt;&lt;P&gt;      output-lgart = rt-lgart.&lt;/P&gt;&lt;P&gt;      output-abart = rt-abart.&lt;/P&gt;&lt;P&gt;      output-zeinh = rt-zeinh.&lt;/P&gt;&lt;P&gt;      append output.&lt;/P&gt;&lt;P&gt;      sort output by lgart betrg ascending.&lt;/P&gt;&lt;P&gt;      delete adjacent duplicates from output comparing lgart.&lt;/P&gt;&lt;P&gt;      clear  output.&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;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at output.&lt;/P&gt;&lt;P&gt;    write:/  sy-vline,&lt;/P&gt;&lt;P&gt;          output-pernr,&lt;/P&gt;&lt;P&gt;           sy-vline,&lt;/P&gt;&lt;P&gt;           output-lgart,&lt;/P&gt;&lt;P&gt;          sy-vline,&lt;/P&gt;&lt;P&gt;           output-betrg,&lt;/P&gt;&lt;P&gt;          sy-vline,&lt;/P&gt;&lt;P&gt;          output-abart,&lt;/P&gt;&lt;P&gt;          sy-vline,&lt;/P&gt;&lt;P&gt;          output-zeinh,&lt;/P&gt;&lt;P&gt;          sy-vline.&lt;/P&gt;&lt;P&gt;  write:/1(50) sy-uline  .&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;endform.                    " getD-data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208124#M1005670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Payroll cluster reading problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208125#M1005671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanx for the soln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pernrs, year and payroll area as the selection criterias on my screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i did some thing like:&lt;/P&gt;&lt;P&gt;  rp-init-buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set the key to retrieve the rgdir table that contains the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;payroll results directory for the employee&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR cd-key.&lt;/P&gt;&lt;P&gt;  cd-key-pernr = s_pernr-low.&lt;/P&gt;&lt;P&gt;  rp-imp-c2-cu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE rgdir LINES l_lines.&lt;/P&gt;&lt;P&gt;  IF l_lines &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    SORT rgdir DESCENDING BY seqnr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT rgdir WHERE srtza  = 'A'&lt;/P&gt;&lt;P&gt;                  AND abkrs  IN s_abkrs.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(Read RU cluster)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  rx-key-pernr = cd-key-pernr.&lt;/P&gt;&lt;P&gt;  UNPACK rgdir-seqnr TO rx-key-seqno.&lt;/P&gt;&lt;P&gt;  rp-init-buffer.&lt;/P&gt;&lt;P&gt;  rp-imp-c2-ru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i m not able to fetch the data on the basis of the year that user enters on the screen,&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208125#M1005671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Payroll cluster reading problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208126#M1005672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If U want to read the data based on the year entered on &lt;/P&gt;&lt;P&gt;selection screen then U'll get more number of records ..&lt;/P&gt;&lt;P&gt;(might be 12 .. one result for one month) ..&lt;/P&gt;&lt;P&gt;Get payroll periods based on the year entered ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change your coding as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT rgdir WHERE srtza = 'A'&lt;/P&gt;&lt;P&gt;AND abkrs IN s_abkrs &lt;/P&gt;&lt;P&gt;AND FPPER in r_FPPER. &amp;lt;-- U need to populate this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Read RU cluster) &lt;/P&gt;&lt;P&gt;rx-key-pernr = cd-key-pernr.&lt;/P&gt;&lt;P&gt;UNPACK rgdir-seqnr TO rx-key-seqno.&lt;/P&gt;&lt;P&gt;rp-init-buffer.&lt;/P&gt;&lt;P&gt;rp-imp-c2-ru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*get data from RT ... amount for required wage types ..&lt;/P&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;USE FM : HR_PAYROLL_PERIODS_GET to get the payroll periods ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-cluster-reading-problem/m-p/4208126#M1005672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:58:37Z</dc:date>
    </item>
  </channel>
</rss>

