WF Error - Method cannot be executed

Shai Eyal shaieyalis at gmail.com
Wed Jun 24 14:51:45 EDT 2015


Hi Sue,
I'm afraid it means the workflow fails to create the PDF.
Anything in ST22?


*Regards,Shai Eyal*

*SAP Logistics senior consultantSAP Workflow & BPM specialist*




On Wed, Jun 24, 2015 at 9:42 PM, <sap-wug-request at mit.edu> wrote:

> Send SAP-WUG mailing list submissions to
>         sap-wug at mit.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mailman.mit.edu/mailman/listinfo/sap-wug
> or, via email, send a message with subject or body 'help' to
>         sap-wug-request at mit.edu
>
> You can reach the person managing the list at
>         sap-wug-owner at mit.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SAP-WUG digest..."
>
>
> Today's Topics:
>
>    1. RE: WF Error - Method cannot be executed (Sue Doughty)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 24 Jun 2015 18:42:22 +0000
> From: Sue Doughty <Sue.Doughty at odfl.com>
> Subject: RE: WF Error - Method cannot be executed
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Cc: Eric Lowe <eric.lowe at odfl.com>
> Message-ID:
>         <e3b92e92ea6b4acab2a00b6a849a5d9f at DC1-P-M-EXCH01.corp.odfl.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> It?s me again.
>
> We are so close!!
>
> 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 (SAP.Workflow at odfl.com)
>
> When we run it via SWO1, the email gets sent with the PDF attached.
>
> When my ABAPer executes the FM in a background job, it sends the email
> with the PDF attached.
>
> When we have the workflow call the method, it executes without any errors
> BUT the email gets sent with NO attachment.
>
> Any help would be greatly appreciated!!!
>
>
> Sue Doughty
> SAP Workflow Analyst
> Office: (336) 822-5189
>
> From: Sue Doughty
> Sent: Wednesday, June 24, 2015 11:33 AM
> To: SAP Workflow Users' Group
> Cc: Eric Lowe
> Subject: RE: WF Error - Method cannot be executed
>
> 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!
>
> From: sap-wug-bounces at mit.edu<mailto: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/28bf758b/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> End of SAP-WUG Digest, Vol 127, Issue 12
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20150624/65a595f2/attachment.htm


More information about the SAP-WUG mailing list