How to find payroll results using includes

hi all,
      I have a requirement to get the payroll results of number of data clusters using includes not by using function modules.
I know by using function modules.
      How to find out the exact include for given data cluster. If there is any path please let me know.
thanks & regards,
    sekhar.

Hi,
You can define macros in the program and call depending on the cluster you need.
For Eg  for B2 cluster,
rp-imp-c2-b2.
before calling macros,
You should fill the key
move pernr  to b2-key-pernr.
  move year         to b2-key-pabrj.
  move period       to b2-key-pabrp.
  move '1'          to b2-key-cltyp.
rp-imp-c2-b2.
For payroll
RP-IMP-C2-RU
Regards,
Manoj.

Similar Messages

  • ABAP HR - How to insert payroll results using fm PYXX_WRITE_PAYROLL_RESULT

    Hi,
    I have a scenario where I want to read cluster information (PCL2 RX) from system A and insert it into system B. Both systems are SAP ECC 6.0. Employee master data already exists on target system, but no payroll results yet, so this is an insert and not an update.
    I am using fm PYXX_READ_PAYROLL_RESULT (I also tried with HRCM_PAYROLL_RESULTS_GET) to read the data and then calling a RFC on system B where I use fm PYXX_WRITE_PAYROLL_RESULT to write the payroll results into database. Is this fm only to use in case of update, or it should also work when inserting new lines on the cluster? Because I always get a sy-subrc=0 but nothing is created on the db. Is there any other way to this? Do you have any code samples?
    Many thanks,
    Miguel

    HI Miguel:
    I have succe add of new payroll records, the following reference code:
    *& Report  ZTEST_BJARNE8
    REPORT  ztest_bjarne8.
    TABLES:pcl1,pcl2.
    INCLUDE rpc2cd00.           "Cluster CD data definition
    INCLUDE rpc2ca00.           "Cluster CA Data-Definition
    INCLUDE pc2rxcn0.           "Cluster CN data definition
    INCLUDE rpc2rx00.           "Cluster RX data definition internat. part
    DATA: refvar_curr TYPE REF TO data.
    DATA: refvar_prev TYPE REF TO data.
    DATA: refvar_cumul TYPE REF TO data.
    DATA: t52relid_header TYPE t52relid.
    FIELD-SYMBOLS: <payresult_current>.
    DATA: employee_number LIKE pc200-pernr,
          client           LIKE sy-mandt,
          globalmolga      TYPE T500L-MOLGA,
          cluster_id       LIKE t500l-relid,
          isocode          LIKE t500l-intca.
    DATA: rgdir_entry LIKE pc261.
    CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.
    employee_number = '81000463'.
    CLEAR:rgdir.REFRESH rgdir[].
    CALL FUNCTION 'CU_READ_RGDIR_NEW'
      EXPORTING
        persnr                = employee_number
        check_read_authority  = space
        imp_client            = client
      TABLES
        in_rgdir              = rgdir
      EXCEPTIONS
        no_record_found       = 1
        import_mismatch_error = 2
        no_read_authority     = 3
        OTHERS                = 4.
    LOOP AT rgdir.
    ENDLOOP.
    cluster_id = 'CN'.
    SELECT SINGLE * FROM t52relid INTO t52relid_header
                           WHERE relid = cluster_id.
    CREATE DATA refvar_curr TYPE (t52relid_header-typename).
    ASSIGN refvar_curr->* TO <payresult_current>.
    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
      EXPORTING
        clusterid                    = cluster_id
        employeenumber               = employee_number
        sequencenumber               = rgdir-seqnr
        check_read_authority         = space"false "already done
        filter_cumulations           = space
      CHANGING
        payroll_result               = <payresult_current>
      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 NOT <payresult_current> IS INITIAL.
      "TODO changed RT data......
      "Add new month payresult
       rgdir-seqnr = rgdir-seqnr + 1.
      CALL FUNCTION 'PYXX_WRITE_PAYROLL_RESULT'
        EXPORTING
          clusterid                          = cluster_id
          employeenumber                     = employee_number
          sequencenumber                     = rgdir-seqnr
          payroll_result                     = <payresult_current>
          CLIENT                             =
       EXCEPTIONS
         illegal_isocode_or_clusterid       = 1
         error_generating_export            = 2
         export_error                       = 3
         subpool_dir_full                   = 4
         no_update_authority                = 5
         incomplete_result_imported         = 6
         OTHERS                             = 7
      IF sy-subrc <> 0.
      ENDIF.
      APPEND rgdir.
       globalmolga = '28'.
       client = '200'.
      CALL FUNCTION 'CU_WRITE_RGDIR_NEW'
        EXPORTING
          persnr              = employee_number
          molga               = globalmolga
          imp_client          = client
        TABLES
          rgdir               = rgdir
        EXCEPTIONS
          no_update_authority = 1
          OTHERS              = 2.
      CALL FUNCTION 'HR_FLUSH_BUFFER_UPDATE_PCLX'
        EXPORTING
          test                = space
        EXCEPTIONS
          insert_error        = 1
          no_update_authority = 2
          OTHERS              = 3.
      IF sy-subrc <> 0.
        "MESSAGE e062.
      ENDIF.
    ENDIF.
    "INCLUDE  rpc2cd09.
    *& INCLUDE
    INCLUDE rpppxd00.           "Data definition buffer PCL1/PCL2
    INCLUDE rpppxd10.           "Common part buffer PCL1/PCL2
    INCLUDE rpppxm00.           "Buffer handling routine

  • Reading Payroll Results using PNPCE

    Hi All,
    As far as reading infotypes/master data is concerned, I am comfortable using "PNPCE" instead of logical database "PNP".
    Can any one tell me how can I read payroll results using "PNPCE". Since Get payroll event is not available in pnpce.

    Hi khalid,
    1. U want the remuneration (monthly salary )
    2. U won't get it DIRECTLY from any table.
    (Its stored in cluster format)
    3. Use this logic and FM.
    DATA: myseqnr LIKE hrpy_rgdir-seqnr.
    DATA : mypy TYPE payin_result.
    DATA : myrt LIKE TABLE OF pc207 WITH HEADER LINE.
    SELECT SINGLE seqnr FROM hrpy_rgdir
    INTO myseqnr
    WHERE pernr = mypernr
    AND fpper = '200409'
    AND srtza = 'A'.
    IF sy-subrc = 0.
    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
    EXPORTING
    clusterid = 'IN'
    employeenumber = mypernr
    sequencenumber = myseqnr
    CHANGING
    payroll_result = mypy
    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
    error_reading_archive = 8
    error_reading_relid = 9
    OTHERS = 10.
    myrt[] = mypy-inter-rt.
    READ TABLE myrt WITH KEY lgart = '1899'.
    4. the internal table myrt
    will contain what u require.
    regards,
    amit m.

  • Looping payroll results using pnpce ldb

    hii experts,
    Can anybody tell me how can v loop payroll results using pnpce ldb..plz provide me the syntax...or any reference report
    program.

    Hi First Using Get peras event read the RGDIR results as below
    CALL FUNCTION 'CU_READ_RGDIR'
        EXPORTING
          persnr          = p_pernr
        IMPORTING
          molga           = p_molga
        TABLES
          in_rgdir        = p_rgdir
        EXCEPTIONS
          no_record_found = 1
          OTHERS          = 2.
    Get the Cluster ID based on the molga value of the employee using T5001 table
    Then Based on the RGDIR results loop retrive the payroll results below
        LOOP AT gt_rgdir INTO wa_rgdir WHERE fpbeg LE wa_dates-endda AND fpend GE wa_dates-endda
                            AND srtza EQ c_a
                            AND payty EQ c_space.
      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
            EXPORTING
              clusterid                    = wa_t500l-relid
              employeenumber               = pernr-pernr
              sequencenumber               = wa_rgdir-seqnr
              read_only_international      = 'X'
            CHANGING
              payroll_result               = gt_result
            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
              error_reading_archive        = 8
              error_reading_relid          = 9
              OTHERS                       = 10.

  • How to import payroll result from 3rd party system to SAP

    Hi Experts,
    May i know how to import payroll result from legacy system / 3rd party payroll system into SAP.
    i need to import the payroll result from Jan - April (from 3rd party payroll system) and system go live on May. I using payroll malaysia.
    Thanks.

    check this link
    http://help.sap.com/saphelp_40b/helpdata/en/91/80e9087834d111a4620060b03c3b0e/content.htm

  • How to find process chain using background job in sm37

    How to find process chain using background job in sm37

    Better is to select the job.
    Select (Define) Step (s) or F6.
    Select the line and Menu Goto>Variant.
    The variant contains the name of the CHAIN and its VARIANT.
    Success
    We faced an old job and via job monitoring we were informed about a cancelled job every 'interval'.
    We noticed that the related chain was deleted but still the job was scheduled each interval again and was cancelled because an event was missing
    We could not find the scheduled job via SM37.
    Via view V_OP, view over tbtco abd tbtcp, we find the related entry.
    We delete these entries via function BP_JOB_DELETE....
    Edited by: Jack Otten on Jul 9, 2010 2:50 PM

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • What do i need to do to find myiphone I have the app in my computer, but I don't know how to find it or use it.

    How do I use the find my phone app to find my phone? 
    what do i need to do?  I have the app in my computer, but I don't know how to find it or use it.

    To use Find my iPhone on a PC or Mac, open http://www.icloud.com, login with your Apple ID and choose Find my iPhone. There isn't an app for Mac or PC

  • How to find Software version using a copy of software without installing

    How to find Software version using a copy of software without installing

    How to find Software version using a copy of software without installing
    See answer given by Ahmed
    Right click on setup file and select properties and then details tab.
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/c5424ffa-ce98-4899-ac0d-97cbcac10029/how-to-get-versionbuild-from-sql-install-media
    You can also open Mediainfo.xml to see information from Installation file
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How to find Port numbers used by RMI application

    Hi, hope u all find me a solution, how to find port numbers used in the RMI application, that is port number which the RMI application communicates between RMIserver and RMIclient. ur answers would b highly appreciated

    Currently RMI transport layer does not directly expose any public methods to get the listening ports of the exported RMI objects, but the application can always export RMI server objects at certain designated ports instead of relying on the RMI runtime by specifying them to UnicastRemoteObjcect at the time of exporting.
    RMI transport layer try to optimize the number of listeing sockets by exporting all RMI server objects on a single port if no explicit ports were chosen. If the application is really interested in knowing the listeing ports, it can always specify the client and server socket factories to be used for creating Socket and ServerSocket to the RMI runtime at the time of exporting. When a RMI server object is exported, but the listening socket is not yet created, RMI transport layer invokes the createServerSocket(host, port) of server socket factory by passing the host and port details. If no explicit port is specified, underlying socket implementation choses anonymous port. At this point of time application can log these listeing ports to some log file.
    Similarly when the stub to the remote object is de-serialized in the client address space, it does also contain the client socket factory along with the end point details (host, port and server object ID). RMI runtime in the client address space needs to establish connection with the remote server object, it try to get the socket from client socket factory by invoking createSocket() on the client socket factory. Now the application can call getLocalPort() on the socket before returning it to the RMI transport layer.
    There is a undocumented class RMIStat to dump RMI runtime state information. It provides a lot of static methods to dump RMI state information like object table, transports, threads etc. You can download the source code of this utility from RMI archives, but remember this is not a comman-line utility, you must invoke these static methods as part of the application code.
    -- Srinath Mandalapu

  • How to find the records using contains with the word like this 'some text-some text'?

    Hi,
    How to find the records using the full text contains keyword and that column contains ‘some text-some text’
    In the above some text can be anything.
    Does anybody know please let me know.
    Thanks,

    Hello,
    You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
    For example:
    SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
    Reference:
    Full-Text Search (SQL Server)
    Creating Full Text Catalog and Full Text Search
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to find company code using sales doc. No

    Hi,
         I need to print company code, how to find company code using sales doc no. I don't find it VBAK.
    Cheers
    Senthil

    Dear Senthil
    You can find in table VBAK itself - Field BUKRS_VF
    thanks
    G. Lakshmipathi

  • HT1766 How to find Macbook Pro using Itunes. Do not have Icloud or find my phone function.

    How to find Macbook Pro using Itunes. Do not have Icloud or find my phone function.

    1. This is the iPad forum.  For Macbook questions use the Macbook forum.
    https://discussions.apple.com/community/notebooks/macbook_pro
    The hosts will likely move the thread there shortly.
    2.  You can't use iTunes to find your computer.   You can use icloud.com from another computer to find it if you setup Find my Mac on the lost macbook pro.
    http://support.apple.com/kb/PH2698

  • How to track payroll results if payroll runs twice in day.

    Hi ALL,
       How can i see all  payroll results if payroll runs more than once in a day. i.e if program runs on 31.10.2008 at 9.00 AM and the same day program runs at 8.00PM .i have to find both results. please give me any table or program form whihc we can find the No.of time that program was run in the one day.
    thank You
    Ram

    >
    Asam Ramakrishna wrote:
    > Hi ALL,
    >
    >    How can i see all  payroll results if payroll runs more than once in a day. i.e if program runs on 31.10.2008 at 9.00 AM and the same day program runs at 8.00PM .i have to find both results. please give me any table or program form whihc we can find the No.of time that program was run in the one day.
    >
    > thank You
    > Ram
    The payroll results directory of an employee can be found in the database table HRPY_RGDIR, alternatively you
    can also use the FM CD_READ_RGDIR or the macro RP-IMP-C2-CD to fetch the payroll results directory for an employee

  • How to clear Payroll results in Bulk???

    Hi Folks,
    Could all the payroll results of one personnel numbers be removed one stretch????
    (Instead of pu01)
    regards,
    Santhosh

    RPUAUD00 HR Report to list all logged changes in infotype data for an employee. Uses the PCL4 Audit Cluster.
    RPUAUDDL HR Report to delete audit data from the PCL4 Audit Cluster
    RPUDELPN Delete all info for an employee number, including cluster data and infotypes
    RPUP1D00 View/Delete records from PCL1 Cluster
    RPUP2D00 View/Delete records from PCL2 Cluster
    RPUP3D00 View/Delete records from PCL3 Cluster
    RPUP4D00 View/Delete records from PCL4 Cluster

Maybe you are looking for