<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Hey guys,<br><br>Thanks Adrian for the SMTP solution. It does sound very nice and I think i'd love to try it out. However, I was kind of looking for a quicker way to implement notification and as the other guys suggested looks like i need to go with Extended Notifications which i have been avoiding for a long time.<br><br>Thanks all for the reply.<br>Ali<br><br><br>> From: sap-wug-request@mit.edu<br>> Subject: SAP-WUG Digest, Vol 64, Issue 23<br>> To: sap-wug@mit.edu<br>> Date: Thu, 11 Mar 2010 06:28:31 -0500<br>> <br>> Send SAP-WUG mailing list submissions to<br>>         sap-wug@mit.edu<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>         http://mailman.mit.edu/mailman/listinfo/sap-wug<br>> or, via email, send a message with subject or body 'help' to<br>>         sap-wug-request@mit.edu<br>> <br>> You can reach the person managing the list at<br>>         sap-wug-owner@mit.edu<br>> <br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of SAP-WUG digest..."<br>> <br>> <br>> Today's Topics:<br>> <br>> 1. Re: How do I assign multiple agents (type US...) to a single<br>> task? (aditya rao)<br>> 2. Outlook Notification For New Work Items At Task Level (Ali Husain)<br>> 3. RE: Outlook Notification For New Work Items At Task Level<br>> (Adrian Clarke)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Thu, 11 Mar 2010 10:10:48 +0530<br>> From: aditya rao <aadityarao84@gmail.com><br>> Subject: Re: How do I assign multiple agents (type US...) to a single<br>>         task?<br>> To: "SAP Workflow Users' Group" <sap-wug@mit.edu><br>> Message-ID:<br>>         <e979b9761003102040s15626512tc1b8599213d3520a@mail.gmail.com><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> Hi,<br>> <br>> Rather than passing tables to your workflow , You can maintain your agents<br>> seprately in a Ztable .<br>> You can create your own rules ( create a function module to get the agent<br>> from Ztable ) in PFAC.<br>> <br>> Also if you want to determine your agents in the background you can use<br>> RH_GET_ACTORS fm and pass<br>> the rule created above to fetch the agents in the background method.<br>> <br>> and yes you can pass agents as an expression but it should be of type 'US'<br>> .<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> On Wed, Mar 10, 2010 at 4:06 AM, Kyle McCarter <kmccarter@csc.com> wrote:<br>> <br>> > Hello all,<br>> ><br>> > I am trying to assign a single work item to multiple agents using the<br>> > 'Expression' attribute on the Agents section of the defined WF task. The<br>> > agents are too dynamic to use normal organizational objects from one WF<br>> > execution to the next. So I am attempting to pass a table from my WF<br>> > container. The attributes of this table are Import/Export/Multi-line Type<br>> > RHOBJECTS-OBJECT.<br>> ><br>> > Our current application attempts to create the container elements, and then<br>> > the workflow is triggered via object event. I have debugged the container<br>> > propagation, and all seems OK. However, when I evaluate the WF Log via SWIA,<br>> > the container table I created for the multiple agents is not set.<br>> ><br>> > Firstly, can I pass a table of multiple agents as an 'Expression' in my<br>> > workflow task definition?<br>> > Secondly, why isn't my container element for agents set?<br>> ><br>> > Your assistance is greatly appreciated.<br>> ><br>> > Cheers,<br>> ><br>> > MadABAPper<br>> > _______________________________________________<br>> > SAP-WUG mailing list<br>> > SAP-WUG@mit.edu<br>> > http://mailman.mit.edu/mailman/listinfo/sap-wug<br>> ><br>> ><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100311/14d812e6/attachment-0001.htm<br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Thu, 11 Mar 2010 10:19:02 +0000<br>> From: Ali Husain <mr_mago40@hotmail.com><br>> Subject: Outlook Notification For New Work Items At Task Level<br>> To: SAP WUG <sap-wug@mit.edu><br>> Message-ID: <BAY130-W17111CCBE754F704D260718F320@phx.gbl><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> <br>> <br>> Hey guys,<br>> <br>> Is there a way to send an Outlook notification to the agent whenever he has a new Work Item in his inbox without using an explicit mail step in the WF template?<br>> <br>> I also want to avoid Extended Notifications for now and also the BG job RSWUWFML. I don't need to send a link to execute the WI, just a notification so that the agent knows and then can access his inbox via Portal (We are on ECC 6 but not using UWL yet).<br>> <br>> So i was wondering if there is a simple quick solution at the task level to achieve this.<br>> <br>> Thanks a lot for the help.<br>> Ali<br>> <br>>                                            <br>> _________________________________________________________________<br>> Hotmail: Free, trusted and rich email service.<br>> http://clk.atdmt.com/GBL/go/201469228/direct/01/<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100311/2393d88c/attachment-0001.htm<br>> <br>> ------------------------------<br>> <br>> Message: 3<br>> Date: Thu, 11 Mar 2010 11:28:27 -0000<br>> From: "Adrian Clarke" <adrian.clarke@xchanging.com><br>> Subject: RE: Outlook Notification For New Work Items At Task Level<br>> To: "SAP Workflow Users' Group" <sap-wug@mit.edu><br>> Message-ID:<br>>         <4031373E16D64B4F9676FF9FAA2DD7350B239312@EXCHANGE02.ad.xglobal.com><br>> Content-Type: text/plain; charset="us-ascii"<br>> <br>> We implemented an SMTP solution. This needs access from your SAP server<br>> (batch job server if you have more than one) to your SMTP server (both<br>> network and relays on the SMTP server) and a script like the one below.<br>> <br>> <br>> <br>> The details are put into a file of the mail that is required to be sent,<br>> and then a job run to run this script. The script is for a Windows<br>> platform, written in VBScript, but could easily be rewritten in<br>> JavaScript. For Unix, I would suggest using one of the mail sending<br>> utilities like sendmail, qmail, procfix etc to send a mail using SMTP.<br>> <br>> <br>> <br>> The file has parameters within it - see the end of the script for an<br>> example file.<br>> <br>> <br>> <br>> '<br>> <br>> ' file_mail.vbs<br>> <br>> '<br>> <br>> ' Usage<br>> <br>> ' =====<br>> <br>> '<br>> <br>> ' cscript file_mail.vbs [parameters]<br>> <br>> '<br>> <br>> '<br>> <br>> ' Parameters<br>> <br>> ' ==========<br>> <br>> '<br>> <br>> ' -d:filename File of parameters and HTML data to use as the<br>> message body. <br>> <br>> ' Use "-d:filename" if there are spaces in the<br>> filename<br>> <br>> '<br>> <br>> ' -a:filename Optional file to attach to all mails. <br>> <br>> ' Use "-a:filename" if there are spaces in the<br>> filename.<br>> <br>> '<br>> <br>> '<br>> <br>> '<br>> <br>> ' File Contents<br>> <br>> ' =============<br>> <br>> '<br>> <br>> ' **f:emailaddr Specify the e-mail address of the sender<br>> <br>> ' **t:emailaddrs Specify the e-mail address of the receiver(s)<br>> separated by semi-colon<br>> <br>> ' **c:emailaddrs Specify the e-mail address of the carbon copy(s)<br>> separated by semi-colon<br>> <br>> ' **b:emailaddrs Specify the e-mail address of the blind copy(s)<br>> separated by semi-colon<br>> <br>> ' (note the address sapteam@mycompany.com is added to<br>> ensure a copy)<br>> <br>> ' **s:subject Specify the e-mail subject<br>> <br>> ' **a:filename File to attach to this mail only. Either use -a on<br>> the call to the script<br>> <br>> ' (to get the same attachment(s) for each mail) or<br>> **a in the file to get<br>> <br>> ' different attachment(s) for each mail) <br>> <br>> ' **x Send the mail. You must specify **x on a line on its<br>> own if you wish to<br>> <br>> ' send multiple mails from the same data file<br>> <br>> ' (all others) The line is part of the HTML body of the mail<br>> <br>> '<br>> <br>> ' Example<br>> <br>> ' =======<br>> <br>> '<br>> <br>> ' cscript file_mail.vbs -d:\\srv12345\email\data\SAP_Urgent.txt<br>> <br>> '<br>> <br>> ' The above would send a mail using the parameters contained within<br>> the file<br>> <br>> ' \\srv12345\email\data\SAP-Urgent.txt. <br>> <br>> ' Please note that the whole of the parameter, including the -d:<br>> would have to be <br>> <br>> ' put into quotes if there was a space anywhere in the filename.<br>> <br>> ' If variables are being used to populate the parameters always use<br>> quotes where a space<br>> <br>> ' could be within the parameter - e.g. cscript file_mail.vbs<br>> "-d:%1" "-a:%2"<br>> <br>> '<br>> <br>> '<br>> <br>> ' Notes<br>> <br>> ' =====<br>> <br>> '<br>> <br>> ' The environment variable SAPSystemName is used to find out what SAP<br>> system, if any, may be<br>> <br>> ' using this script. If it finds the variable, and it has an entry that<br>> does not start with<br>> <br>> ' "P" (i.e. finds a non-production system), it will add the system name<br>> to start of the subject<br>> <br>> ' within square brackets (e.g. "[DEV] Subject of mail")<br>> <br>> '<br>> <br>> <br>> <br>> Dim fso, tStream, oArgs<br>> <br>> Dim sSMTPHost, strServer<br>> <br>> Dim objEmail<br>> <br>> Dim sBCC, sSubject, sDataFile, sAttach, w_line, w_body<br>> <br>> Dim ObjBP<br>> <br>> <br>> <br>> WScript.Echo "*i : file_mail version AC090713 starting"<br>> <br>> <br>> <br>> Set oArgs = WScript.Arguments<br>> <br>> <br>> <br>> '*** Save the Arguments in variables that are more descriptive...<br>> <br>> for x=0 to oArgs.count - 1<br>> <br>> if Left(cstr(oArgs(x)),3) = "-d:" then<br>> <br>> sDataFile = Mid(cStr(oArgs(x)),4)<br>> <br>> elseif Left(cstr(oArgs(x)),3) = "-a:" then<br>> <br>> sAttach = Mid(cStr(oArgs(x)),4)<br>> <br>> else<br>> <br>> WScript.Echo "*w : unknown parameter " & cstr(oArgs(x)) & " -<br>> parameter ignored"<br>> <br>> end if<br>> <br>> next<br>> <br>> <br>> <br>> Set WshShell = WScript.CreateObject("WScript.Shell")<br>> <br>> <br>> <br>> Set WshSysEnv = WshShell.Environment("PROCESS")<br>> <br>> <br>> <br>> strServer = WshSysEnv("SAPSYSTEMNAME")<br>> <br>> <br>> <br>> if strServer <> "" AND left(strServer, 1) <>"P" then<br>> <br>> sSubject = "[" & strServer & "] "<br>> <br>> end if<br>> <br>> <br>> <br>> on error resume next<br>> <br>> <br>> <br>> sSMTPHost = "10.1.2.3"<br>> <br>> Set objEmail = CreateObject("CDO.Message")<br>> <br>> <br>> <br>> objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/con<br>> figuration/sendusing") = 2<br>> <br>> objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/con<br>> figuration/smtpserver") = <br>> <br>> sSMTPHost<br>> <br>> objEmail.Configuration.Fields.Item<br>> ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") <br>> <br>> = 25<br>> <br>> objEmail.Configuration.Fields.Update<br>> <br>> <br>> <br>> If sAttach > "" Then<br>> <br>> objEmail.AddAttachment sAttach<br>> <br>> If err.number > 0 Then<br>> <br>> wscript.echo "*i: Attach File " & sAttach & " - Error " &<br>> CStr(Err.Number) & " " & <br>> <br>> Err.Description<br>> <br>> Else<br>> <br>> wscript.echo "*i: Attach File " & sAttach & " - file has been<br>> attached"<br>> <br>> End If<br>> <br>> End If<br>> <br>> <br>> <br>> If sDataFile > "" Then<br>> <br>> Set fso = CreateObject("Scripting.FileSystemObject")<br>> <br>> Set tStream = fso.OpenTextFile(sDataFile, 1)<br>> <br>> If err.number > 0 Then<br>> <br>> wscript.echo "*i: Body File " & sDataFile & " - Error " &<br>> CStr(Err.Number) & " " & <br>> <br>> Err.Description<br>> <br>> Else<br>> <br>> sBCC = "sapteam@mycompany.com"<br>> <br>> w_body = ""<br>> <br>> while not tstream.AtEndOfStream<br>> <br>> w_line = tstream.readline<br>> <br>> if left(w_line,4) = "**f:" or left(w_line,4) = "**F:" then<br>> <br>> objemail.From = mid(w_line,5)<br>> <br>> elseif left(w_line,4) = "**t:" or left(w_line,4) = "**T:" then<br>> <br>> objemail.To = mid(w_line,5)<br>> <br>> elseif left(w_line,4) = "**c:" or left(w_line,4) = "**C:" then<br>> <br>> objemail.CC = mid(w_line,5)<br>> <br>> elseif left(w_line,4) = "**b:" or left(w_line,4) = "**B:" then<br>> <br>> if len(w_line) = 4 then<br>> <br>> sBCC = "sapteam@mycompany.com"<br>> <br>> else<br>> <br>> sBCC = mid(w_line,5) & ";sapteam@mycompany.com"<br>> <br>> end if<br>> <br>> elseif left(w_line,4) = "**s:" or left(w_line,4) = "**S:" then<br>> <br>> objemail.Subject = sSubject & mid(w_line,5)<br>> <br>> elseif left(w_line,4) = "**a:" or left(w_line,4) = "**A:" then<br>> <br>> objemail.AddAttachment mid(w_line,5)<br>> <br>> elseif w_line = "**x" or w_line = "**X" then<br>> <br>> objemail.bcc = sBCC<br>> <br>> objemail.HTMLbody = w_body<br>> <br>> objemail.Send<br>> <br>> w_body = ""<br>> <br>> set objBP = objemail.bodypart.bodyparts<br>> <br>> objBP.deleteall<br>> <br>> else<br>> <br>> if w_body = "" then<br>> <br>> w_body = w_line<br>> <br>> else<br>> <br>> w_body = w_body & " " & w_line<br>> <br>> end if<br>> <br>> end if<br>> <br>> wend<br>> <br>> End If<br>> <br>> <br>> <br>> tStream.Close<br>> <br>> fso.deletefile(sDataFile)<br>> <br>> If err.number > 0 Then<br>> <br>> wscript.echo "*i: Body File " & sDataFile & " - Error " &<br>> CStr(Err.Number) & " " & <br>> <br>> Err.Description<br>> <br>> End if<br>> <br>> End If<br>> <br>> <br>> <br>> if w_body > "" then<br>> <br>> objemail.bcc = sBCC<br>> <br>> objemail.HTMLbody = w_body<br>> <br>> objEmail.Send <br>> <br>> End If<br>> <br>> <br>> <br>> WScript.Echo "*i : file_mail finished"<br>> <br>> <br>> <br>> WScript.Quit<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> Here is an example file:<br>> <br>> <br>> <br>> **f:adrian.clarke@xchanging.com<br>> <br>> **t:ali.husain@sap.wug<br>> <br>> **s:Example File<br>> <br>> Ali,<BR><BR>This is an example of a file that can be<br>> <br>> used to<br>> <br>> send<br>> <br>> a mail or two without the need for using SCOT or any<br>> <br>> other tools within SAP.<BR><BR>Regards,<BR><BR>Adrian<br>> <br>> **x<br>> <br>> **t:bart.simpson@wasnot.me.uk<br>> <br>> **s:I have the proof<br>> <br>> **a:\\srv12345\pictures\kcc.jpg<br>> <br>> Bart,<BR><BR>As you can see from the attached I have proof it was you.<br>> You will find this also <A<br>> HREF="http://www.proof.com">online<A>.<BR><BR>Confess!<BR><BR>Adrian<br>> <br>> <br>> <br>> <br>> <br>> This will send a mail from adrian.clarke@xchanging.com to<br>> ali.hisain@sap.wug with a subject of "Example File". The body of the<br>> mail will be formatted in HTML as follows:<br>> <br>> <br>> <br>> Ali, <br>> <br>> <br>> <br>> This is an example of a file that can be used to send a mail or two<br>> without the need for using SCOT or any other tools within SAP<br>> <br>> <br>> <br>> Regards,<br>> <br>> <br>> <br>> Adrian<br>> <br>> <br>> <br>> The second mail will also be sent from adrian.clarke@xchanging.com<br>> (there is no need to repeat the **f parameter, but it does no harm to),<br>> to bart.simpson@wasnot.me.uk. The subject of the mail will be "I have<br>> the proof" and there will be an attachment of kcc.jpg found in the<br>> pictures directory of the srv12345 server.<br>> <br>> <br>> <br>> The mail body will have a link in it to www.proof.com<br>> <http://www.proof.com/> .<br>> <br>> <br>> <br>> There is no need for **x at the end, as if there is an unsent mail body,<br>> it will be sent, but again, it does not harm.<br>> <br>> <br>> <br>> With Best Wishes<br>> <br>> <br>> <br>> Adrian Clarke<br>> <br>> SAP Consultant<br>> <br>> Xchanging<br>> <br>> <br>> <br>> <br>> <br>> ________________________________<br>> <br>> From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<br>> Of Ali Husain<br>> Sent: 11 March 2010 10:19<br>> To: SAP WUG<br>> Subject: Outlook Notification For New Work Items At Task Level<br>> <br>> <br>> <br>> <br>> Hey guys,<br>> <br>> Is there a way to send an Outlook notification to the agent whenever he<br>> has a new Work Item in his inbox without using an explicit mail step in<br>> the WF template?<br>> <br>> I also want to avoid Extended Notifications for now and also the BG job<br>> RSWUWFML. I don't need to send a link to execute the WI, just a<br>> notification so that the agent knows and then can access his inbox via<br>> Portal (We are on ECC 6 but not using UWL yet).<br>> <br>> So i was wondering if there is a simple quick solution at the task level<br>> to achieve this.<br>> <br>> Thanks a lot for the help.<br>> Ali<br>> <br>> <br>> <br>> ________________________________<br>> <br>> Hotmail: Free, trusted and rich email service. Get it now.<br>> <http://clk.atdmt.com/GBL/go/201469228/direct/01/> <br>> <br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100311/5c4a7a86/attachment.htm<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>> End of SAP-WUG Digest, Vol 64, Issue 23<br>> ***************************************<br>                                            <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/210850552/direct/01/' target='_new'>Sign up now.</a></body>
</html>