Starting wflow template via a report

Marc Correia Marc.Correia at fonterra.com
Mon Oct 11 20:06:40 EDT 2004


Hi Swami=20
 
>From what I can see, it has something to do with the user that is being u=
sed. Replace your user with WF-BATCH and if that works then its an author=
ization thing.
 
Regards
Marc.
 
-----Original Message-----
From: Swami Bala [mailto:swam_in at hotmail.com]
Sent: Tuesday, 12 October 2004 12:56 p.m.
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Starting wflow template via a report
 
 
Thanks Marc,
 
That is how i could get the error message. My question is, the table you
indicated TASK_LIST
gets filled in or not filled in due to some logic. I could not figure tha=
t
out ( I could not debug that
fmodule since I donot have auth. for system debugging ).
 
Swami Bala
 
>From: Marc Correia <Marc.Correia at fonterra.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Starting wflow template via a report
>Date: Tue, 12 Oct 2004 11:49:28 +1300
>MIME-Version: 1.0
>Received: from mc4-f6.hotmail.com ([65.54.190.142]) by mc4-s11.hotmail.c=
om
>with Microsoft SMTPSVC(5.0.2195.6824); Mon, 11 Oct 2004 15:51:14 -0700
>Received: from cherry.ease.lsoft.com ([209.119.0.109]) by
>mc4-f6.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Mon, 11 Oct 20=
04
>15:51:13 -0700
>Received: from vms.dc.lsoft.com (209.119.0.2) by cherry.ease.lsoft.com
>(LSMTP for Digital Unix v1.1b) with SMTP id
><10.00EAADE4 at cherry.ease.lsoft.com>; Mon, 11 Oct 2004 18:51:03 -0400
>Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release=
 
>1.8e)          with spool id 1016 for SAP-WUG at MITVMA.MIT.EDU; Mon, 11 Oc=
t
>2004          18:49:47 -0400
>Received: from MITVMA (NJE origin SMTP at MITVMA) by MITVMA.MIT.EDU (LMail
>      V1.2d/1.8d) with BSMTP id 4983; Mon, 11 Oct 2004 18:48:39 -0400
>Received: from *unknown [202.50.187.131] by mitvma.mit.edu (IBM VM SMTP
>Level          430) via TCP with ESMTP ; Mon, 11 Oct 2004 18:48:36 EDT
>Received: from hlz1itm3.zeus.ghsewn.com (Not Verified[10.155.34.60]) by
>      hlz1itm2.fonterra.com with NetIQ MailMarshal (v5.5.6.7) id
><B00019555c>; Tue, 12 Oct 2004 11:50:20 +1300
>Received: from hlz1itm7.zeus.ghsewn.com ([10.1.56.125]) by
>hlz1itm3.zeus.ghsewn.com with Microsoft SMTPSVC(5.0.2195.5329); Tue,
>   12 Oct 2004 11:49:31 +1300
>Received: from mail pickup service by hlz1itm7.zeus.ghsewn.com with
>Microsoft          SMTPSVC; Tue, 12 Oct 2004 11:49:29 +1300
>Received: from AKL1ITM2.zeus.ghsewn.com ([10.114.20.60]) by
>hlz1itm7.zeus.ghsewn.com with Microsoft SMTPSVC(5.0.2195.5329); Tue,
>   12 Oct 2004 11:49:29 +1300
>X-Message-Info: A2qyToRgF9Q51MVjdEZauypN8Evrb2OE+6vLVV2hQ/g=3D
>X-Warning: mitvma.mit.edu: Host *unknown claimed to be
>hlz1itm2.fonterra.com
>content-class: urn:content-classes:message
>X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0
>X-MS-Has-Attach:
>X-MS-TNEF-Correlator:
>Thread-Topic: Starting wflow template via a report
>Thread-Index: AcSv41RvdGI2RTnMSq6ADuuuZJUHKAAAQQpQ
>X-OriginalArrivalTime: 11 Oct 2004 22:49:29.0101 (UTC)
>  FILETIME=3D[90DCCBD0:01C4AFE4]
>Approved-By:  Marc Correia <Marc.Correia at FONTERRA.COM>
>Message-ID:
><145D129C6461794FB38960AD57107431014738 at AKL1ITM2.zeus.ghsewn.com>
>Precedence: list
>Return-Path: owner-sap-wug at MITVMA.MIT.EDU
>
>Hi Swami
>
>Run the function in test mode and debug it. That should tell you where t=
he
>problem is occurring. This error is being set in function
>RH_TASK_START_CHECK and this is the piece of code failing.
>READ TABLE TASK_LIST WITH KEY OTYPE =3D TASK_KEY-OTYPE
>                                 OBJID =3D TASK_KEY-OBJID
>                        BINARY SEARCH
>                        TRANSPORTING NO FIELDS.
>   IF SY-SUBRC > 0.
>     RAISE USER_CANNOT_START_TASK.
>   ENDIF.
>
>Happy Hunting.
>Marc.
>
>-----Original Message-----
>From: Parag Joshi [mailto:parag_parag at yahoo.com]
>Sent: Tuesday, 12 October 2004 11:40 a.m.
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Starting wflow template via a report
>
>
>Sorry, the import flag CALLED_IN_BACKGROUND is in
>SWW_WI_START. Not in the FMs you mentioned. These FMs
>call SWW_WI_Start with the flag set. Need to dig more.
>
>--- Swami Bala <swam_in at hotmail.com> wrote:
>
> > Hello,
> >
> > I am trying to trigger workflow template using
> > standard fmodule like
> > SAP_WAPI_START_WORKFLOW & other fmodule like
> > SWU_START_WORKFLOW. Though I
> > donot have any problem triggering wflow template
> > using SWU_START_WORKFLOW, I
> > get an error message 'User cannot start task' when i
> > tried to use the wapi
> > function module. I have passed all the mandatory
> > parameters and I have all
> > authorization. I could not figure out the rationale
> > behind the
> > wapi function module in erroring out. Is it the one
> > should I use or there is
> > something I am missing here ?
> >
> > Thanks
> >
> > Swami Bala
> >
>-----------------------------------------------------------------------
>This email contains confidential information. If you have received this
>email in error, please delete it immediately, and inform us of the mista=
ke
>by return email. Any form of reproduction, or further dissemination of
>this email is strictly prohibited.
>Also, note that the opinions expressed in this email are those of the
>author and are not necessarily those of the Fonterra Co-operative Group
>Limited.
>http://www.fonterra.com/
>-----------------------------------------------------------------------
-----------------------------------------------------------------------
This email contains confidential information. If you have received this
email in error, please delete it immediately, and inform us of the mistak=
e
by return email. Any form of reproduction, or further dissemination of
this email is strictly prohibited.
Also, note that the opinions expressed in this email are those of the=20
author and are not necessarily those of the Fonterra Co-operative Group
Limited.
http://www.fonterra.com/
-----------------------------------------------------------------------
 


More information about the SAP-WUG mailing list