cancel
Showing results for 
Search instead for 
Did you mean: 

PCR to read value of rent amount from table PA0581

BalaAP
Active Contributor
0 Kudos

Hi Friends,

I want to read the content of hr infotype table PA0581 which is having rent amount and store it in a temporary variable. Is it possible to do it in pcr?

I remember we can query table PA587 and get the value in a variable.

regards,

Bala

sikindar_a
Active Contributor

Hi Bala

Can you try using TABALEPA0581 Then VARGB+Feild name. I am not sure but as said we can query the feild of an infotype.

BalaAP
Active Contributor
0 Kudos

Sikindarji,

You are right. But you made in "comment" instead of answer.

you are the great.

All others (Remi & Sujith) are also helpful. I sincerely thank all of u.

regards,

Bala

Hi,

Please let us know your requirement keeping this rent amount.

Based on the requirement we can decide how to proceed.

Regards,

Velvendhan D.

BalaAP
Active Contributor
0 Kudos

I got the clue from sikindar.

Accepted Solutions (1)

Accepted Solutions (1)

Sujith_EM
Active Contributor

Better you go for a custom function if you want to store the details in to a Z table.If you are using a PCR with it can only able to use while processing the payroll ( in to a variable ) , you can try the way that was suggested by Theja.

Answers (2)

Answers (2)

former_member193210
Active Contributor

Is Function P0581 already in your Payroll Schema?

Look if there is a pcr that is associated with it, and if so, modify it in order to create the temporary variable you require.

If Function P0581 does not already exist in your Payroll Schema, maybe someone familiar with Payroll for India could guide you on creating a basic pcr to process IT0581, and then you could adapt it to meet your requirements.

Sikindar's idea of using Payroll Operation TABLE to read the required field in IT0581 is worth a try, or you could ask an ABAP programmer to create a Custom Payroll Operation to do so.

former_member193210
Active Contributor

Function P0581 can be used in the Payroll Schema for India, but I don't see any documentation related to it nor is that Function in Schema I000 (or it's sub-schema/rules), and I am not familiar with Payroll for India.

Maybe you could find information somewhere on the web on that Function.