cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ABAP : Update decision point for a PPM Item

thillu
Explorer
0 Kudos
394

Hello, I'm trying to change decision point with a sap abap script, but it doesn't work.I see in the table /RPM/DECISION that the field "changed_on" are updated, for the records linked with my projects, but the active decision point doesn't change.<br>You will find my code below. What is wrong ? Thanks for your help 🙂



lr_object_manager = cl_rpm_obj_manager=>get_instance().

CLEAR lt_projects[].

lr_object_manager->load_projects(

EXPORTING iv_guid = ls_context-object_guid

IMPORTING et_projects = lt_projects ).

READ TABLE lt_projects INTO ls_project INDEX 1.

lr_item_o ?= ls_project-REFERENCE.lr_item_o->set_edit_mode( iv_edit_mode = cl_rpm_co=>sc_edit_mode_change ).

lr_item_o->change_stage_gates(

EXPORTING

"is_context = ls_context

"iv_language = 'EN'

iv_active_decision_id = 'Z0002'

iv_target_item_type = ls_item_d-item_type

iv_dcp_change_mode = 'R'

IMPORTING

et_messages = lt_messages

ev_rc = lv_rc

).

CALL FUNCTION '/RPM/SAVE_CHANGES'
IMPORTING
ev_rc = lv_rc
et_msg = lt_messages.

Accepted Solutions (0)

Answers (1)

Answers (1)

judith_gabriel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,
You can use report RPM_DX_ITEM (xlsx-file) to update the decision points of an item.

Regards,
Judith