Hi,
For this you have to go with following way.
1. Create two type's DWS (Normal & Shift)
2. Then you have to pass the terminal entry regarding which plant to time event infotype.
3. Now from the TIP table entry you will check the terminal id details and based on that you will check the DWS, PSA & ESG.
4. After this generate the wage type based on the mentioned rate and that wage type will pass to Payroll.
Regards, Sankarsan