on 2023 Aug 01 8:35 AM
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_messagesev_rc = lv_rc
).
CALL FUNCTION '/RPM/SAVE_CHANGES'
IMPORTING
ev_rc = lv_rc
et_msg = lt_messages.
Request clarification before answering.
Hi,
You can use report RPM_DX_ITEM (xlsx-file) to update the decision points of an item.
Regards,
Judith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.