2008 Oct 28 1:53 PM
Hi people! I need a little help.
I have an first task save for a PERNR in period:
begin
10.21.2008
08:00:00 AM
end
10.23.2008
05:00:00 PM
So, in this period of begin until end, the PERNR will be occupied with this planned task.
So, he try to save a second registry:
begin
10.22.2008
08:00:00 AM
end
10.22.2008
05:00:00 PM
In this case, I have to block this save, because it will be in the periodo planned for the first.
Anyone can help me how I can do this? How can I check if a new period is inside a saved period? There is a standard function for this?
2008 Oct 28 2:31 PM
First you should not allow any writes for a user that has an open time and no corresponding closing time,as you don't know when it will finish.
Second you should check for new_event_ending_time < old_event_starting_time OR new_event_starting time > old_event_ending_time.
Hi people! I need a little help.
I have an first task save for a PERNR in period:
begin
10.21.2008
08:00:00 AM
end
10.23.2008
05:00:00 PM
So, in this period of begin until end, the PERNR will be occupied with this planned task.
So, he try to save a second registry:
begin
10.22.2008
08:00:00 AM
end
10.22.2008
05:00:00 PM
In this case, I have to block this save, because it will be in the periodo planned for the first.
Anyone can help me how I can do this? How can I check if a new period is inside a saved period? There is a standard function for this?
2008 Oct 28 2:12 PM
Hi Jack,
Just select all records for the employee, and check if the start date of the new record is > begin date AND the end date of the new record is < end date of an existing record. If so, then the new record falls inside an already saved period.
SL
2008 Oct 28 2:17 PM
2008 Oct 28 2:31 PM
First you should not allow any writes for a user that has an open time and no corresponding closing time,as you don't know when it will finish.
Second you should check for new_event_ending_time < old_event_starting_time OR new_event_starting time > old_event_ending_time.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |