cancel
Showing results for 
Search instead for 
Did you mean: 

Update previous day time wage type in schema

Former Member
0 Kudos

Business Scenario : Hourly workers are paid "Holiday Pay" on Public Holidays defined by the company provided he works the next day.

To implement this rule in the schema, one has to "update" the previous day data (time wage type) based on the leave taken today. So how do I do that. I can at present check the previous day data but not able to update the same.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This is a classic case where you have to use the Operation GOTC.

GOTC allows you you process internal recalculation. Therefore, you will need to process the entire week and determine if the employee was working on the day after the holiday. If yes, then you set a flag and carry over until the end of the week. Then on the last day of the week, you process a internal recalculation and then when you are processing the Holiday, you can perform necessary calculations.

Otherwise, as Remi indicated, you cannot process information of the next day until it is processed.

GOTC is a bit tricky, make sure that you do not go in an eternal loop. Anyways, SAP has a logic to terminate the loop if you go over 5 times.... but this could be your solution and you could do all sort of things using GOTC...

Sanky
Active Contributor
0 Kudos

Hi Supriya,

Are you using time evaluation for capturing this requirment?

Then you can check the operation VARSTNDYAC in your pcr.

Regards,

Sankarsan

former_member193210
Active Contributor
0 Kudos

On the day of the Holiday, you can generate a Time Type or a Wage Type if the employee is scheduled to work on the following day, but I don't think that you can generate it only if the employee "worked" on the following day since that day is not yet processed.

Perhaps you could generate an Information Time Type on the day of the Holiday, and on the following day you could check if that Information TT existed "yesterday".  If it did and the employee worked "today", you could generate the Holiday Pay Time Type or Wage Type.  Note that if "today" was an OFF day, the Information TT could be recreated for "today".