Object (Word) attached to workflow is not changeable

Willi-Gerd Schmitz W.Schmitz at ids-scheer.de
Tue Feb 27 05:02:24 EST 2001


Hello,
I attach a Word-Document to a workflow, this word-Document should be =
changed by users in following workflow steps. (to collect comments)
The word document is stored in a puplic folder in the R/3 office (there =
it's possible to change it for everybody)
I use a SOFM-object which I generate in a background-method and move to =
container &_ADHOC_OBJECTS//&.
 
My problem: It is not possiible to change the attached object in the =
workflow - word is started only in display-mode.
 
If i use a RAW-document instead of WORD it works - it is possible to edit =
the RAW document directly from the workitem display - just double-click.
If i use Word and container ATTACH_OBJECTS it's also not working (like =
it's documented: Attachments are not changeable).
 
Has anybody experience with this problem? How do you manage to attach a =
word document to workflow and edit it?=20
Is it the wrong way to store the document in a puplic folder?
 
For those interested in my solution the coding of the background method - =
just prototyping:
 
BEGIN_METHOD ATTACHDOCUMENTFORCOMMENTS CHANGING CONTAINER.         =20
data: o_attach type swc_object.                                    =20
data: begin of i_attach_key,                                       =20
       foltp like sofm-foltp,                                      =20
       folyr like sofm-folyr,                                      =20
       folno like sofm-folno,                                      =20
       doctp like sofm-doctp,                                      =20
       docyr like sofm-docyr,                                      =20
       docnr like sofm-docno,                                      =20
       usrnam like soub-usrnam.                                    =20
data: end of i_attach_key.                                         =20
i_attach_key-foltp =3D 'FOL'.             "Type Document in FOLDER   =20
i_attach_key-folyr =3D 26.                "Folder Year               =20
I_attach_key-folno =3D '000000000160'.    "Folder for EHSWF          =20
*i_attach_key-doctp =3D 'RAW' .            "RAW Document /EXT =3D Word =20
i_attach_key-doctp =3D 'EXT' .            "RAW Document /EXT =3D Word  =20
i_attach_key-docyr =3D 26.                "RAW Document              =20
i_attach_key-docNr =3D '000000000002'.    "Document Number Word      =20
*i_attach_key-docNr =3D '000000000044'.    "Document Number RAW      =20
* create the object for office-document                            =20
SWC_CREATE_OBJECT  o_attach  'SOFM' i_attach_key.                  =20
* save the object as result of the method                          =20
swc_set_element container RESULT o_attach.                         =20
END_METHOD.                                                        =20
 
 
______________________________________
Willi-Gerd Schmitz
Manager
IDS Scheer AG
Postfach 10 15 34
66015 Saarbr=FCcken
 
Tel. 0681-210-3258
Fax 0681-210-1301
Mobil 0172-6868-639
w.schmitz at ids-scheer.de=20
 


More information about the SAP-WUG mailing list