Hi all,
We have a requirement to change the subject field (CRMT_SRV_SERVICE_CODE_LIST) of a change request with coding. I have tried to use the FM CRMXIF_ORDER_SAVE with the following code:
zls_header_data-object_task = 'U'.
zls_header_data-object_id = zls_cr_data-object_id.
zls_header_data-object_guid = zls_cr_data-guid.
zls_header_data-object_type = zls_cr_data-object_type.
zls_header_data-process_type = zls_cr_data-process_type.
zls_header_data-input_fields-object_id = abap_true.
zls_header_data-input_fields-object_guid = abap_true.
zls_header_data-input_fields-object_type = abap_true.
zls_header_data-input_fields-process_type = abap_true.
** Add subject
CLEAR zls_data.
MOVE-CORRESPONDING zls_header_data TO zls_data.
zls_subject-catalog_type = 'IB'.
zls_subject-codegroup = 'SDCR0001'.
zls_subject-code = '0010'.
zls_subject-input_fields-catalog_type = abap_true.
zls_subject-input_fields-codegroup = abap_true.
zls_subject-input_fields-code = abap_true.
APPEND zls_subject TO zls_data-subject-data.
zls_data-subject-datax = abap_true.
APPEND zls_data TO zlt_data.
CALL FUNCTION 'CRMXIF_ORDER_SAVE'
EXPORTING
data = zlt_data
IMPORTING
return = zlt_return.
This works for the subject, but the problem is that the iBase and Component of the CR get lost after this update. I think subject and iBase are related to each other, but I don't know how I can change/update the subject without losing the iBase. Does anybody know how to solve this. Or is there another way to change the subject?
Our SolMan release is 7.0 EHP1.
Your help is much appreciated. Thanks in advance!
Regards,
Jeroen