Create mandatory note/attachment after workflow dialog step

dominik.sobolewski@gambit.de dominik.sobolewski at gambit.de
Thu Sep 22 10:04:47 EDT 2005


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







More information about the SAP-WUG mailing list