Hi Rishi,
For your scenario, you have to take the /3f3 and payroll period from the cluster table and tell abaper to develop the code to fetch these details and write the logic to get sum of the all /3f3 wagetypes. Like this you can achieve your requirement.
Regards,
Narayana