Skip to Content
avatar image
Former Member

Update previous day time wage type in schema

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 09, 2015 at 03:53 PM

    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...

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 08, 2015 at 05:28 PM

    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".

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 08, 2015 at 05:54 PM

    Hi Supriya,

    Are you using time evaluation for capturing this requirment?

    Then you can check the operation VARSTNDYAC in your pcr.

    Regards,

    Sankarsan

    Add comment
    10|10000 characters needed characters exceeded