<?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: Wage Type:  /700 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893716#M1143183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Pavan wrote is correct. Maybe some more explanation will help you. &lt;/P&gt;&lt;P&gt;Generally payroll results are stored in clusters. To see them run the program &lt;STRONG&gt;RPCLSTRT&lt;/STRONG&gt; and provide pernr here. On the right you will see &lt;STRONG&gt;cluster directory&lt;/STRONG&gt;, which stores all payroll periods with their results.&lt;/P&gt;&lt;P&gt;Now to access particular results (i.e.for December) you need to take on record of this cluster directory and extract it (open). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code does excatly same thing what Pavan provide but some comments may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF it_rgdir OCCURS 0.    "table for storing cluster directory
          INCLUDE STRUCTURE pc261.
         DATA: END OF it_rgdir.

"payroll results for Netherlands -&amp;gt; for your country provide structure PAYXX_RESULT,
"where XX - abbreviation of the country i.e. UK, IT, FR etc. Note! some are international then XX should be = 99

DATA: it_pay_result TYPE paynl_result,   
        wa_rt TYPE LINE OF hrpay99_rt.    "structure for payroll results (only table RT)

  "read cluster directory for an employee
  CALL FUNCTION 'CU_READ_RGDIR'
    EXPORTING
      persnr          = pernr-pernr
    TABLES
      in_rgdir        = it_rgdir
    EXCEPTIONS
      no_record_found = 1
      OTHERS          = 2.

  "process only records for December (open one entry from cluster directory)
  LOOP AT it_rgdir WHERE FPPER eq '200812' 
           AND srtza EQ 'A'.   "only active ones (those which in cluster directory have A at the beginning)

    "get payroll result for this period (Decemeber) 
    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
      EXPORTING
        clusterid                    = 'RN'   "This is cluster ID for Netherlands, for different country there should be different
        employeenumber               = pernr-pernr
        sequencenumber               = it_rgdir-seqnr
      CHANGING
        payroll_result               = it_pay_result   "here will payroll results be stored
      EXCEPTIONS
        illegal_isocode_or_clusterid = 1
        error_generating_import      = 2
        import_mismatch_error        = 3
        subpool_dir_full             = 4
        no_read_authority            = 5
        no_record_found              = 6
        versions_do_not_match        = 7
        OTHERS                       = 8.

    IF sy-subrc = 0.
      LOOP AT it_pay_result-inter-rt INTO wa_rt
           WHERE lgart EQ '/700'.   "read RT table with entry for WT /700

          "your coding here
      ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clearer now for you&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2008 15:11:19 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-12-22T15:11:19Z</dc:date>
    <item>
      <title>Wage Type:  /700</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893712#M1143179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to read a value that appears at:&lt;/P&gt;&lt;P&gt; Transaction: pc_payresult &amp;gt;&amp;gt; table: RT &amp;gt;&amp;gt; wage type:  &lt;STRONG&gt;/700&lt;/STRONG&gt; (Wage/salary + ER contrs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any &lt;STRONG&gt;function module&lt;/STRONG&gt; to read this information from the &lt;STRONG&gt;cluster?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bruno Silva&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 17:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893712#M1143179</guid>
      <dc:creator>bruno_silva2</dc:creator>
      <dc:date>2008-12-19T17:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Wage Type:  /700</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893713#M1143180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check my reply for this thread&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;SPAN __default_attr="red" __jive_macro_name="color"&gt;a®s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 17:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893713#M1143180</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-12-19T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wage Type:  /700</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893714#M1143181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope following code is usefull.&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                   = I_PERNO-PERNR&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      IN_RGDIR                 = I_SEQNO&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;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GETTING THE SALARY DETAILS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT I_SEQNO  WHERE FPBEG BETWEEN W_STYEAR AND W_CURRENT AND SRTZA = 'A'.&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                          = 'IN'&lt;/P&gt;&lt;P&gt;            EMPLOYEENUMBER                     =  I_PERNO-PERNR&lt;/P&gt;&lt;P&gt;            SEQUENCENUMBER                     =  I_SEQNO-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                     = LSX_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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BIFURCATE_RT.&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;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;FORM BIFURCATE_RT.&lt;/P&gt;&lt;P&gt;  CLEAR: HEADER,W_BETRG.&lt;/P&gt;&lt;P&gt;  LOOP AT LSX_RESULT-INTER-RT INTO HEADER WHERE ABART = '3' AND LGART = '8LTA'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2008 07:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893714#M1143181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-20T07:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wage Type:  /700</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893715#M1143182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I   Thanks for responding to my question.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;With these two functions supposedly I can get the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have another problem is that I need to get these values &lt;STRONG&gt;by restricting period&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For example I need of their value for the month of December.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I restrict the amount per month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my research I found the following function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'CD_EVALUATION_PERIODS'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not understand how this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone can help me understand how it works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno Silva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bruno  Silva on Dec 22, 2008 3:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 14:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893715#M1143182</guid>
      <dc:creator>bruno_silva2</dc:creator>
      <dc:date>2008-12-22T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wage Type:  /700</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893716#M1143183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Pavan wrote is correct. Maybe some more explanation will help you. &lt;/P&gt;&lt;P&gt;Generally payroll results are stored in clusters. To see them run the program &lt;STRONG&gt;RPCLSTRT&lt;/STRONG&gt; and provide pernr here. On the right you will see &lt;STRONG&gt;cluster directory&lt;/STRONG&gt;, which stores all payroll periods with their results.&lt;/P&gt;&lt;P&gt;Now to access particular results (i.e.for December) you need to take on record of this cluster directory and extract it (open). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code does excatly same thing what Pavan provide but some comments may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF it_rgdir OCCURS 0.    "table for storing cluster directory
          INCLUDE STRUCTURE pc261.
         DATA: END OF it_rgdir.

"payroll results for Netherlands -&amp;gt; for your country provide structure PAYXX_RESULT,
"where XX - abbreviation of the country i.e. UK, IT, FR etc. Note! some are international then XX should be = 99

DATA: it_pay_result TYPE paynl_result,   
        wa_rt TYPE LINE OF hrpay99_rt.    "structure for payroll results (only table RT)

  "read cluster directory for an employee
  CALL FUNCTION 'CU_READ_RGDIR'
    EXPORTING
      persnr          = pernr-pernr
    TABLES
      in_rgdir        = it_rgdir
    EXCEPTIONS
      no_record_found = 1
      OTHERS          = 2.

  "process only records for December (open one entry from cluster directory)
  LOOP AT it_rgdir WHERE FPPER eq '200812' 
           AND srtza EQ 'A'.   "only active ones (those which in cluster directory have A at the beginning)

    "get payroll result for this period (Decemeber) 
    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
      EXPORTING
        clusterid                    = 'RN'   "This is cluster ID for Netherlands, for different country there should be different
        employeenumber               = pernr-pernr
        sequencenumber               = it_rgdir-seqnr
      CHANGING
        payroll_result               = it_pay_result   "here will payroll results be stored
      EXCEPTIONS
        illegal_isocode_or_clusterid = 1
        error_generating_import      = 2
        import_mismatch_error        = 3
        subpool_dir_full             = 4
        no_read_authority            = 5
        no_record_found              = 6
        versions_do_not_match        = 7
        OTHERS                       = 8.

    IF sy-subrc = 0.
      LOOP AT it_pay_result-inter-rt INTO wa_rt
           WHERE lgart EQ '/700'.   "read RT table with entry for WT /700

          "your coding here
      ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clearer now for you&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 15:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893716#M1143183</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-12-22T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Wage Type:  /700</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893717#M1143184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to you I'm already getting the value that I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bruno Silva&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 10:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wage-type-700/m-p/4893717#M1143184</guid>
      <dc:creator>bruno_silva2</dc:creator>
      <dc:date>2008-12-23T10:33:26Z</dc:date>
    </item>
  </channel>
</rss>

