Skip to Content
author's profile photo Former Member
Former Member

Solution Manager Release/Cycle - Technical update!!

Hello ,

I am working on the requirement to create Normal change document technically and using CRM_ORDER_MAINTAIN, but facing issue on updating 'Release/Cycle' field. Not able to figure out how this field values are getting updated in system.

E.g I have my debug point on CRM_ORDER_MAINTAIN when manualy saving values from Webui and I get values on IT_SERVICE_OS with nested structure but this only hold values for 'Configuration Item' field which is associated with 'Release/cycle' field but the actual values for 'Release/Cycle' and 'Type/ID' fields are not getting populated in any of the input parameters in CRM_ORDER_MAINTAIN function modules.

Can you guys provide your expert advise to how I can update these field values technically?


Mani Nagarajan

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Mar 27, 2018 at 09:52 PM

    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!



    Please find my coding here:

    DATA ls_release_data  TYPE aic_release_cycl.DATA: ls_cr_context TYPE tsocm_cr_context.
                iv_crm_guid     = ls_imp_fields-chg_cycle_guid "'F7420E0EBA271ED796A122F89C4F0783'IMPORTING
                es_release_data = ls_release_data
                no_data_found   =1OTHERS=2).IFsy-subrc <>0.
    * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.ENDIF."ChangezyklusSELECTSINGLE*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 .IFsy-subrc <>0."nichts gefundenCLEAR 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.INSERTINTO tsocm_cr_context VALUES ls_cr_context.
    Add comment
    10|10000 characters needed characters exceeded