cancel
Showing results for 
Search instead for 
Did you mean: 

Forcing users to Upload documents to support message

Former Member
0 Kudos

Hi Experts,

Is there any way to force users to upload documents to Support Message/ Normal correction etc?

Thanks,

Best regards,

Prashant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

I dont think there is a standar way to achieve your requeriment, so I would go for the badi SOCM_CHECK_CONDITION, there you can add the code to validate that the transaction has a document attached. You should define this condition in customizing, so that it takes place when the user is trying to change his status, so if the validation in the badi is false, it will take the user back to his status, issuing an error message.

Let me know if you need more input on this,

Best regards

former_member223537
Active Contributor
0 Kudos

Hi Federico,

Thanks a lot for the inputs.

We used BADI ORDER_SAVE method CHECK_BEFORE_SAVE. Included the following code in the method & we got the necessary validation to force users to attach a document inorder to save the support message.

wa_object-object_guid = iv_guid.
  APPEND wa_object TO lt_object.


  CALL FUNCTION 'CRM_ICSS_GET_ATTACHMENTS'
    TABLES
      it_object_guid     = lt_object
      et_attachment_list = lt_attach.


  READ TABLE lt_attach INTO wa_attach INDEX 1.
  IF sy-subrc NE 0.
    MESSAGE 'Please upload a document with issue details in DOCUMENTS tab!' TYPE 'E'.
  ENDIF.

Thanks,

Best regards,

Prashant