WF Error - Method cannot be executed

Sue Doughty Sue.Doughty at odfl.com
Wed Jun 24 11:32:33 EDT 2015


Thank you everyone for your response.

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!

Thanks again for your help!


Sue Doughty
SAP Workflow Analyst
Office: (336) 822-5189

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Dart, Jocelyn
Sent: Tuesday, June 23, 2015 6:42 PM
To: SAP Workflow Users' Group
Subject: Re: WF Error - Method cannot be executed

Hi Sue
Ok I'm guessing somewhere its looking for a gui custom control (which requires a dialog user).

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 ;)

Also a good time to double check the task method is passing all the right parameters.
Good luck

Rgds
Jocelyn

Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies

On 24 Jun 2015, at 5:31 am, Sue Doughty <Sue.Doughty at odfl.com<mailto:Sue.Doughty at odfl.com>> wrote:
Greetings Wuggers!

We are on ECC 6.0 Rel 731 SP-Level 0013

I am at the end of my rope.  ☺  Please help!

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.

<image007.png>

<image002.png>

<image005.png>



When I test it in SWO1, it works.  When my ABAPer runs the function module in background outside the workflow, it works.

When it is executed in the Workflow it fails with the messages below:

<image001.png>
<image006.png>

<image003.png>

The error message indicates an error in the Control Framework
<image004.png>


We have searched notes, Google….everything we can think of and cannot figure this out.

We found one place that said to delete the task to method binding….we did that.

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…

<image008.png>

<image009.png>

Any ideas would be greatly appreciated.

Sue Doughty
SAP Workflow Analyst

[http://www.odfl.com/signature/signature_od_37x37.png]<http://www.odfl.com>

Office: (336) 822-5189
Fax: (336) 822-5149
Email: Sue.Doughty at odfl.com<mailto:Sue.Doughty at odfl.com>
Helping the World Keep Promises.®

Old Dominion Freight Line, Inc.
500 Old Dominion Way
Thomasville, NC 27360
www.odfl.com<http://www.odfl.com>
[http://www.odfl.com/signature/signature_facebook_25x25.png]<http://www.facebook.com/OldDominionFreightLine>

[http://www.odfl.com/signature/signature_twitter_white_on_blue_rounded.png]<http://twitter.com/ODFL_Inc>

[http://www.odfl.com/signature/signature_linkedin_25x28.png]<http://www.linkedin.com/company/old-dominion-freight-line>

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.

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>
http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20150624/0629ace7/attachment-0001.htm


More information about the SAP-WUG mailing list