<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.f41de814-4017-4eb9-980d-5bc60a0bf57a {
        MARGIN: 0cm 0cm 0pt
}
LI.f41de814-4017-4eb9-980d-5bc60a0bf57a {
        MARGIN: 0cm 0cm 0pt
}
DIV.f41de814-4017-4eb9-980d-5bc60a0bf57a {
        MARGIN: 0cm 0cm 0pt
}
TABLE.f41de814-4017-4eb9-980d-5bc60a0bf57aTable {
        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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Tahoma;
        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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma",sans-serif;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Arial",sans-serif;
        color:#993366;}
span.00c9999b-8389-419c-9d5e-8a257d4ee738
        {mso-style-name:00c9999b-8389-419c-9d5e-8a257d4ee738;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Arial",sans-serif;
        color:#003300;}
.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:"Arial",sans-serif;color:#003300">Thank you everyone for your response.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300">The function module contained code to do the process in the foreground and in the background based on how it was called. 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!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300">Thanks again for your help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300"><o:p> </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:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>Dart, Jocelyn<br>
<b>Sent:</b> Tuesday, June 23, 2015 6:42 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> </o:p></p>
<div>
<p class="MsoNormal">Hi Sue <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Ok I'm guessing somewhere its looking for a gui custom control (which requires a dialog user).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">If I were you I would go back to your ABAP programmer & 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. 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 ;)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Also a good time to double check the task method is passing all the right parameters. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Good luck<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Rgds<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Jocelyn<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On 24 Jun 2015, at 5:31 am, Sue Doughty <<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">Greetings Wuggers!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">We are on ECC 6.0 Rel 731 SP-Level 0013</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">I am at the end of my rope.
</span><span style="font-size:10.0pt;font-family:Wingdings;color:#993366">J</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> Please help!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><image007.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><image002.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><image005.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">When I test it in SWO1, it works. When my ABAPer runs the function module in background outside the workflow, it works.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">When it is executed in the Workflow it fails with the messages below:</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><image001.png><o:p></o:p></p>
<p class="MsoNormal"><image006.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><image003.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">The error message indicates an error in the Control Framework</span><o:p></o:p></p>
<p class="MsoNormal"><image004.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">We have searched notes, Google….everything we can think of and cannot figure this out.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">We found one place that said to delete the task to method binding….we did that.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">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. We get this error
too…</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><image008.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><image009.png><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#993366">Any ideas would be greatly appreciated.</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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:"Arial",sans-serif;color:#006133">Sue Doughty</span></b><br>
<span style="font-size:10.0pt;font-family:"Arial",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:"Arial",sans-serif;color:#D4772D">Office: (336) 822-5189<br>
Fax: (336) 822-5149<br>
Email: <a href="mailto:Sue.Doughty@odfl.com" title="Click to send email to Sue Doughty">
Sue.Doughty@odfl.com</a></span><o:p></o:p></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:"Arial",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:"Arial",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><o:p></o:p></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:"Arial",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:"Arial",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><br>
<br>
<o:p></o:p></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">_______________________________________________<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></p>
</div>
</blockquote>
</div>
</body>
</html>