WF Error - Method cannot be executed

Joerg Schneider jschneider at crossdocs.de
Wed Jun 24 20:00:33 EDT 2015


Hi Sue,
 
if  this is true:
- 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.

then a "COMMIT WORK" (evtl. with "AND WAIT", evtl. w/ a before statement "SET
UPDATE TASK LOCAL") seems
to be missing near after the step of creating the attachment.
 
Regards, Joerg
 
 
 
 

> "Dart, Jocelyn" <jocelyn.dart at sap.com> hat am 25. Juni 2015 um 01:41
> geschrieben:
> 
>  Hi Sue
>  Problem may be that it creates the PDF but struggles to figure out where to
> add the attachment. 
>   
>  Where the attachment is placed depends on it working out the sapoffice folder
> for the executing user - that can be a bit tricky with batch users if they
> aren't set up in sapoffice. 
>   
>  Perhaps you could get your abaper to add some checks & workflow exceptions if
> the pdf doesn't get created & if the document isn't attached.  That would
> narrow down the problem for you
>   
>  Rgds
>  Jocelyn
> 
>  Sent from my iPhone with many apologies for the spelling, grammar and any
> other deficiencies 
> 
>  On 25 Jun 2015, at 5:34 am, "jerry.martinek at shawbiz.ca
> <mailto:jerry.martinek at shawbiz.ca> " <jerry.martinek at shawbiz.ca
> <mailto:jerry.martinek at shawbiz.ca> > wrote:
> 
>      > > 
> >      Hi,
> > 
> >       
> > 
> >      What do you see in SOST/SOSG? Is the attachment present with the email?
> > 
> >       
> > 
> >      Regards,
> > 
> >      Jerry Martinek
> > 
> >      On Wed, 24 Jun 2015 19:00:52 +0000, Sue Doughty <Sue.Doughty at odfl.com
> > <mailto:Sue.Doughty at odfl.com> > wrote:
> > 
> >        > > > 
> > >        Hi,
> > > 
> > >         
> > > 
> > >         
> > > 
> > >        Nothing in ST22.  The email and PDF attachment are created and
> > > attached in the function module and sent from the FM….why would the
> > > workflow have a problem with that?
> > > 
> > >         
> > > 
> > >         
> > > 
> > >        From: sap-wug-bounces at mit.edu <mailto:sap-wug-bounces at mit.edu>
> > > [mailto:sap-wug-bounces at mit.edu] On Behalf Of Shai Eyal
> > >        Sent: Wednesday, June 24, 2015 2:52 PM
> > >        To: sap-wug
> > >        Subject: Re: WF Error - Method cannot be executed
> > > 
> > >         
> > > 
> > >         
> > > 
> > >        Hi Sue,
> > > 
> > >         
> > > 
> > >        I'm afraid it means the workflow fails to create the PDF.
> > > 
> > >         
> > > 
> > >        Anything in ST22?
> > > 
> > >         
> > > 
> > >         
> > > 
> > >        Regards,
> > >        Shai Eyal
> > > 
> > >         
> > > 
> > >        SAP Logistics senior consultant
> > >        SAP Workflow & BPM specialist
> > > 
> > >         
> > > 
> > >         
> > > 
> > >         
> > > 
> > >         
> > > 
> > >         
> > > 
> > >        On Wed, Jun 24, 2015 at 9:42 PM, <sap-wug-request at mit.edu
> > > <mailto:sap-wug-request at mit.edu> > wrote:
> > > 
> > >         
> > > 
> > >        > > > > 
> > > >        Send SAP-WUG mailing list submissions to
> > > >                sap-wug at mit.edu <mailto:sap-wug at mit.edu>
> > > > 
> > > >        To subscribe or unsubscribe via the World Wide Web, visit
> > > >                http://mailman.mit.edu/mailman/listinfo/sap-wug
> > > > <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 <mailto:sap-wug-request at mit.edu>
> > > > 
> > > >        You can reach the person managing the list at
> > > >                sap-wug-owner at mit.edu <mailto: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
> > > > <mailto:Sue.Doughty at odfl.com> >
> > > >        Subject: RE: WF Error - Method cannot be executed
> > > >        To: "SAP Workflow Users' Group" <sap-wug at mit.edu
> > > > <mailto:sap-wug at mit.edu> >
> > > >        Cc: Eric Lowe <eric.lowe at odfl.com <mailto:eric.lowe at odfl.com> >
> > > >        Message-ID:
> > > > 
> > > >               <e3b92e92ea6b4acab2a00b6a849a5d9f at DC1-P-M-EXCH01.corp.odfl.com
> > > > <mailto: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 <mailto: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 <mailto: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> <mailto: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>
> > > > <mailto: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
> > > >        <http://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.
> > > > 
> > > >        > > > 
> > >        Sue Doughty
> > >        SAP Workflow Analyst 	 <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
> > >        <http://www.odfl.com>
> > > 
> > >         <http://www.facebook.com/OldDominionFreightLine>
> > > <http://twitter.com/ODFL_Inc>
> > > <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> <mailto: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
> > > > <http://mailman.mit.edu/pipermail/sap-wug/attachments/20150624/28bf758b/attachment.htm>
> > > > 
> > > >        ------------------------------
> > > > 
> > > >        _______________________________________________
> > > >        SAP-WUG mailing list
> > > >        SAP-WUG at mit.edu <mailto:SAP-WUG at mit.edu>
> > > >        http://mailman.mit.edu/mailman/listinfo/sap-wug
> > > > 
> > > > 
> > > >        End of SAP-WUG Digest, Vol 127, Issue 12
> > > >        ****************************************
> > > > 
> > > >         
> > > > 
> > > >        > > > 
> > >         
> > > 
> > > 
> > > 
> > >        ---------------------------------------------
> > > 
> > >        _______________________________________________
> > >        SAP-WUG mailing list
> > >        SAP-WUG at mit.edu <mailto:SAP-WUG at mit.edu>
> > >        http://mailman.mit.edu/mailman/listinfo/sap-wug
> > > 
> > >      > > 
> > 
> >  > 
>      > >      _______________________________________________
> >      SAP-WUG mailing list
> >      SAP-WUG at mit.edu <mailto:SAP-WUG at mit.edu>
> >      http://mailman.mit.edu/mailman/listinfo/sap-wug
> > 
> >  > 

 

> _______________________________________________
>  SAP-WUG mailing list
>  SAP-WUG at mit.edu
>  http://mailman.mit.edu/mailman/listinfo/sap-wug
> 

 
Joerg Schneider
Mobile: +49-176-2333-9687
e-mail: js at flowdocs.de

-- **********
-- This message and any attachment(s) are confidential and may contain
-- privileged information intended only for the use of the individual or
-- company named above. If you are not the intended recipient, please
-- call or email the sender for notification and delete this message and any
-- attachment(s) from your system.
-- **********

flowDOCS Software GmbH
Steiermärker Straße 3 – 5
D–70469 Stuttgart
Telefon (+49) 0711 89 660 446
Telefax (+49) 0711 89 660 447
Email info at flowdocs.de

Geschäftsführer:
Ralf M. Ruthardt
Jörg Schneider

HRB Stuttgart 729211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20150625/bb7d60fc/attachment-0001.htm


More information about the SAP-WUG mailing list