cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Scheduling of Project Task in Project Management

mariano_sabiche
Active Participant
0 Kudos

Dear Gurus;

I need the automatic scheduling when a task has changed Dates (Actual or Plan). The Project Task it's released.

Someone has been worked with a solution to fix this?

Best regards,

Mariano.

Accepted Solutions (1)

Accepted Solutions (1)

former_member201206
Active Contributor
0 Kudos

Hi  Mariano,

in standard it is not possible to trigger the scheduling automatically. You can enhance the method

CL_DPR_TASK_O                 IF_DPR_SCHEDULING_OBJECT~DETECT_SCHEDULING_RELEVANCE

The involved logic should be the following codes:

  TRY.

      lr_task_o ?= me.

      IF lr_task_o->is_released( ) = abap_true.

* project element is released; do not trigger scheduling

Kind regards,

Zhenbo

Answers (1)

Answers (1)

hanspeterbaier
Active Participant
0 Kudos

Hi Mariano,

additionally to Zhenbo's posting I want to mention, that you have to take care of task relationships!

Tasks without relationship are recognized by implementing an enhancment to method

CL_DPR_TASK_O->DETECT_SCHEDULING_RELEVANCE. Tasks with relationships that need to reschedule are recognized later. So you have to do a second enhancement to CL_DPR_APPL_OBJECT_SCHEDULER->SCHEDULE_ALL (set SCHEDULE_FORCE).

Moreover I want to mention, that rescheduling the tasks will leave (perhaps) inconsistent scheduling for phase or project definition. So think about it to implement the enhancement of DETECT_SCHEDULING_RELEVANCE also to classes CL_DPR_PHASE_O and CL_DPR_PROJECT_O.

Cheers,

Peter

mariano_sabiche
Active Participant
0 Kudos

Thank you Hans-Peter, I will make the changes.

Best regards.

Mariano