I am working on HR-ABAP . I need to implement a check on weekly off assignment. The scenario is like this: The workers are assigned to different shifts corresponding to which they are assigned a weekly off day. Now when the shift of a worker changes then his weekly off also changes. The check to be implemented is this that if the weekly off according to the new shift is falling within 3 day period of his weekly off according to the last shift then then the new weekly off is to be cancelled.
eg. if the worker had a weekly off on monday according to the last shift and then his shift changed and if the new weekly off falls on tuesday or wednesday or thursday then it has to be cancelled.
Please let me know how to implement this check . Do i need to check some user exit for this.