<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on {Current Date} -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.b494c043-0602-456f-bc17-af4f754630a2 {
        MARGIN: 0cm 0cm 0pt
}
LI.b494c043-0602-456f-bc17-af4f754630a2 {
        MARGIN: 0cm 0cm 0pt
}
DIV.b494c043-0602-456f-bc17-af4f754630a2 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.b494c043-0602-456f-bc17-af4f754630a2Table {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.mceresizehandle, li.mceresizehandle, div.mceresizehandle
        {mso-style-name:mceresizehandle;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        border:none;
        padding:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.00c9999b-8389-419c-9d5e-8a257d4ee738
        {mso-style-name:00c9999b-8389-419c-9d5e-8a257d4ee738;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Arial",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: normal" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Hi Joerg and Jocelyn,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Success!!!&nbsp; We got the PDF attached to an email and the email sent using Workflow.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">The email still did not have the PDF attachment after we added what Joerg suggested -
</span><span style="font-family:&quot;Arial&quot;,sans-serif">then a &quot;COMMIT WORK&quot; (evtl. with &quot;AND WAIT&quot;, evtl. w/ a before statement &quot;SET UPDATE TASK LOCAL&quot;) seems to be missing near after the step of creating the attachment.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">My ABAPer then put it in DEBUG and found that the PDF was not being created because the user (WF-BATCH) did not have an Output Device identified.&nbsp; We just had to
 add one of our printers, even though we won’t use it. </span><o:p></o:p></p>
<p class="MsoNormal"><img width="566" height="508" id="Picture_x0020_1" src="cid:image001.png@01D0AF50.DBDC0B60"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Once we made that change, the PDF was created and attached to the email and the email sent.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><img width="693" height="744" id="Picture_x0020_2" src="cid:image002.png@01D0AF51.E2D92DC0"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><img width="750" height="203" id="Picture_x0020_3" src="cid:image003.png@01D0AF52.A66AA390"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Thanks again for everyone’s help!&nbsp; I really appreciate it!!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div></div>
</div>
<br>
<span style="FONT-FAMILY: Arial; COLOR: #006133; FONT-SIZE: 11pt; FONT-WEIGHT: bold">Sue Doughty</span><br>
<span style="FONT-FAMILY: Arial; COLOR: #687b69; FONT-SIZE: 10pt; FONT-WEIGHT: normal"><span style="font-family:Arial; ">SAP Workflow Analyst</span></span><br>
<span style="FONT-FAMILY: Arial; COLOR: #d4772d; FONT-SIZE: 9pt; FONT-WEIGHT: normal"><span style="font-family:Arial; font-size:9pt; "><span style="font-family:Arial; font-size:9pt; ">Office:
</span>(336) 822-5189<br>
</span></span><font color="black"><br>
</font>
<div class="WordSection1">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>Joerg Schneider<br>
<b>Sent:</b> Wednesday, June 24, 2015 8:01 PM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> Re: WF Error - Method cannot be executed<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Hi Sue,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">if&nbsp; this is true:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">- When we run it via SWO1, the email gets sent with the PDF attached.<br>
- When my ABAPer executes the FM in a background job, it sends the email with the PDF attached.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><br>
then a &quot;COMMIT WORK&quot; (evtl. with &quot;AND WAIT&quot;, evtl. w/ a before statement &quot;SET UPDATE TASK LOCAL&quot;) seems<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">to be missing near after the step of creating the attachment.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Regards, Joerg<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid blue 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:&quot;Arial&quot;,sans-serif">&quot;Dart, Jocelyn&quot; &lt;<a href="mailto:jocelyn.dart@sap.com">jocelyn.dart@sap.com</a>&gt; hat am 25. Juni 2015 um 01:41 geschrieben:<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Hi Sue<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Problem may be that it creates the PDF but struggles to figure out where to add the attachment.&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Where the attachment is placed depends on it working out the sapoffice folder for the executing user - that can be a bit tricky with batch users if they aren't set up in sapoffice.&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Perhaps you could get your abaper to add some checks &amp; workflow exceptions if the pdf doesn't get created &amp; if the document isn't attached. &nbsp;That would narrow down the problem for you<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Rgds<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Jocelyn<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><br>
Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><br>
On 25 Jun 2015, at 5:34 am, &quot;<a href="mailto:jerry.martinek@shawbiz.ca">jerry.martinek@shawbiz.ca</a>&quot; &lt;<a href="mailto:jerry.martinek@shawbiz.ca">jerry.martinek@shawbiz.ca</a>&gt; wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">Hi,<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">What do you see in SOST/SOSG? Is the attachment present with the email?<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">Regards,<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">Jerry Martinek<br>
<br>
On Wed, 24 Jun 2015 19:00:52 &#43;0000, Sue Doughty &lt;<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&gt; wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div id="html-message">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Hi,</span><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Nothing in ST22.&nbsp; The email and PDF attachment are created and attached in the function module and sent
 from the FM….why would the workflow have a problem with that?</span><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><strong><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></strong><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [<a href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>]
<strong><span style="font-family:&quot;Calibri&quot;,sans-serif">On Behalf Of </span></strong>Shai Eyal<br>
<strong><span style="font-family:&quot;Calibri&quot;,sans-serif">Sent:</span></strong> Wednesday, June 24, 2015 2:52 PM<br>
<strong><span style="font-family:&quot;Calibri&quot;,sans-serif">To:</span></strong> sap-wug<br>
<strong><span style="font-family:&quot;Calibri&quot;,sans-serif">Subject:</span></strong> Re: WF Error - Method cannot be executed</span><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt">Hi Sue,</span><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt">I'm afraid it means the workflow fails to create the PDF.</span><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt">Anything in ST22?</span><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><strong><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#00007F">Regards,</span></strong><b><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#00007F"><br>
<strong><span style="font-family:&quot;Verdana&quot;,sans-serif">Shai Eyal</span></strong></span></b><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><strong><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:navy">SAP Logistics senior consultant</span></strong><b><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:navy"><br>
<strong><span style="font-family:&quot;Verdana&quot;,sans-serif">SAP Workflow &amp; BPM specialist</span></strong></span></b><o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
</div>
</div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Wed, Jun 24, 2015 at 9:42 PM, &lt;<a href="mailto:sap-wug-request@mit.edu" target="_blank">sap-wug-request@mit.edu</a>&gt; wrote:<o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;0in 0in 6.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Send SAP-WUG mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">
http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of SAP-WUG digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
&nbsp; &nbsp;1. RE: WF Error - Method cannot be executed (Sue Doughty)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 24 Jun 2015 18:42:22 &#43;0000<br>
From: Sue Doughty &lt;<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&gt;<br>
Subject: RE: WF Error - Method cannot be executed<br>
To: &quot;SAP Workflow Users' Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
Cc: Eric Lowe &lt;<a href="mailto:eric.lowe@odfl.com">eric.lowe@odfl.com</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:e3b92e92ea6b4acab2a00b6a849a5d9f@DC1-P-M-EXCH01.corp.odfl.com">e3b92e92ea6b4acab2a00b6a849a5d9f@DC1-P-M-EXCH01.corp.odfl.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hi,<br>
<br>
It?s me again.<br>
<br>
We are so close!!<br>
<br>
As a recap?.the function module being called in the method creates a PDF from a smartform, attaches it to an email and sends an email to an internal email address within our company (<a href="mailto:SAP.Workflow@odfl.com">SAP.Workflow@odfl.com</a>)<br>
<br>
When we run it via SWO1, the email gets sent with the PDF attached.<br>
<br>
When my ABAPer executes the FM in a background job, it sends the email with the PDF attached.<br>
<br>
When we have the workflow call the method, it executes without any errors BUT the email gets sent with NO attachment.<br>
<br>
Any help would be greatly appreciated!!!<br>
<br>
<br>
Sue Doughty<br>
SAP Workflow Analyst<br>
Office: (336) 822-5189<br>
<br>
From: Sue Doughty<br>
Sent: Wednesday, June 24, 2015 11:33 AM<br>
To: SAP Workflow Users' Group<br>
Cc: Eric Lowe<br>
Subject: RE: WF Error - Method cannot be executed<br>
<br>
Thank you everyone for your response.<br>
<br>
The function module contained code to do the process in the foreground and in the background based on how it was called.&nbsp; So, we made a copy of the FM and with only the background processing in it , ran another test from the workflow and we got passed the error!<br>
<br>
Thanks again for your help!<br>
<br>
From: <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>&lt;mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>&gt; [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>] On Behalf Of Dart, Jocelyn<br>
Sent: Tuesday, June 23, 2015 6:42 PM<br>
To: SAP Workflow Users' Group<br>
Subject: Re: WF Error - Method cannot be executed<br>
<br>
Hi Sue<br>
Ok I'm guessing somewhere its looking for a gui custom control (which requires a dialog user).<br>
<br>
If I were you I would go back to your ABAP programmer &amp; get them to run the program in background (ie set up a little batch job) using a userid of the same type as WF-BATCH.&nbsp; I'm betting their background test might have been done using their own userid as the
 executing user ...which isn't a true test of backgroundicity ;)<br>
<br>
Also a good time to double check the task method is passing all the right parameters.<br>
Good luck<br>
<br>
Rgds<br>
Jocelyn<br>
<br>
Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies<br>
<br>
On 24 Jun 2015, at 5:31 am, Sue Doughty &lt;<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&lt;mailto:<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&gt;&gt; wrote:<br>
Greetings Wuggers!<br>
<br>
We are on ECC 6.0 Rel 731 SP-Level 0013<br>
<br>
I am at the end of my rope.&nbsp; ?&nbsp; Please help!<br>
<br>
I created a BOR background method that calls a Z Function module that creates a smart form, converts it to a PDF and then emails it.<br>
<br>
&lt;image007.png&gt;<br>
<br>
&lt;image002.png&gt;<br>
<br>
&lt;image005.png&gt;<br>
<br>
<br>
<br>
When I test it in SWO1, it works.&nbsp; When my ABAPer runs the function module in background outside the workflow, it works.<br>
<br>
When it is executed in the Workflow it fails with the messages below:<br>
<br>
&lt;image001.png&gt;<br>
&lt;image006.png&gt;<br>
<br>
&lt;image003.png&gt;<br>
<br>
The error message indicates an error in the Control Framework<br>
&lt;image004.png&gt;<br>
<br>
<br>
We have searched notes, Google?.everything we can think of and cannot figure this out.<br>
<br>
We found one place that said to delete the task to method binding?.we did that.<br>
<br>
We can tell that the method is not being executed because we put a set container statement to 99 at the front of it and this never gets set.&nbsp; We get this error too?<br>
<br>
&lt;image008.png&gt;<br>
<br>
&lt;image009.png&gt;<br>
<br>
Any ideas would be greatly appreciated.<br>
<br>
Sue Doughty<br>
SAP Workflow Analyst<br>
<br>
[<a href="http://www.odfl.com/signature/signature_od_37x37.png" target="_blank">http://www.odfl.com/signature/signature_od_37x37.png</a>]&lt;<a href="http://www.odfl.com" target="_blank">http://www.odfl.com</a>&gt;<br>
<br>
Office: (336) 822-5189<br>
Fax: (336) 822-5149<br>
Email: <a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&lt;mailto:<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&gt;<br>
Helping the World Keep Promises.?<br>
<br>
Old Dominion Freight Line, Inc.<br>
500 Old Dominion Way<br>
Thomasville, NC 27360<br>
<a href="http://www.odfl.com" target="_blank">www.odfl.com</a>&lt;<a href="http://www.odfl.com" target="_blank">http://www.odfl.com</a>&gt;<br>
[<a href="http://www.odfl.com/signature/signature_facebook_25x25.png" target="_blank">http://www.odfl.com/signature/signature_facebook_25x25.png</a>]&lt;<a href="http://www.facebook.com/OldDominionFreightLine" target="_blank">http://www.facebook.com/OldDominionFreightLine</a>&gt;<br>
<br>
[<a href="http://www.odfl.com/signature/signature_twitter_white_on_blue_rounded.png" target="_blank">http://www.odfl.com/signature/signature_twitter_white_on_blue_rounded.png</a>]&lt;<a href="http://twitter.com/ODFL_Inc" target="_blank">http://twitter.com/ODFL_Inc</a>&gt;<br>
<br>
[<a href="http://www.odfl.com/signature/signature_linkedin_25x28.png" target="_blank">http://www.odfl.com/signature/signature_linkedin_25x28.png</a>]&lt;<a href="http://www.linkedin.com/company/old-dominion-freight-line" target="_blank">http://www.linkedin.com/company/old-dominion-freight-line</a>&gt;<br>
<br>
CONFIDENTIALITY NOTICE: The information contained in this message may be confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for
 delivering this message to the intended recipient, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message, any part of it, or any attachments. If you have received this message in error, please delete this
 message and any attachments from your system without reading the content and notify the sender immediately of the inadvertent transmission. Thank you for your cooperation.<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr style="height:41.25pt">
<td style="padding:0in 0in 0in 0in;height:41.25pt">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#006133">Sue Doughty</span></b><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#687B69">SAP Workflow Analyst</span><o:p></o:p></p>
</td>
<td width="55" style="width:41.25pt;padding:0in 0in 0in 0in;height:41.25pt">
<p class="MsoNormal" align="right" style="text-align:right"><a href="http://www.odfl.com"><span style="text-decoration:none"><img border="0" width="37" height="37" id="IMG1" src="http://www.odfl.com/signature/signature_od_37x37.png"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#D4772D">Office: (336) 822-5189<br>
Fax: (336) 822-5149<br>
Email: <a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a></span><span style="font-family:&quot;Arial&quot;,sans-serif"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr style="height:22.5pt">
<td style="padding:0in 0in 0in 0in;height:22.5pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#687B69">Helping the World Keep Promises.<sup>®</sup></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#006133">Old Dominion Freight Line, Inc.<br>
500 Old Dominion Way<br>
Thomasville, NC 27360<br>
<a href="http://www.odfl.com">www.odfl.com</a></span><span style="font-family:&quot;Arial&quot;,sans-serif"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr style="height:37.5pt">
<td width="32" style="width:24.0pt;padding:0in 0in 0in 0in;height:37.5pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif"><a href="http://www.facebook.com/OldDominionFreightLine"><span style="text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1026" src="http://www.odfl.com/signature/signature_facebook_25x25.png"></span></a></span><o:p></o:p></p>
</td>
<td width="32" style="width:24.0pt;padding:0in 0in 0in 0in;height:37.5pt">
<p class="MsoNormal"><a href="http://twitter.com/ODFL_Inc"><span style="text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1027" src="http://www.odfl.com/signature/signature_twitter_white_on_blue_rounded.png"></span></a><o:p></o:p></p>
</td>
<td width="32" style="width:24.0pt;padding:0in 0in 0in 0in;height:37.5pt">
<p class="MsoNormal"><a href="http://www.linkedin.com/company/old-dominion-freight-line"><span style="text-decoration:none"><img border="0" width="28" height="25" id="_x0000_i1028" src="http://www.odfl.com/signature/signature_linkedin_25x28.png"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span class="00c9999b-8389-419c-9d5e-8a257d4ee738"><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif">CONFIDENTIALITY NOTICE: The information contained in this message may be confidential, privileged,
 proprietary, or otherwise legally exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you are not authorized
 to read, print, retain, copy or disseminate this message, any part of it, or any attachments. If you have received this message in error, please delete this message and any attachments from your system without reading the content and notify the sender immediately
 of the inadvertent transmission. Thank you for your cooperation.</span></span><span style="font-family:&quot;Arial&quot;,sans-serif"><o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;0in 0in 6.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>&lt;mailto:<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>&gt;<br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20150624/28bf758b/attachment.htm" target="_blank">
http://mailman.mit.edu/pipermail/sap-wug/attachments/20150624/28bf758b/attachment.htm</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br>
<br>
End of SAP-WUG Digest, Vol 127, Issue 12<br>
****************************************<o:p></o:p></p>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</blockquote>
</div>
<p><span style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-family:&quot;Arial&quot;,sans-serif">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="../hwebmail/services/go.php?url=http%3A%2F%2Fmailman.mit.edu%2Fmailman%2Flistinfo%2Fsap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></span></p>
</blockquote>
<p><span style="font-family:&quot;Arial&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></span></p>
</div>
</blockquote>
</blockquote>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><br>
&nbsp;<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid blue 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></span></p>
</blockquote>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif"><br>
&nbsp;<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,sans-serif">Joerg Schneider<br>
Mobile: &#43;49-176-2333-9687<br>
e-mail: <a href="mailto:js@flowdocs.de">js@flowdocs.de</a><br>
<br>
-- **********<br>
-- This message and any attachment(s) are confidential and may contain<br>
-- privileged information intended only for the use of the individual or<br>
-- company named above. If you are not the intended recipient, please<br>
-- call or email the sender for notification and delete this message and any<br>
-- attachment(s) from your system.<br>
-- **********<br>
<br>
flowDOCS Software GmbH<br>
Steiermärker Straße 3 – 5<br>
D–70469 Stuttgart<br>
Telefon (&#43;49) 0711 89 660 446<br>
Telefax (&#43;49) 0711 89 660 447<br>
Email <a href="mailto:info@flowdocs.de">info@flowdocs.de</a><br>
<br>
Geschäftsführer:<br>
Ralf M. Ruthardt<br>
Jörg Schneider<br>
<br>
HRB Stuttgart 729211<o:p></o:p></span></p>
</div>
</body>
</html>