<br><font size=2 face="sans-serif">Great!</font>
<br>
<br><font size=2 face="sans-serif">I created this method a long time ago,
at the time I could not find anything in OSS.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Mike Pokraka&quot; &lt;asap@workflowconnections.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">03/16/2006 10:14 AM</font>
<br><font size=1 face="sans-serif">Please respond to &quot;SAP Workflow
Users' Group&quot;</font>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
&nbsp; &nbsp; &nbsp; &nbsp;&quot;SAP Workflow Users' Group&quot;
&lt;sap-wug@mit.edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; &nbsp; &nbsp;Re: SOFM.CREATE in Enjoy mode loses
title</font></table>
<br>
<br>
<br><tt><font size=2>Nice one, where there's a will there's a way, yes
it can be done even If<br>
SAP won't play nicely. I took your idea and went the lazy route: one WF<br>
step to create the doc and a second to edit it (using another container<br>
el. to hold it in between).<br>
I see you've done it for the same reasons too. Did you check with OSS<br>
whether it's not something missing?<br>
<br>
Cheers for that,<br>
Mike<br>
<br>
Edwin Mukusha wrote:<br>
&gt; Well Mike....<br>
&gt;<br>
&gt; What I have a &nbsp;custom method (CreateWFComments) that should not
take you<br>
&gt; that long to set up (I admit the creating the paramaters is pretty<br>
&gt; tedious). &nbsp;I created it a while ago and it basically allowed
me to specify<br>
&gt; 3 document titles that I later concatenate for easier binding. &nbsp;I<br>
&gt; originally created this method to get over the issues you describe.<br>
&gt;<br>
&gt; Here's some sample code:<br>
&gt; ==============================================<br>
&gt; begin_method createwfcomments changing container.<br>
&gt; * Please note this method was created to allow a default subject line<br>
&gt; * (or document title) to<br>
&gt; * be specified when a user created comments within a user-decision<br>
&gt; * in a workflow. There are 3 paramemeters for the document title that<br>
&gt; * can be specified. 3 parameters are supplied to get over the<br>
&gt; * inability of the workflow builder allowing static text and container<br>
&gt; * parameters to mixed when binding out to task. (Unless you do a<br>
&gt; programmed binding!)<br>
&gt; *<br>
&gt; * This method first calls the create method and secondly calls the
edit<br>
&gt; * method to change the SOFM document. &nbsp;This is done because the
enjoy<br>
&gt; * function module swc_get_dispatch_manager will not allow a default<br>
&gt; * document title. The non-enjoy version of swc_get_dispatch_manager<br>
&gt; * will force the user to enter the subject line thru pop-up. &nbsp;this
may<br>
&gt; * confusing for first time users and involves more clicks.<br>
&gt; * For this method to work supply parameters documenttype = 'RAW' and<br>
&gt; * no_dialog = 'X'.<br>
&gt;<br>
&gt; DATA: result_object TYPE swc_object.<br>
&gt;<br>
&gt; DATA:<br>
&gt; &nbsp; &nbsp; &nbsp; documenttitle LIKE sood-objdes,<br>
&gt; &nbsp; &nbsp; &nbsp; documentlangu LIKE sood-objla,<br>
&gt; &nbsp; &nbsp; &nbsp; documentsortfield LIKE sood-objsrt,<br>
&gt; &nbsp; &nbsp; &nbsp; documentpriority LIKE sood-objpri,<br>
&gt; &nbsp; &nbsp; &nbsp; documentsensitivity LIKE sood-objsns,<br>
&gt; &nbsp; &nbsp; &nbsp; no_dialog LIKE sonv-flag,<br>
&gt; &nbsp; &nbsp; &nbsp; parentfolid TYPE swc_object,<br>
&gt; &nbsp; &nbsp; &nbsp; documentname LIKE sood-objnam,<br>
&gt; &nbsp; &nbsp; &nbsp; documenttype LIKE sood-objtp,<br>
&gt; &nbsp; &nbsp; &nbsp; documentcontent LIKE soli-line OCCURS 0,<br>
&gt; &nbsp; &nbsp; &nbsp; modifiablebyauthor LIKE sood-objcp,<br>
&gt; &nbsp; &nbsp; &nbsp; expirydate LIKE sodocchgi1-obj_expdat,<br>
&gt; &nbsp; &nbsp; &nbsp; processtype LIKE sodocchgi1-proc_type,<br>
&gt; &nbsp; &nbsp; &nbsp; processelement LIKE sodocchgi1-proc_name,<br>
&gt; &nbsp; &nbsp; &nbsp; skipfirstscreen LIKE sodocchgi1-skip_scren,<br>
&gt; &nbsp; &nbsp; &nbsp; processsystem LIKE sodocchgi1-proc_syst,<br>
&gt; &nbsp; &nbsp; &nbsp; processclient LIKE sodocchgi1-proc_clint,<br>
&gt; &nbsp; &nbsp; &nbsp; originator TYPE swc_object,<br>
&gt; &nbsp; &nbsp; &nbsp; documentheader LIKE soli-line OCCURS 0,<br>
&gt; &nbsp; &nbsp; &nbsp; referencetype LIKE sood-extct,<br>
&gt; &nbsp; &nbsp; &nbsp; fileimport LIKE sonv-flag,<br>
&gt; &nbsp; &nbsp; &nbsp; documentsize LIKE sood-objlen,<br>
&gt; &nbsp; &nbsp; &nbsp; enjoy LIKE sonv-flag,<br>
&gt; &nbsp; &nbsp; &nbsp; doctitle1 LIKE sood-objdes,<br>
&gt; &nbsp; &nbsp; &nbsp; doctitle2 LIKE sood-objdes,<br>
&gt; &nbsp; &nbsp; &nbsp; doctitle3 LIKE sood-objdes.<br>
&gt;<br>
&gt; swc_get_element container 'DOCTITLE1' doctitle1.<br>
&gt; swc_get_element container 'DOCTITLE2' doctitle2.<br>
&gt; swc_get_element container 'DOCTITLE3' doctitle3.<br>
&gt; * SWC_GET_ELEMENT CONTAINER 'DOCUMENTTITLE' DOCUMENTTITLE.<br>
&gt; swc_get_element container 'DOCUMENTLANGU' documentlangu.<br>
&gt; swc_get_element container 'DOCUMENTSORTFIELD' documentsortfield.<br>
&gt; swc_get_element container 'DOCUMENTPRIORITY' documentpriority.<br>
&gt; swc_get_element container 'DOCUMENTSENSITIVITY' documentsensitivity.<br>
&gt; swc_get_element container 'NO_DIALOG' no_dialog.<br>
&gt; swc_get_element container 'PARENTFOLID' parentfolid.<br>
&gt; swc_get_element container 'DOCUMENTNAME' documentname.<br>
&gt; swc_get_element container 'DOCUMENTTYPE' documenttype.<br>
&gt; swc_get_table container 'DocumentContent' documentcontent.<br>
&gt; swc_get_element container 'ModifiableByAuthor' modifiablebyauthor.<br>
&gt; swc_get_element container 'ExpiryDate' expirydate.<br>
&gt; swc_get_element container 'ProcessType' processtype.<br>
&gt; swc_get_element container 'ProcessElement' processelement.<br>
&gt; swc_get_element container 'SkipFirstScreen' skipfirstscreen.<br>
&gt; swc_get_element container 'ProcessSystem' processsystem.<br>
&gt; swc_get_element container 'ProcessClient' processclient.<br>
&gt; swc_get_element container 'Originator' originator.<br>
&gt; swc_get_table container 'DocumentHeader' documentheader.<br>
&gt; swc_get_element container 'ReferenceType' referencetype.<br>
&gt; swc_get_element container 'FileImport' fileimport.<br>
&gt; swc_get_element container 'DocumentSize' documentsize.<br>
&gt; swc_get_element container 'Enjoy' enjoy.<br>
&gt; swc_get_element container 'DOCUMENTTITLE' documenttitle.<br>
&gt; swc_get_element container 'DOCUMENTNAME' documentname.<br>
&gt;<br>
&gt; CONCATENATE doctitle1 doctitle2 doctitle3 INTO<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; documenttitle SEPARATED BY space.<br>
&gt;<br>
&gt; TRANSLATE documenttitle+1 TO LOWER CASE.<br>
&gt;<br>
&gt; swc_set_element container 'DOCUMENTTITLE' documenttitle.<br>
&gt;<br>
&gt; swc_call_method self 'CREATE' container.<br>
&gt;<br>
&gt; swc_get_element container '_result' result_object.<br>
&gt;<br>
&gt; * Set enjoy version.<br>
&gt; swc_set_element container 'Enjoy' 'X'.<br>
&gt;<br>
&gt; swc_call_method self 'EDIT' container.<br>
&gt;<br>
&gt;<br>
&gt; swc_set_element container result result_object.<br>
&gt;<br>
&gt; end_method.<br>
&gt; ==============================================<br>
&gt;<br>
&gt; enjoy<br>
&gt;<br>
&gt; Edwin.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &quot;Mike Pokraka&quot; &lt;asap@workflowconnections.com&gt;<br>
&gt; Sent by: sap-wug-bounces@mit.edu<br>
&gt; 03/16/2006 08:49 AM<br>
&gt; Please respond to &quot;SAP Workflow Users' Group&quot;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &quot;SAP Workflow Users'
Group&quot; &lt;sap-wug@mit.edu&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; cc:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re:
SOFM.CREATE in Enjoy mode loses title<br>
&gt;<br>
&gt;<br>
&gt; Howzit Edwin!<br>
&gt;<br>
&gt; Thanks, that technically solves the problem but not quite the way
I want<br>
&gt; it. True, I no longer have an empty subject field, but that's because
now<br>
&gt; I have no field, no dialog, no attachment, nothing.<br>
&gt;<br>
&gt; I've also tried filling DOCUMENTHEADER with no joy.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Mike<br>
&gt;<br>
&gt; Edwin Mukusha wrote:<br>
&gt;&gt; Howdy Mike,<br>
&gt;&gt;<br>
&gt;&gt; Try setting the NO_DIALOG parameter to 'X'.<br>
&gt;&gt;<br>
&gt;&gt; have a super day<br>
&gt;&gt;<br>
&gt;&gt; Edwin.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &quot;Mike Pokraka&quot; &lt;asap@workflowconnections.com&gt;<br>
&gt;&gt; Sent by: sap-wug-bounces@mit.edu<br>
&gt;&gt; 03/16/2006 07:09 AM<br>
&gt;&gt; Please respond to &quot;SAP Workflow Users' Group&quot;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; sap-wug@mit.edu<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; cc:<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;SOFM.CREATE
in Enjoy mode loses title<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hmm, subject says it all, but in more detail:<br>
&gt;&gt; I have a task with SOFM.CREATE to add attachments to a WF. I populate<br>
&gt; the<br>
&gt;&gt; subject by binding the text into &amp;DOCUMENTTITLE&amp; and it
appears, no<br>
&gt; prob.<br>
&gt;&gt;<br>
&gt;&gt; I bind an 'X' to &amp;ENJOY&amp; and 'RAW' into &amp;DOCUMENTTYPE&amp;,
and I get the<br>
&gt; nice<br>
&gt;&gt; enjoy screen with an empty title. Smells like a bug, but I can't
find<br>
&gt; any<br>
&gt;&gt; notes and I've tried it on a 620 and a 640/NW04 system - same
result.<br>
&gt;&gt;<br>
&gt;&gt; TIA<br>
&gt;&gt; Mike<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SAP-WUG mailing list<br>
&gt;&gt; SAP-WUG@mit.edu<br>
&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SAP-WUG mailing list<br>
&gt;&gt; SAP-WUG@mit.edu<br>
&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt;<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</font></tt>
<br>