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