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

Programming with Clusters for HR-Payroll

Hi

I have a requirement to make a report using payroll result.

Can anyone in the forum suggest me some good links for the same ?

Thanks in Advance,

Mayank

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jun 16, 2005 at 09:21 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2005 at 09:29 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2005 at 01:07 PM

    &----


    *& Report ZREAD_RT *

    *& *

    &----


    *& *

    *& *

    &----


    REPORT ZREAD_RT .

    NODES : PERNR.

    DATA: result type pay99_result.

    DATA: my_rt like table of pc207 with header line.

    DATA: LTX_RGDIR LIKE PC261 OCCURS 0 WITH HEADER LINE.

    DATA : seq_no(5) type n.

    START-OF-SELECTION.

    GET PERNR.

    CALL FUNCTION 'CU_READ_RGDIR_NEW'

    EXPORTING

    persnr = PERNR-PERNR

    CHECK_READ_AUTHORITY = SPACE

    tables

    in_rgdir = LTX_RGDIR

    EXCEPTIONS

    NO_RECORD_FOUND = 1

    IMPORT_MISMATCH_ERROR = 2

    NO_READ_AUTHORITY = 3

    OTHERS = 4

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    READ TABLE LTX_RGDIR WITH KEY FPBEG(6) = PNPBEGDA(6).

    IF SY-SUBRC = 0.

    seq_no = LTX_RGDIR-SEQNR.

    ENDIF.

    call function 'PYXX_READ_PAYROLL_RESULT'

    exporting

    clusterid = 'RX'

    employeenumber = PERNR-PERNR

    sequencenumber = seq_no

    READ_ONLY_INTERNATIONAL = 'X'

    changing

    payroll_result = result

    .

    my_rt[] = result-inter-rt[].

    LOOP AT MY_RT.

    WRITE : /10 MY_RT-ABART,

    MY_RT-LGART,

    MY_RT-APZNR,

    MY_RT-CNTR1,

    MY_RT-CNTR2,

    MY_RT-CNTR3,

    MY_RT-ALZNR,

    MY_RT-C1ZNR,

    MY_RT-BTZNR,

    MY_RT-ABZNR,

    MY_RT-V0TYP,

    MY_RT-V0ZNR,

    MY_RT-ZEINH,

    MY_RT-BETPE,

    MY_RT-ANZHL,

    MY_RT-BETRG,

    MY_RT-RTE_CURR,

    MY_RT-AMT_CURR.

    ENDLOOP.

    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.