When I first started working with HR programming, I was really freaked out. Logical Databases? Payroll? Infotypes? First time, you get such a shock…the next time, you find that you love HR programming.
What we’re going to discuss here, is how get the payroll of an employee for a determined month, and that’s an important thing, trust me. Without payroll, the employees don’t get paid, and if they know that you are the developer and they didn’t get paid because of your app…you’re toast.
Anyway, don’t get scared I’m gonna try and help you out. I know that there is the usual way to read the payroll, I have used it quite a lot myself.
You must remember to include the logical database PNP and the selection screen 900
That’s great right? You have the payroll for a month, trimester or even for a year. But what happens when they tell you that, they want the payroll for a month to be compared against the payroll for 6 months back, month by month. That’s what happened to me. Of course, you’re not going to repeat that loop everytime for every month for every employee. You need something else, something like this.
With these two simple FM’s, your days of fighting with the payroll are gone.
P.S: It seems that i was forgot to put some important tables…Special thanx to prasanna venkatesh for making me noticed it -;)