Create mandatory note/attachment after workflow dialog step

FAQ faq at saportal.net
Thu Sep 22 13:15:00 EDT 2005


Dominik,

your approach makes a lot of sense. Let me try it. I might get back to you in case I encounter any obstaacles.

Thanks for the input from everybody else as well.

Regards,
Tom


-----Original Message-----

From:  dominik.sobolewski at gambit.de
Subj:  Create mandatory note/attachment after workflow dialog step
Date:  Thu Sep 22, 2005 9:00 am
Size:  1K
To:  "SAP Workflow Users' Group" <sap-wug at mit.edu>

Hi Tom,

I have been doing the same thing several times, attaching wf_doc or sofm
objects to all kinds of documents in a way that they can be displayed by
using the generic object services. Just add a 'create document from
template step' after the decision task (wf_doc.create) and check the
advance with dialog box. Once the wf_doc document is created, convert it
into a sofm object, you can do this by calling the method create_sofm of BO
wf_doc. Now you must link the sofm object and the second object (BKPF, FIPP
or whatever), therefore create a FM that calls BINARY_RELATION_CREATE and
add a commit work in your FM.Obj_rolea, field OBJKEY must be populated with
the Objectkey of your target Object (If I remember it right), OBJTYPE takes
the object name (eg. FIPP) Obj_roleb must be populated with sofm and the
objectkey likewise.

Additionaly you must maintain the object relationship once in table
VRBINRELATION via sm34. I believe you must create a relationship between
your targetobject and attachment type 'ATTA'. I think there is some note on
this table, if you don't get along let me know and I will have a closer
look.

Cheers Dominik :-)


Mit freundlichen Grüßen
Gambit Consulting GmbH
Dominik Sobolewski

Aulgasse 141-143
D-53721 Siegburg
Telefon: +49 2241 8845-56
Mobil:     +49 151 12173209
Telefax: +49 2241 8845-99

mail to: sobolewski at gambit.de
http://www.gambit.de





_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list