Skip to Content



I am using Classes to update decision point status. In my requirement i need to update multiple statuses in sequence depending on the condition.

there are 2 things :

The status is not getting updated and i am getting a short dump as this code is being called in a method which is exposed to Odata Service.

Please let me know what am i missing here.

  METHOD update_followon_status_class.
      IF gt_dp_item_status_update IS NOT INITIAL.
        DATA: lr_decision     TYPE REF TO cl_rpm_decision.
        DATA(lr_object_manager) = cl_rpm_obj_manager=>get_instance( ).
        CALL METHOD lr_object_manager->get_appl_object
            iv_project_guid = im_prop_data-zzproposal_guid
            iv_appl_obj_id  = obj_id
            iv_appl_obj_ot  = 'EPO'
            rr_object       = DATA(lr_common).

        lr_decision ?= lr_common.

        CALL METHOD lr_decision->get_attributes
            es_attributes = DATA(ls_dp_details).

        DATA(l_rc) = lr_decision->if_rpm_entity~set_edit_mode(
        cl_rpm_co=>sc_edit_mode_change ).

        IF l_rc IS NOT INITIAL.
*         Display Error

          LOOP AT gt_dp_item_status_update ASSIGNING FIELD-SYMBOL(<lw_dp_item_status_update>).

            ls_dp_details-status = <lw_dp_item_status_update>-dp_status.
*           SET the dp attributes
            lr_decision->set_attributes( ls_dp_details ).

            lr_object_manager->do_save( RECEIVING rv_rejected = DATA(l_rejected) ).
            IF l_rejected EQ abap_true.
*             Display Error
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.