cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the Task ID input-enabled in cProjects?

Former Member
0 Kudos

Hi Experts,

I have requirement to make the Task ID in cProjects editable. Currently, when individual projects are created in cProjects and when the task ID is created, it automatically takes the system generated number and the ID gets input disabled. Through template, I can change the Mask even if it is input disabled from BAdI. Is there any way I can give the control to user for editing the ID as Project and Phases? Please let me know.

Thanks and Regards,

Rahul Pandey

Accepted Solutions (0)

Answers (1)

Answers (1)

judith_gabriel
Contributor
0 Kudos

Dear Rahul,

the task ID (INP_OBJ_ID) is not an input field. The value of task number is set automatically at creation from number range object DPR_TSK_O:

CL_DPR_TSK_O_ASSIGNMENT
CONSTRUCTOR

7 */Fill TASK_ID from number range
8   ls_attributes = is_attributes.
9   IF iv_is_new = cl_dpr_co=>sc_true.
10     ls_attributes-task_id =
11        cl_dpr_numbering_services=>get_next_extid_for_task(
12          iv_object_type = cl_dpr_co=>sc_ot_task ).
13   ENDIF.

The task-ID can´t be changed by end-user. This is hard-coded at:

Class CL_DPR_TASK_O Method VERIFY_ATTRIBUTES
...
*/TASK_ID cannot be changed
  cs_attributes_new-task_id = is_attributes_old-task_id.

This value cannot be overwritten by BADI "Check/Change fields in cPRojects" (methods
SET_DEFAULTS_UPON_CREATION or method SET_DATA_EXT) too.

Best regards,

Judith