Possibility to obligate user to create attachment

Tom Peou tompeou at gmail.com
Thu Jul 12 03:31:41 EDT 2007


Hi Kris,

Delegate your BOR: SOFM and create a method to force attachment create.

Enter this bit of code to check that the attachment was created:

    do.
      swc_call_method self 'Create' container.
      swc_get_element container '_Result' self.
      if sy-subrc = 0.
        exit.
      else.
        message s007(zwf).   "raise this exception until attachment saved
      endif.
    enddo.

This will check the result of the 'Create' method in SOFM. As long as your
attachment was created and saved, the subrc returned will be 0.

Cheers,
Tom

On 12/07/07, sap-wug-request at mit.edu <sap-wug-request at mit.edu> wrote:
>
> *From:* Kris Verschueren
> *Sent:* woensdag 11 juli 2007 15:36
> *To:* 'sap-wug at mit.edu'
> *Subject:* Possibility to obligate user to create attachment
>
>
>
> Hi all,
>
> We are implementing a workflow to approve invoices. One of the possible
> scenario's is that the invoice is rejected by the approver. In that case
> we want to obligate the user to create an attachment within the workflow
> task. This is becuse the businness wants an explanation why the invoice was
> rejected.
>
>
>
> Is there a possibility within standard SAP to do this? Does anybody has
> experience with this?
>
>
>
> Thanks in advance.
>
>
>
>
>
> Kind regards,
>
> Kris Verschueren.
>
> SAP consultant, Ctac Netherlands.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070712/2aa3897c/attachment.htm


More information about the SAP-WUG mailing list