Antwort: Re: Editable Attachment
Christian Wallner
C.Wallner at ats.net
Mon Feb 25 07:26:17 EST 2008
Sorry for the amount of replies here... but maybe this is interesting for
anyone:
After a few minutes of debugging i found the following sourcecode in
Include LSWLDU12 (Row 177) :
*- we analyze if this note may be edited...
* rule: user must be creator AND note must have been created within
* the current workitem
* (we got no note-creation-wi, so we check: note is not a flowitem AND
* note was not sent AND note is younger than current wi)
IF LT_NOTES-CREATOR EQ SY-UNAME AND
WI_HEADER-WI_TYPE NE WI_FLOW AND
LT_NOTES-SENT NE CROSS.
IF ( LT_NOTES-CRDAT EQ WI_HEADER-WI_CD AND
LT_NOTES-CRTIM > WI_HEADER-WI_CT ) OR
( LT_NOTES-CRDAT > WI_HEADER-WI_CD ).
*- note may be edited...
APPEND LT_NOTES.
ENDIF.
ENDIF.
That's bad, of course...because the attachment is older than the wi and
the changing person isn't necessarily the creator of the note.
Does anyone know how/if I can influence that check (without modification
of course)?
br
chris
"Florin Wach" <florin.wach at gmx.net>
Gesendet von: sap-wug-bounces at mit.edu
25.02.2008 11:39
Bitte antworten an
"SAP Workflow Users' Group" <sap-wug at mit.edu>
An
"SAP Workflow Users' Group" <sap-wug at mit.edu>
Kopie
Thema
Re: Editable Attachment
Hello Christian,
the object method SOFM.Create uses a flag "ModifiableByAuthor" as an
import parameter, which is not set to 'X' by the calling method
WF_Doc.Create_SOFM.
Please try to subtype and enhance the call within this method to flag this
parameter.
I haven't look, why a WF_Doc is not changeable.
Best wishes,
Florin
-------- Original-Nachricht --------
> Datum: Mon, 25 Feb 2008 10:47:22 +0100
> Von: "Christian Wallner" <C.Wallner at ats.net>
> An: sap-wug at mit.edu
> Betreff: Editable Attachment
> Hi!
>
> I have a question regarding editable attachments:
> I created a workflow in which I want to have a word document where some
> inputs are made by the user who works with the workflow.
> Therefore I have a step where the initial document is created. This
> document should be passed to the subsequent steps as an attachment
> (_ADHOC_Objects) which the user should be able to edit.
>
> Unfortunately it seems that this is not possible. So I tried to convert
> the wf_doc into a sofm using WF_DOCUMENT.CREATE_SOFM. This works well
and
> I attached the created SOFM to _ATTACH_Objects. But when I try to edit
the
> document in the next step the system says "No changeable attachments".
>
> This looks strange to me because when I create an attachment of type
"doc"
> manually I AM actually able to edit it afterwards...
>
> Any tipps are highly appreciated! :-)
>
> regards,
> Chris
> AT&S Austria Technologie & Systemtechnik AG
> Legal form | Rechtsform: Aktiengesellschaft
> Registered office | Sitz: Fabriksgasse 13, 8700 Leoben, Austria
> Commercial Register Number | Firmenbuchnummer: FN 55638 x, Landesgericht
> Leoben
>
> This e-mail and any attachment may contain confidential and/or
privileged
> information. If you are not the intended recipient (or have received
this
> e-mail in error) please notify the sender immediately and destroy this
> e-mail. Any unauthorised copying, disclosure or distribution of the
material in
> this e-mail is strictly forbidden.
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
AT&S Austria Technologie & Systemtechnik AG
Legal form | Rechtsform: Aktiengesellschaft
Registered office | Sitz: Fabriksgasse 13, 8700 Leoben, Austria
Commercial Register Number | Firmenbuchnummer: FN 55638 x, Landesgericht Leoben
This e-mail and any attachment may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080225/6f26e57e/attachment.htm
More information about the SAP-WUG
mailing list