<?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 result in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034747#M964337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://fuller.mit.edu/hr/cluster_tables.html" target="test_blank"&gt;http://fuller.mit.edu/hr/cluster_tables.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sitaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 06:52:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T06:52:38Z</dc:date>
    <item>
      <title>payroll result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034745#M964335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts !&lt;/P&gt;&lt;P&gt;plz tell me how i can read payroll clusters and result .&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034745#M964335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T06:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: payroll result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034746#M964336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ranjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include rpc2cd09. "Cluster CD Data-Definition&lt;/P&gt;&lt;P&gt;include rpc2ca00. "Cluster CA Data-Definition &lt;/P&gt;&lt;P&gt;include RPC2RKK0. "Cluster RK Data-Definition&lt;/P&gt;&lt;P&gt;include rpc2rx09. "Cluster internat. part&lt;/P&gt;&lt;P&gt;include rpppxd00. "Data befinition 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;data : it_rgdir like pc261 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : it_rt like PC207 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First get the payroll results using the FM : CU_READ_RGDIR&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 = p_pernr &amp;lt;-- pass pernr here ... &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;in_rgdir = it_rgdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;SORT it_rgdir BY seqnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_rgdir WHERE srtza = 'A'&lt;/P&gt;&lt;P&gt;AND void IS INITIAL&lt;/P&gt;&lt;P&gt;AND reversal IS INITIAL&lt;/P&gt;&lt;P&gt;AND fpper = v_fpper. &amp;lt;-- Pass the period for&lt;/P&gt;&lt;P&gt;which U want to get the payroll results&lt;/P&gt;&lt;P&gt;v_seqnr = it_rgdir-seqnr. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rx-key-pernr = p_pernr.&lt;/P&gt;&lt;P&gt;rx-key-seqno = v_seqnr.&lt;/P&gt;&lt;P&gt;rp-imp-c2-rk. &amp;lt;-- relid for canada is 'RK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_rt] = rt[. ---&amp;gt; results table ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now loop at rt .. and get the amounts for wage types ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just an example ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_rt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_rt-lgart = '/101'.&lt;/P&gt;&lt;P&gt;v_betrg = it_rt-betrg.&lt;/P&gt;&lt;P&gt;endif.&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;hope its clear to you,&lt;/P&gt;&lt;P&gt;Reward points if usefull,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034746#M964336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T06:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: payroll result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034747#M964337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://fuller.mit.edu/hr/cluster_tables.html" target="test_blank"&gt;http://fuller.mit.edu/hr/cluster_tables.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sitaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034747#M964337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T06:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: payroll result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034748#M964338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Payroll Result Data Stored in PCL2.&lt;/P&gt;&lt;P&gt;u2022Stored in the transparent table PCL2.&lt;/P&gt;&lt;P&gt;u2022Example of some clusters available in PCL2:&lt;/P&gt;&lt;P&gt;u2013CU -Cluster directory&lt;/P&gt;&lt;P&gt;u2013RG -Payroll results (GB)&lt;/P&gt;&lt;P&gt;u2013B2 -Time management results&lt;/P&gt;&lt;P&gt;u2013ZL-Personal shift plan&lt;/P&gt;&lt;P&gt;u2013PS-Generated schema&lt;/P&gt;&lt;P&gt;u2013PT-Texts for generated schema&lt;/P&gt;&lt;P&gt;u2022Data is stored in CLUSTD field.&lt;/P&gt;&lt;P&gt;u2013To optimise data selection, RGDIR table of cluster CU is replicated into HRPY_RGDIR.&lt;/P&gt;&lt;P&gt;u2022&lt;STRONG&gt;Using LDB for HR-PY programming:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;u2013PYORGSCREEN and PYTIMESCREEN need to be declared in TABLES statement for the extra payroll related selection-screen.&lt;/P&gt;&lt;P&gt;u2013PAYROLL node to be declared in the NODE statement with reference type to PAYGB_RESULT for UK or PAY99_RESULT for international.&lt;/P&gt;&lt;P&gt;u2013HR report category can be changed to use Payroll Results (Cluster) for selection screen customisation.&lt;/P&gt;&lt;P&gt;u2022GET PAYROLL.u2013PAYROLL structure will be populated. If more than one payroll period is specified at the selection screen, this event will be executed for each period.&lt;/P&gt;&lt;P&gt;u2013Payroll results internal table may contains more than one resultdepending on the u2018status of resultu2019selection.&lt;/P&gt;&lt;P&gt; u2013To evaluate payroll result, LOOP through the &lt;/P&gt;&lt;P&gt;PAYROLL-INTER-RT internal table.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------" /&gt;&lt;P&gt;First Using Get peras event read the RGDIR results as below&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 = p_pernr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;molga = p_molga&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;in_rgdir = p_rgdir&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_record_found = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;Get the Cluster ID based on the molga value of the employee using T5001 table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Based on the RGDIR results loop retrive the payroll results below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_rgdir INTO wa_rgdir WHERE fpbeg LE wa_dates-endda AND fpend GE wa_dates-endda&lt;/P&gt;&lt;P&gt;AND srtza EQ c_a&lt;/P&gt;&lt;P&gt;AND payty EQ c_space.&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;clusterid = wa_t500l-relid&lt;/P&gt;&lt;P&gt;employeenumber = pernr-pernr&lt;/P&gt;&lt;P&gt;sequencenumber = wa_rgdir-seqnr&lt;/P&gt;&lt;P&gt;read_only_international = 'X'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;payroll_result = gt_result&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;illegal_isocode_or_clusterid = 1&lt;/P&gt;&lt;P&gt;error_generating_import = 2&lt;/P&gt;&lt;P&gt;import_mismatch_error = 3&lt;/P&gt;&lt;P&gt;subpool_dir_full = 4&lt;/P&gt;&lt;P&gt;no_read_authority = 5&lt;/P&gt;&lt;P&gt;no_record_found = 6&lt;/P&gt;&lt;P&gt;versions_do_not_match = 7&lt;/P&gt;&lt;P&gt;error_reading_archive = 8&lt;/P&gt;&lt;P&gt;error_reading_relid = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; TABLES: RP50G,PERNR,PYORGSCREEN,PYTIMESCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IN_RGDIR LIKE PC261 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      WA_RT LIKE PC207 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      SEQNR LIKE PC261-SEQNR,&lt;/P&gt;&lt;P&gt;      RESULT TYPE PAY99_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: M_START LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;      M_END LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_PAYROLL USING P_PERNR M_START M_END.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This FM help us to get the Sequence number used for the&lt;/P&gt;&lt;P&gt;*employee on the payroll.&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          = P_PERNR&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            IN_RGDIR        = IN_RGDIR&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            NO_RECORD_FOUND = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*We read it using two dates, which corresponds to the month *we need&lt;/P&gt;&lt;P&gt;  READ TABLE IN_RGDIR WITH KEY FPBEG = M_START&lt;/P&gt;&lt;P&gt;                               FPEND = M_END.&lt;/P&gt;&lt;P&gt;  SEQNR = IN_RGDIR-SEQNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This FM actually reads the payroll and get the information&lt;/P&gt;&lt;P&gt;*we need.&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;            CLUSTERID                    = 'XX'&lt;/P&gt;&lt;P&gt;*In CLUSTERID use the country of your choice&lt;/P&gt;&lt;P&gt;            EMPLOYEENUMBER               = P_PERNR&lt;/P&gt;&lt;P&gt;            SEQUENCENUMBER               = SEQNR&lt;/P&gt;&lt;P&gt;            READ_ONLY_INTERNATIONAL      = 'X'&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            PAYROLL_RESULT               = RESULT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            ILLEGAL_ISOCODE_OR_CLUSTERID = 1&lt;/P&gt;&lt;P&gt;            ERROR_GENERATING_IMPORT      = 2&lt;/P&gt;&lt;P&gt;            IMPORT_MISMATCH_ERROR        = 3&lt;/P&gt;&lt;P&gt;            SUBPOOL_DIR_FULL             = 4&lt;/P&gt;&lt;P&gt;            NO_READ_AUTHORITY            = 5&lt;/P&gt;&lt;P&gt;            NO_RECORD_FOUND              = 6&lt;/P&gt;&lt;P&gt;            VERSIONS_DO_NOT_MATCH        = 7&lt;/P&gt;&lt;P&gt;            OTHERS                       = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*We just need to read the result table.&lt;/P&gt;&lt;P&gt;  LOOP AT RESULT-INTER-RT INTO WA_RT.&lt;/P&gt;&lt;P&gt;    CASE WA_RT-LGART.&lt;/P&gt;&lt;P&gt;      WHEN '9010'.&lt;/P&gt;&lt;P&gt;         MOVE WA_RT-BETRG TO T_ANYTABLE-SOMEPAY.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If helpful needs to appreciated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 09:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034748#M964338</guid>
      <dc:creator>HemendraS</dc:creator>
      <dc:date>2008-07-03T09:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: payroll result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034749#M964339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Payroll Result Data Stored in PCL2.&lt;/P&gt;&lt;P&gt;u2022Stored in the transparent table PCL2.&lt;/P&gt;&lt;P&gt;u2022Example of some clusters available in PCL2:&lt;/P&gt;&lt;P&gt;u2013CU -Cluster directory&lt;/P&gt;&lt;P&gt;u2013RG -Payroll results (GB)&lt;/P&gt;&lt;P&gt;u2013B2 -Time management results&lt;/P&gt;&lt;P&gt;u2013ZL-Personal shift plan&lt;/P&gt;&lt;P&gt;u2013PS-Generated schema&lt;/P&gt;&lt;P&gt;u2013PT-Texts for generated schema&lt;/P&gt;&lt;P&gt;u2022Data is stored in CLUSTD field.&lt;/P&gt;&lt;P&gt;u2013To optimise data selection, RGDIR table of cluster CU is replicated into HRPY_RGDIR.&lt;/P&gt;&lt;P&gt;u2022&lt;STRONG&gt;Using LDB for HR-PY programming:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;u2013PYORGSCREEN and PYTIMESCREEN need to be declared in TABLES statement for the extra payroll related selection-screen.&lt;/P&gt;&lt;P&gt;u2013PAYROLL node to be declared in the NODE statement with reference type to PAYGB_RESULT for UK or PAY99_RESULT for international.&lt;/P&gt;&lt;P&gt;u2013HR report category can be changed to use Payroll Results (Cluster) for selection screen customisation.&lt;/P&gt;&lt;P&gt;u2022GET PAYROLL.u2013PAYROLL structure will be populated. If more than one payroll period is specified at the selection screen, this event will be executed for each period.&lt;/P&gt;&lt;P&gt;u2013Payroll results internal table may contains more than one resultdepending on the u2018status of resultu2019selection.&lt;/P&gt;&lt;P&gt; u2013To evaluate payroll result, LOOP through the &lt;/P&gt;&lt;P&gt;PAYROLL-INTER-RT internal table.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------" /&gt;&lt;P&gt;First Using Get peras event read the RGDIR results as below&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 = p_pernr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;molga = p_molga&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;in_rgdir = p_rgdir&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_record_found = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;Get the Cluster ID based on the molga value of the employee using T5001 table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Based on the RGDIR results loop retrive the payroll results below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_rgdir INTO wa_rgdir WHERE fpbeg LE wa_dates-endda AND fpend GE wa_dates-endda&lt;/P&gt;&lt;P&gt;AND srtza EQ c_a&lt;/P&gt;&lt;P&gt;AND payty EQ c_space.&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;clusterid = wa_t500l-relid&lt;/P&gt;&lt;P&gt;employeenumber = pernr-pernr&lt;/P&gt;&lt;P&gt;sequencenumber = wa_rgdir-seqnr&lt;/P&gt;&lt;P&gt;read_only_international = 'X'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;payroll_result = gt_result&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;illegal_isocode_or_clusterid = 1&lt;/P&gt;&lt;P&gt;error_generating_import = 2&lt;/P&gt;&lt;P&gt;import_mismatch_error = 3&lt;/P&gt;&lt;P&gt;subpool_dir_full = 4&lt;/P&gt;&lt;P&gt;no_read_authority = 5&lt;/P&gt;&lt;P&gt;no_record_found = 6&lt;/P&gt;&lt;P&gt;versions_do_not_match = 7&lt;/P&gt;&lt;P&gt;error_reading_archive = 8&lt;/P&gt;&lt;P&gt;error_reading_relid = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; TABLES: RP50G,PERNR,PYORGSCREEN,PYTIMESCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IN_RGDIR LIKE PC261 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      WA_RT LIKE PC207 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      SEQNR LIKE PC261-SEQNR,&lt;/P&gt;&lt;P&gt;      RESULT TYPE PAY99_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: M_START LIKE SY-DATUM,&lt;/P&gt;&lt;P&gt;      M_END LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_PAYROLL USING P_PERNR M_START M_END.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This FM help us to get the Sequence number used for the&lt;/P&gt;&lt;P&gt;*employee on the payroll.&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          = P_PERNR&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            IN_RGDIR        = IN_RGDIR&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            NO_RECORD_FOUND = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*We read it using two dates, which corresponds to the month *we need&lt;/P&gt;&lt;P&gt;  READ TABLE IN_RGDIR WITH KEY FPBEG = M_START&lt;/P&gt;&lt;P&gt;                               FPEND = M_END.&lt;/P&gt;&lt;P&gt;  SEQNR = IN_RGDIR-SEQNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This FM actually reads the payroll and get the information&lt;/P&gt;&lt;P&gt;*we need.&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;            CLUSTERID                    = 'XX'&lt;/P&gt;&lt;P&gt;*In CLUSTERID use the country of your choice&lt;/P&gt;&lt;P&gt;            EMPLOYEENUMBER               = P_PERNR&lt;/P&gt;&lt;P&gt;            SEQUENCENUMBER               = SEQNR&lt;/P&gt;&lt;P&gt;            READ_ONLY_INTERNATIONAL      = 'X'&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            PAYROLL_RESULT               = RESULT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            ILLEGAL_ISOCODE_OR_CLUSTERID = 1&lt;/P&gt;&lt;P&gt;            ERROR_GENERATING_IMPORT      = 2&lt;/P&gt;&lt;P&gt;            IMPORT_MISMATCH_ERROR        = 3&lt;/P&gt;&lt;P&gt;            SUBPOOL_DIR_FULL             = 4&lt;/P&gt;&lt;P&gt;            NO_READ_AUTHORITY            = 5&lt;/P&gt;&lt;P&gt;            NO_RECORD_FOUND              = 6&lt;/P&gt;&lt;P&gt;            VERSIONS_DO_NOT_MATCH        = 7&lt;/P&gt;&lt;P&gt;            OTHERS                       = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*We just need to read the result table.&lt;/P&gt;&lt;P&gt;  LOOP AT RESULT-INTER-RT INTO WA_RT.&lt;/P&gt;&lt;P&gt;    CASE WA_RT-LGART.&lt;/P&gt;&lt;P&gt;      WHEN '9010'.&lt;/P&gt;&lt;P&gt;         MOVE WA_RT-BETRG TO T_ANYTABLE-SOMEPAY.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If helpful needs to appreciated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 04:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/payroll-result/m-p/4034749#M964339</guid>
      <dc:creator>HemendraS</dc:creator>
      <dc:date>2008-07-04T04:49:33Z</dc:date>
    </item>
  </channel>
</rss>

