Application Development and Automation 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: 
Read only

ABAP HR Question

Former Member
0 Likes
617

Hi Experts!

I am creating a report using the logical database PNP.

However, the standard select-options in the logical database doesn't seem to work. I tried filtering using payroll area but it did not work. I was able to make it work using CHECK PNPABKRS inside the GET PERNR loop. However, this not an accepatable solution as that means i have to write CHECK statements for every select-option in the logical database. Am I missing something here? I also tried putting my APPEND statements inside a PROVIDE P0001 loop.

Thanks!

Hi Experts!

I am creating a report using the logical database PNP.

However, the standard select-options in the logical database doesn't seem to work. I tried filtering using payroll area but it did not work. I was able to make it work using CHECK PNPABKRS inside the GET PERNR loop. However, this not an accepatable solution as that means i have to write CHECK statements for every select-option in the logical database. Am I missing something here? I also tried putting my APPEND statements inside a PROVIDE P0001 loop.

Thanks!

3 REPLIES 3
Read only

Former Member
0 Likes
577

Add tables: pernr to your code. When you test the program you will see a selection screen. Add the Payroll Area to the Selection fields using Further selections. Save the selection screen as a variant. Always run the program using the variant so that Get pernr can filter by Payroll Area.

Read only

former_member31961
Contributor
0 Likes
577

Hi,

I guess you were filtering Payroll area in Payroll Period Block in selection screen.

when we evaluate payroll results we use his selection block. The program which retrieves data for payroll accounting selects records on the basis of payroll area. The payroll area defines the selection

period but not the personnel numbers that are selected.

If you want to filter out PERNR's based on payroll area, Give Payroll area value in Data Selection Block of the selection screen. (If Payroll area is not there, then use Further selection Button to add payroll area). This way you can filter GET PERNR based on payroll area.

Regards,

Shrinivas

Read only

Former Member
0 Likes
577

Please check my weblog...It deals with Payroll on HR...

[How to deal with HR Payroll reports|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3180] [original link is broken] [original link is broken] [original link is broken];

Greetings,

Blag.