<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div>Hi Sue&nbsp;</div>
<div>Ok I'm guessing somewhere its looking for a gui custom control (which requires a dialog user).</div>
<div><br>
</div>
<div>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 ;)</div>
<div><br>
</div>
<div>Also a good time to double check the task method is passing all the right parameters. &nbsp;</div>
<div>Good luck</div>
<div><br>
</div>
<div>Rgds</div>
<div>Jocelyn</div>
<div><br>
</div>
<div>Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies&nbsp;</div>
<div><br>
On 24 Jun 2015, at 5:31 am, Sue Doughty &lt;<a href="mailto:Sue.Doughty@odfl.com">Sue.Doughty@odfl.com</a>&gt; wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><!-- Template generated by Exclaimer Mail Disclaimers on {Current Date} -->
<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-reply;
        font-family:"Arial",sans-serif;
        color:#993366;}
.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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">Greetings Wuggers!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">We are on ECC 6.0 Rel 731 SP-Level 0013<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">I am at the end of my rope.&nbsp;
</span><span style="font-size:10.0pt;font-family:Wingdings;color:#993366">J</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">&nbsp; Please help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&lt;image007.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&lt;image002.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&lt;image005.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">When I test it in SWO1, it works.&nbsp; When my ABAPer runs the function module in background outside the workflow, it works.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,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>&nbsp;</o:p></p>
<p class="MsoNormal">&lt;image001.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal">&lt;image006.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&lt;image003.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">The error message indicates an error in the Control Framework<o:p></o:p></span></p>
<p class="MsoNormal">&lt;image004.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">We have searched notes, Google….everything we can think of and cannot figure this out.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">We found one place that said to delete the task to method binding….we did that.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,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.&nbsp; We get this error
 too…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&lt;image008.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">&lt;image009.png&gt;<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#993366">Any ideas would be greatly appreciated.<o:p></o:p></span></p>
</div>
<br>
<table style="BORDER-COLLAPSE: collapse" class="00c9999b-8389-419c-9d5e-8a257d4ee738Table" border="0" cellspacing="0" cellpadding="0" cols="2">
<tbody>
<tr>
<td><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></td>
<td height="55" width="55" align="right"><a href="http://www.odfl.com"><img id="IMG1" border="0" src="http://www.odfl.com/signature/signature_od_37x37.png" width="37" height="37"></a></td>
</tr>
</tbody>
</table>
<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</span><br>
Fax: (336) 822-5149<br>
Email: <span style="font-family:Arial; font-size:9pt; "><span style="font-family:Arial; font-size:9pt; "><a href="mailto:Sue.Doughty@odfl.com" title="Click to send email to Sue Doughty" target=""><span style="font-family:Arial; font-size:9pt; ">Sue.Doughty@odfl.com</span></a></span></span></span><br>
<table style="BORDER-COLLAPSE: collapse" class="00c9999b-8389-419c-9d5e-8a257d4ee738Table" border="0" cellspacing="0" cellpadding="0" cols="1">
<tbody>
<tr>
<td height="30"><span style="FONT-FAMILY: Arial; COLOR: #687b69; FONT-SIZE: 10pt; FONT-WEIGHT: normal">Helping the World Keep Promises.<sup>®</sup></span></td>
</tr>
</tbody>
</table>
<span style="FONT-FAMILY: Arial; COLOR: #006133; FONT-SIZE: 9pt">Old Dominion Freight Line, Inc.<br>
500 Old Dominion Way<br>
Thomasville, NC 27360<br>
<a style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" href="http://www.odfl.com">www.odfl.com</a></span><br>
<table style="BORDER-COLLAPSE: collapse" class="00c9999b-8389-419c-9d5e-8a257d4ee738Table" border="0" cellspacing="0" cellpadding="0" cols="3">
<tbody>
<tr>
<td height="50" width="32"><span style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"><a href="http://www.facebook.com/OldDominionFreightLine"><img id="IMG1" border="0" align="middle" src="http://www.odfl.com/signature/signature_facebook_25x25.png" width="25" height="25"></a></span></td>
<td height="50" width="32"><a href="http://twitter.com/ODFL_Inc"><img id="IMG1" border="0" align="middle" src="http://www.odfl.com/signature/signature_twitter_white_on_blue_rounded.png" width="25" height="25"></a></td>
<td height="50" width="32"><a href="http://www.linkedin.com/company/old-dominion-freight-line"><img id="IMG1" border="0" align="middle" src="http://www.odfl.com/signature/signature_linkedin_25x28.png" width="28" height="25"></a></td>
</tr>
</tbody>
</table>
<span style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" class="00c9999b-8389-419c-9d5e-8a257d4ee738">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><br>
<br>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>SAP-WUG mailing list</span><br>
<span><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></span><br>
<span><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></span><br>
</div>
</blockquote>
</body>
</html>