cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Solution Manager Release/cycle

Former Member
0 Kudos

Hello,

I am trying to create Charm document technically through CRM_ORDER_MAINTAIN and facing problem to update values for field Release/Cycle , in Solution manager 7.2 this field is mandatory and this values are not getting updated through CRM_ORDER_MAINTAIN even when i am doing manually creation of the document . I am attaching screen shot form my system for reference, any help will be highly appreciated, thanks!

capture.pngcapture.pngcapture.png

Regards

Mani Nagarajan

Accepted Solutions (0)

Answers (4)

Answers (4)

Dear Mani,

today I figured out how to connect a newly created Request for Change to a Release/Cycle. Table tsocm_cr_context is the one where the connection is stored.

My requirement is a E-Mail Inbound Szenario to create a new Request for Change and link that one to a SMIM Release/Cycle in dependance of a E-Mail Inbound incoming Parameter.

I save the RfC using the class cl_ags_crm_1o_api and afterwards done a database insert because other possibilities did not work.

The fields for the database entry can be received by this method: cl_aic_cm_release_api=>get_release_data_for_cycle.

If you have any questions, just let me know!

Greetings

Benjamin

Please find my coding here:

        DATA ls_release_data  TYPE aic_release_cycl.
        DATA: ls_cr_context TYPE tsocm_cr_context.

        cl_aic_cm_release_api=>get_release_data_for_cycle(
          EXPORTING
            iv_crm_guid     = ls_imp_fields-chg_cycle_guid "'F7420E0EBA271ED796A122F89C4F0783'
          IMPORTING
            es_release_data = ls_release_data
          EXCEPTIONS
            no_data_found   = 1
            OTHERS          = 2
        ).

        IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.

        "Changezyklus
        SELECT SINGLE * INTO ls_cr_context FROM tsocm_cr_context
          WHERE guid      = ls_imp_fields-created_rfc_guid
          AND   item_guid = ls_imp_fields-created_rfc_guid .

        IF sy-subrc <> 0. "nichts gefunden
          CLEAR ls_cr_context.
          ls_cr_context-client = sy-mandt.
          ls_cr_context-guid   = ls_imp_fields-created_rfc_guid. "GUID of the SMIM-object
          ls_cr_context-item_guid   = ls_imp_fields-created_rfc_guid. "GUID of the SMIM-object
          ls_cr_context-process_type  = ls_imp_fields-process_type. "Processtype of the RfC
          ls_cr_context-project_id = ls_release_data-smi_project.
          ls_cr_context-solution_id = ls_release_data-release_crm_id.
          ls_cr_context-slan_id = ls_release_data-release_component.
          ls_cr_context-sbra_id = ls_release_data-branch_id.

          INSERT  INTO tsocm_cr_context VALUES ls_cr_context.
Former Member
0 Kudos

Hello Benjamin,

Thanks for sharing the solution , you really traced deep to figured out the table to make it work.

I have not tried this way to do, but looks like we have to get this functionality working in either one of the way Table update vs screen enhancement. It would be harder sometime to explain to customer to user direct table update/ screen enhancement to do the value change instead using standard BAPI.

Hope your research helps to to people who try to implement this functionality in future.

Have a good day.

Thanks & Regards

Mani Nagarajan

Former Member
0 Kudos

Hello Benjamin,

its not worked for me neither, through CRM_ORDER_MAINTAIN by passing the values while create document. So I have ended up opening enhancement spots in application to update the project. Its not straight forward solution though but it worked seemlesly.

Regards

Mani Nagarajan

0 Kudos

Hey Mani,

thank you for the fast answer! 🙂

As long as i found out the Release/Cycle is a link to a one Order Object / i.e. a object ID (with a associated GUID in the table CRMD_ORDERADM_H ).

Which enhandement-spots did you use and which field did you fill with a "order ID" or "order GUID"?

Thank you so much!

Greetings

Benjamin

0 Kudos

Hey Manikandan, did you managed to fill the field Release/cycle? I have the same problem and tried several days to fill the field in a request for change... Greetings Benjamin