WF Error - Method cannot be executed

Shai Eyal shaieyalis at gmail.com
Wed Jun 24 01:10:19 EDT 2015


Hi Sue,
My guess it has to do with wf-batch user type and the FM you use inside
your function, maybe the device your using to simulate the SSF print.
I'd suggest setting endless while inside the method, run the workflow and
then through SM51 debug the session. This way you can see EXACTLY what
happens. I can assure this has to work, I did that several times.

Good luck.
On 24 Jun 2015 01:42, <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: SAP-WUG Digest, Vol 127, Issue 8 (Bharath Padmanabhan)
>    2. Re: WF Error - Method cannot be executed (Dart, Jocelyn)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 23 Jun 2015 15:27:17 -0400
> From: Bharath Padmanabhan <calltobharath at gmail.com>
> Subject: Re: SAP-WUG Digest, Vol 127, Issue 8
> To: sap-wug at mit.edu
> Message-ID:
>         <CAP+rKFJfi8f9YL1UnZxthmYBPMi=
> G-HMM4EVBXStFkefeCWpvA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Sue,
>
> Maybe you might have tried it already!
>
> Can you convert the BO method as dialog & assign yourself as approver. You
> will be receiving a workitem in your inbox. You can set a debugger in the
> BO method. Then execute the workitem which will start the debugger & see
> what happens in runtime.
>
> Thanks
> Aspire
>
> On Tue, Jun 23, 2015 at 3:19 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. WF Error - Method cannot be executed (Sue Doughty)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 23 Jun 2015 19:19:28 +0000
> > From: Sue Doughty <Sue.Doughty at odfl.com>
> > Subject: WF Error - Method cannot be executed
> > To: "'SAP Workflow Users' Group'" <sap-wug at mit.edu>
> > Message-ID:
> >         <1646dde5cac44519bd07f81bde140dff at DC1-P-M-EXCH01.corp.odfl.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > 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.
> >
> > [cid:image007.png at 01D0ADC6.5B576B50]
> >
> > [cid:image002.png at 01D0ADC4.DB099D20]
> >
> > [cid:image005.png at 01D0ADC5.3B1949E0]
> >
> >
> >
> > 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:
> >
> > [cid:image001.png at 01D0ADC4.6CA98A70]
> > [cid:image006.png at 01D0ADC7.FB364780]
> >
> > [cid:image003.png at 01D0ADC4.DB099D20]
> >
> > The error message indicates an error in the Control Framework
> > [cid:image004.png at 01D0ADC4.DB099D20]
> >
> >
> > 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?
> >
> > [cid:image008.png at 01D0ADC6.5B576B50]
> >
> > [cid:image009.png at 01D0ADC6.5B576B50]
> >
> > 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.
> >
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment.htm
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image001.png
> > Type: image/png
> > Size: 55637 bytes
> > Desc: image001.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image002.png
> > Type: image/png
> > Size: 29691 bytes
> > Desc: image002.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0001.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image003.png
> > Type: image/png
> > Size: 38226 bytes
> > Desc: image003.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0002.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image004.png
> > Type: image/png
> > Size: 10340 bytes
> > Desc: image004.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0003.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image005.png
> > Type: image/png
> > Size: 61721 bytes
> > Desc: image005.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0004.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image007.png
> > Type: image/png
> > Size: 18063 bytes
> > Desc: image007.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0005.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image008.png
> > Type: image/png
> > Size: 48628 bytes
> > Desc: image008.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0006.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image009.png
> > Type: image/png
> > Size: 24438 bytes
> > Desc: image009.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0007.png
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: image006.png
> > Type: image/png
> > Size: 35562 bytes
> > Desc: image006.png
> > Url :
> >
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/161aabfc/attachment-0008.png
> >
> > ------------------------------
> >
> > _______________________________________________
> > 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 8
> > ***************************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/bfd5d1e3/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Tue, 23 Jun 2015 22:42:01 +0000
> From: "Dart, Jocelyn" <jocelyn.dart at sap.com>
> Subject: Re: WF Error - Method cannot be executed
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Message-ID: <172A1D8D-84B2-4470-B899-41584C78CCB1 at sap.com>
> Content-Type: text/plain; charset="windows-1252"
>
> 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/20150623/6610ce37/attachment.htm
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image001.png
> Type: image/png
> Size: 55637 bytes
> Desc: image001.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image002.png
> Type: image/png
> Size: 29691 bytes
> Desc: image002.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0001.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image003.png
> Type: image/png
> Size: 38226 bytes
> Desc: image003.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0002.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image004.png
> Type: image/png
> Size: 10340 bytes
> Desc: image004.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0003.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image005.png
> Type: image/png
> Size: 61721 bytes
> Desc: image005.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0004.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image007.png
> Type: image/png
> Size: 18063 bytes
> Desc: image007.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0005.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image008.png
> Type: image/png
> Size: 48628 bytes
> Desc: image008.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0006.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image009.png
> Type: image/png
> Size: 24438 bytes
> Desc: image009.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0007.png
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image006.png
> Type: image/png
> Size: 35562 bytes
> Desc: image006.png
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20150623/6610ce37/attachment-0008.png
>
> ------------------------------
>
> _______________________________________________
> 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 9
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20150624/b2872c08/attachment-0001.htm


More information about the SAP-WUG mailing list