Skip to Content

CRT LGART & CRT BETRG in HCM PAYROLL

Hi Experts,

I have a requirement in HCM PAYROLL. The report has selection screen fields - PERNR and YEAR. The yearly W-2 gross to taxable report should display the taxable compensation, pre-tax reductions, additional taxable amounts processed in the payroll and shall be in the suggested format.

Based on input, need to fetch some details information about employee and company.With that CRT LGART, CRT BETRG also required to complete the requirement and here I am facing the problem to fetch CRT LGART & CRT BETRG. As I am new in HCM Payroll, I am facing this problem.

My question is - How could I get the CRT LGART and corresponding CRT BETRG from ECC system based on PERNR and YEAR available in selection screen?

I think these information available in CLUSTER table PCL2 or PCL3. Kindly correct me if I am wrong. If that, then kindly guide me how to get the CRT LGART & CRT BETRG from CLUSTER table.

Thanks in advanced!!!

Warm Regards,

Arindam Samanta.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 29, 2015 at 12:09 PM

    Hi,

    Use function module PYXX_READ_PAYROLL_RESULT to fetch the required data.

    You will get LGART and BETRG in payroll_result-inter-crt.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2015 at 10:25 AM

    Hi Harshal,

    Thanks for your kind help. Here is the new problem, I am facing. In SE37, I am executing the FM PYXX_READ_PAYROLL_RESULT. I am passing PERNR & SEQNR. But it is getting dump. Same thing happen in my ABAP code. Below is my code -

    CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

    EXPORTING

    employeenumber = lv_pernr

    sequencenumber = lv_seqnr

    CHANGING

    payroll_result = <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

    error_reading_archive = 8

    error_reading_relid = 9

    OTHERS = 10.

    Dump exception is - CX_SY_DYN_CALL_ILLEGAL_TYPE. But actually coming from standard. The error analysis is like -

    The FORM call "IMPORT_RESULT" is incorrect:

    The actual parameter (number 2) has a different data type in the

    PERFORM than requested by FORM "IMPORT_RESULT" in program "%_T001Z8".

    In side the FM, one perform import_result available. Dump is coming from here.

    Could you please help me out from this?

    Thanks In Advanced!!

    Warm Regards,

    Arindam Samanta.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Arindam,

      Declare your changing parameter (PAYROLL_RESULT) as below

      DATA : PAYRESULT TYPE PAY99_RESULT.

      and in the exporting parameters pass 'X' to

      READ_ONLY_INTERNATIONAL ..

      Also try to pass CLUSTERID which can be obtained from FM PYXX_GET_RELID_FROM_PERNR .

      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'

      EXPORTING

      clusterid = 'IN'

      employeenumber = pernr

      sequencenumber = ls_rgdir-seqnr

      read_only_international = 'X'

      CHANGING

      payroll_result = ls_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.

      Regards,

      Harshal

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.