cancel
Showing results for 
Search instead for 
Did you mean: 

infotype P0016 could not be read

Former Member
0 Kudos

When I read infotype p0016, value of field CTTYP=01, but in PCR it not got the value.

Accepted Solutions (1)

Accepted Solutions (1)

former_member193210
Active Contributor
0 Kudos

The documentation for Payroll Operation TABLE does not list any Infotype Tables (such as PA0016 or P0016), and I had found inconsistencies when using that Operation to query on fields from IT0057 or IT0169, and we solved the problem by having an ABAP programmer create a Custom Payroll Operation for our purpose.

I would suggest that you talk to an ABAP programmer in order to get a Custom Payroll Operation created to read field CTTYP of the employee's IT0016, and then to use that Custom Operation in your pcr.

Answers (3)

Answers (3)

former_member193210
Active Contributor
0 Kudos

I'm not an ABAP programmer, but through t-code pe04, if I want to look at the code behind our Custom Operation &TABL (to read specific fields from IT0057 and IT0169), I first have to specify the Program it is associated with (RPCALCK0), and then I am shown the Custom Code in Include PCBURZCA0, which is 191 lines long and starts with:

* Use this include to create customer specific functions and operations

* Attention: Never change or transport this include in SAP systems

*{ INSERT DEVK906114 1

*

*FORM OP&TABL.

FORM OPZTABL.

tab = op+5(5).

case tab.

when 'P0001'.

Please look at the code behind some Payroll Operations, such as TABLE, NUM, VAKEY and OUTWP, do some research online on how to create Custom Payroll Operations (or Payroll Functions), and post more information on what you tried to create (in what Include you tried to create your "code").

Former Member
0 Kudos

thanks for help !

Former Member
0 Kudos

Dear all,

when I write operation read P00016 but could not read.

My code

Help me, please