Skip to Content
avatar image
Former Member

Auto trigger of attachment on status change

Hello Folks,

I have the following requirement.

In a normal change, on change to a particular status, say(Set to In Development) the action behind 'Add Attachment' button must be triggered and the attachment uploaded has to be reflected in the 'Attachments' section.

Is there a way to get this done.

Thanks,

Greg

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2015 at 01:28 PM

    In short, I must make attachments mandatory for specific statuses.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Dillip Kumar. R

      Hello Dillip,

      I did it with the attached piece of code in the badi mentioned in your post.

      I set a naming standard for the documents such that it ends with FS.DOC or TS.DOC or UT.DOC and based the status, check if that particular document is uploaded for the corresponding status.

      Clearing the parameter CONDITIONS_OK of the method will trigger the consistency check.

      Thanks for your help.

      Regards,

      Greg

      con chk.PNG (32.1 kB)