Skip to Content
0
Former Member
Apr 06, 2011 at 10:11 AM

Need to read all actions in infotype 0000 and check each one by one in PCR

242 Views

I need to calculate and pay some wagetype say bonus to employee if there exist action 'ZM' with reason '06' in IT0000.

For this I have written PCR that check for action 'ZM' and reason for action '06' and then calculate the bonus, i have use outwpmassn and outwpmassg operation for this. Its working fine if the latest action is 'ZM' and reason is '06' but if any other action is coming after this action , the pcr is not working .So I want to read all actions in IT0000 instead of latest action and if out of all this action any action ='ZM' and reason for action ='06' then need to calcualte bonus. Please suggest any function/operation or logic by which I can read all the actions in IT0000.