Skip to Content
author's profile photo Former Member
Former Member

HR ABAP payroll Related

Hi,

Can any one give an idea of how to implement the fn. module HR_GET_PAYROLL_RESULTS as i tried giving the values for a already exisiting personnel from pc_payresult ,in the import parameters of function module and execute it iam not getting the results table but instead gives an error message

Exception WRONG_STRUCTURE_OF_RESULT_TAB

Message ID: RP Message number: 016

Message:

WRONG_STRUCTURE_OF_RESULT_TAB

Thanks in advance

Regards,

Sangram

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 13, 2006 at 04:58 PM

    Pl check the model report RPMUST01 in your system.

    ~Suresh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 05:15 PM

    Hi Sangram,

    See below code sample for reading payroll results for an employee in US

    *select the max sequence number for the PERNR from directory

    SELECT MAX( seqnr )

    INTO w_seqnr

    FROM hrpy_rgdir

    WHERE pernr EQ w_pernr.

    IF sy-subrc IS INITIAL.

    **get the payroll results for the employee

    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

    EXPORTING

    employeenumber = w_pernr

    sequencenumber = w_seqnr

    clusterid = 'RU' "depends on for which country

    CHANGING

    payroll_result = i_payresult

    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 IS INITIAL.

    *Get the CRT (cumulative results) table entries

    i_crt[] = i_payresult-inter-crt[].

    you can read the i_crt table with wage type (lgart) & cumty (yearly) and get the year to date amounts.

    This is for US so the declaration of parameters are as follows

    i_payresult TYPE payus_result,

    i_crt TYPE TABLE OF pc208.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.