cancel
Showing results for 
Search instead for 
Did you mean: 

Change subject field of Change Request

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Custers,

have you tried by modifing subject profile? chk out..

http://scn.sap.com/thread/1430047

Regards,

Jansi

Former Member
0 Kudos

Hi Jansi,

Thanks for your reply. We already tried to change the customizing you mention. But unfortunately this doesn't resolve our issue.

Regards,

Jeroen