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: 

HR payroll reporting

anupam_srivastava2
Participant
0 Kudos

Hi ALL

Just a quick question.....I am doing payroll reporting using logical database PNPCE, do I need to use standard includes for payroll. if yes why these includes are used for.

cheers

AJ

1 ACCEPTED SOLUTION

former_member583013
Active Contributor
0 Kudos

You can take a look at my weblog:

[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.

6 REPLIES 6

Former Member
0 Kudos

you need not use any standard includes

Use the following code



NODES: payroll TYPE paygb_result.

* after Get pernr event 

GET payroll.

  CLEAR:wa_empdets-total_sum,wa_empdets-amt_deduc,wa_empdets-balance.
* fetch arrestable earnings from results table
  LOOP AT payroll-inter-rt INTO wa_rt WHERE lgart = '/141'.
*    IF wa_rt-lgart = '/141'.
    MOVE: wa_rt-betrg TO wa_empdets-earnings.
*    ENDIF.
  ENDLOOP.

0 Kudos

Hi sriram

I am using PNPCE Logical database so I cant use get payroll event.

regards

AJ

Former Member
0 Kudos

We add standard includes while fetching payroll results using macros, those includes

contain the data definitions of the dictionary objects involved in the cluster, buffer management routines.....otherwise you need not to add any standard includes

former_member583013
Active Contributor
0 Kudos

You can take a look at my weblog:

[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.

amit_khare
Active Contributor
0 Kudos

Check this -

0 Kudos

Hi Alvaro

Thanks for your reply, is it the same coding if I use PNPCE Logical database. Please guide.......bcoz there is no node as payroll.

regards

AJ