<?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: Getting the payroll in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600225#M1084320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any like Import and Export othet than FM's,programs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 07:35:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T07:35:02Z</dc:date>
    <item>
      <title>Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600223#M1084318</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;In general to fetch the payroll data we are using FM like &lt;/P&gt;&lt;P&gt;CU_READ_PAYROLL....&lt;/P&gt;&lt;P&gt;Is ther any other way to fetch the payroll I heard there is one more way.&lt;/P&gt;&lt;P&gt;Pls help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 07:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600223#M1084318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T07:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600224#M1084319</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;use this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HINCALC0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 07:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600224#M1084319</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-10-15T07:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600225#M1084320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any like Import and Export othet than FM's,programs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 07:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600225#M1084320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T07:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600226#M1084321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Event &lt;/P&gt;&lt;P&gt;GET PAYROLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in LDB PNP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to Tcode SE36, enter PNP and see documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gupta on Oct 15, 2008 9:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 07:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600226#M1084321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T07:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600227#M1084322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other than this way There is a way like IMPORT and EXPORT &lt;/P&gt;&lt;P&gt;directly can any body help me regarding this issue &lt;/P&gt;&lt;P&gt;PLsss.. help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 08:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600227#M1084322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600228#M1084323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Other than this way There is a way like IMPORT and EXPORT &lt;/P&gt;&lt;P&gt;&amp;gt; directly can any body help me regarding this issue &lt;/P&gt;&lt;P&gt;&amp;gt; PLsss.. help me.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Siva Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; There are so many ways we can fetch the payroll results&lt;/P&gt;&lt;P&gt;1.Import and Export parameter&lt;/P&gt;&lt;P&gt;2.Macros&lt;/P&gt;&lt;P&gt;3.Function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can use any one the options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tell me which option you want to use &lt;/P&gt;&lt;P&gt;here is the sample code to fecth data using macros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM get_payroll_results .

* get payroll processed results

  refresh itab_emp_details.
  clear   itab_emp_details.

  clear   rgdir.
  refresh rgdir.

  cd-key-pernr = pernr-pernr.
  rp-imp-c2-cu.
 if rp-imp-cd-subrc &amp;lt;&amp;gt; 0.
    move itab_empdetails-pernr to error_tab-pernr.
    move 'Cluster result not available'(004)
            to  error_tab-remarks.
    append error_tab.
*    write : / 'Result Not Available ', itab_empdetails-pernr.
*    reject.
 endif.

  check rp-imp-cd-subrc = 0.
  clear rx-key.

  rx-key-pernr = pernr-pernr.

  clear : w_absdays,w_workdays.

* Fill internal tables from cluster results to be displayed
  loop at rgdir
  where fpper = w_fpper
  and   inper = w_fpper
  and   void is initial
  and   abkrs in pnpabkrs.

    rx-key-seqno = rgdir-seqnr.
    rx-key-pernr = pernr-pernr.

    rp-imp-c2-in.

*  Successful import of cluster results
*  RETURN CODE FROM IMPORT.
    if rp-imp-in-subrc &amp;lt;&amp;gt; 0.
      continue.
    endif.

    loop at abc
    where atype = 'U'.
         w_absdays = w_absdays + abc-a.
    endloop.

*   get attendance days
    loop at wpbp.
         w_workdays = w_workdays + wpbp-asoll.
    endloop.

*   working days
    w_workdays = w_workdays - w_absdays.

    clear itab_emp_details.

    loop at rt WHERE LGART IN WAGETYPE.
         move : pernr-pernr   to itab_emp_details-pernr,
                format_name   to itab_emp_details-ename,
                pnpbegda+0(4) to itab_emp_details-year,
                pnpbegda+4(2) to itab_emp_details-month,
                '00'          to itab_emp_details-slctrl.

         write w_workdays  to itab_emp_details-attnd.

         write pernr-pernr to itab_emp_details-pernr1.

*        get descriptions for pa / psa / esg / py area
         perform get_org_description.

         append itab_emp_details.
         clear  itab_emp_details.

         exit.
    endloop.

*   sort rt in wage type order
    sort rt by lgart.

    loop at rt WHERE LGART IN WAGETYPE.  "selected wage types

         clear : w_lgart.
         w_lgart = rt-lgart.

*        move employee name and other details
         perform move_base_data_ern.

    endloop.

  endloop.

* consolidate into final table
  clear itab_empdetails.
  loop at itab_emp_details.
       move-corresponding itab_emp_details to itab_empdetails.
       append itab_empdetails.
       clear  itab_empdetails.
  endloop.

ENDFORM.                    " get_payroll_results&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 08:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600228#M1084323</guid>
      <dc:creator>NAeda</dc:creator>
      <dc:date>2008-10-15T08:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600229#M1084324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aeda,&lt;/P&gt;&lt;P&gt;thnaks for your replay, I want IMPORT and EXPORT&lt;/P&gt;&lt;P&gt;parameters method can you please give me the piece of code.&lt;/P&gt;&lt;P&gt;Thnq very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 08:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600229#M1084324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the payroll</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600230#M1084325</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;You have declare some of the include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code check it out it may help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Database Tables &amp;amp; Infotypes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:pcl1,        " HR Cluster1&lt;/P&gt;&lt;P&gt;       pcl2,        " HR Cluster1&lt;/P&gt;&lt;P&gt;       pa0003,      " Master data - Payroll Status&lt;/P&gt;&lt;P&gt;       pernr.       " Logical PNP&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;infotypes: 0000,&lt;/P&gt;&lt;P&gt;           0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include rpclst00.&lt;/P&gt;&lt;P&gt;include rpc2rx00.&lt;/P&gt;&lt;P&gt;include rpc2rxx0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include rpc2cd00.&lt;/P&gt;&lt;P&gt;*include rpc2ps00.&lt;/P&gt;&lt;P&gt;*include rpc2pt00.&lt;/P&gt;&lt;P&gt;*include rpcfvp00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include rpcfdc10.&lt;/P&gt;&lt;P&gt;*include rpcfdc00.&lt;/P&gt;&lt;P&gt;include rpppxd00.&lt;/P&gt;&lt;P&gt;include rpppxd10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the sample code how to use import and export parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  get_ot_data                                             *
*&amp;amp;--------------------------------------------------------------------*
* Get the Overtime Payment Data                                       * 
*----------------------------------------------------------------------*
form get_ot_data.
 cd-key = pernr-pernr.
 rp-imp-c2-cd.

 sort rgdir by seqnr.
*To get sequence number for the payroll period
 loop at rgdir where void     is initial
                   and reversal is initial
                   and outofseq is initial
                   and srtza    eq 'A'.
   if rgdir-fpper+0(4) = p_year.

*To consider offcycle run data
     if not rgdir-ocrsn is initial.
       v_seqnr = rgdir-seqnr.
       exit.
     endif.
     v_seqnr = rgdir-seqnr.
   endif.
   if not v_seqnr is initial.
     perform import_rx.
   endif.
   perform process_wagetypes.
 endloop.
endform.                 "get_ot_data

include rpppxm00.

*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  Import_rx
*&amp;amp;--------------------------------------------------------------------*
* Import the RX data from Clusters
*---------------------------------------------------------------------*
form import_rx.
 rx-key-pernr = cd-key-pernr.
 rx-key-seqno = v_seqnr.
 rp-init-buffer.
 rp-imp-c2-rx.
endform.                    " Import_rx

*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  Process_wagetypes
*&amp;amp;--------------------------------------------------------------------*
* Calculate the Overtime Amount based on Wage types
*---------------------------------------------------------------------*
form process_wagetypes.
 loop at rt.
   if  rt-lgart = c_lgart1 or rt-lgart = c_lgart2.
     if rgdir-fpper+0(4) = p_year.
       v_mon = rgdir-fpper+4(2).
       case v_mon .
         when c_1.
           rep_tab-ot1 = rep_tab-ot1 + rt-betrg.
         when c_2.
           rep_tab-ot2 = rep_tab-ot2 + rt-betrg.
         when c_3.
           rep_tab-ot3 = rep_tab-ot3 + rt-betrg.
         when c_4.
           rep_tab-ot4 = rep_tab-ot4 + rt-betrg.
         when c_5.
           rep_tab-ot5 = rep_tab-ot5 + rt-betrg.
         when c_6.
           rep_tab-ot6 = rep_tab-ot6 + rt-betrg.
         when c_7.
           rep_tab-ot7 = rep_tab-ot7 + rt-betrg.
         when c_8.
           rep_tab-ot8 = rep_tab-ot8 + rt-betrg.
         when c_9.
           rep_tab-ot9 = rep_tab-ot9 + rt-betrg.
         when c_10.
           rep_tab-ot10 = rep_tab-ot10 + rt-betrg.
         when c_11.
           rep_tab-ot11 = rep_tab-ot11 + rt-betrg.
         when c_12.
           rep_tab-ot12 = rep_tab-ot12 + rt-betrg.
       endcase.
     endif.
   endif.
 endloop.
endform.          "process_wagetypes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narsim Aeda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 08:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-payroll/m-p/4600230#M1084325</guid>
      <dc:creator>NAeda</dc:creator>
      <dc:date>2008-10-15T08:42:59Z</dc:date>
    </item>
  </channel>
</rss>

