Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Wage types and Wage type amount in SAP HR

arindam_samanta
Participant
0 Kudos

Hi Experts,

I need to develop a report where selection screen has two input parameter - PERNR and YEAR. Based on this, I need to get the amount for different wage types. I have more than 50 wage types but I dont have the corresponding infotype for this PERNR. I want to get the amount for those 50 wage types. How I can have the amount for those wage types? Is there any function module to achieve this?

Or there is something need to do more to achieve this?

Kindly share your thoughts!!

Any possible reply would be accepted gratefully!!!

Thank & Regards,

Arindam Samanta.

2 REPLIES 2

Former Member
0 Kudos

Hi Arindam,

The HCM is a special case in ABAP, so here are some essential details:

- Search and use the logical database "PNPCE" to get the employees, infotypes and filter the period, you can get more information at SE36 transaction and on Google, it's obsolete to most of modules but on HCM is best solution. Using it will create a basic selection screen, all authority checks will be made automatically and if your SAP HCM is global the user will need to filter some fields eg. company code or anyone to identify the country employee)

- Thereafter, if possible, check the configuration of table view (SM30 transaction) V_T511, there are a lot of parameters that you can check with the functional consultant to get this list of wage types dynamically, check the MOLGA field, there's a code to each country.

- After get the wage types list and use the logical database, here in Brazil we usually call the CL_HR_BR_READ_PAYROLL class, but pay attention that each country has our own configuration, so is best that you look for the correct function module or class to your country, if you don't find out, you should use the PYXX_READ_PAYROLL_RESULT or CU_READ_RGDIR and PYXX_READ_RGDIR_PAYRESULTS.

Check also the structure PAY*_RESULT (Replace the * with your country, US, BR, DE, etc), all payroll results are stored on PCL2 as a binary cluster so isn't a good try access directly.



I hope I've helped!

Regards!

Former Member
0 Kudos

Arindam,

Please check T-Code: pc_payresult