Starting wflow template via a report

Ram E ramwf2004 at yahoo.com
Tue Oct 12 16:02:45 EDT 2004


Hi Swami,
 
Try it by assigning an agent or by classifying the template as a general task.
 
 
Regards,
Ram.
 
 
 
Marc Correia <Marc.Correia at fonterra.com> wrote:
Hi Swami
 
>From what I can see, it has something to do with the user that is being used. Replace your user with WF-BATCH and if that works then its an authorization 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 that
out ( I could not debug that
fmodule since I donot have auth. for system debugging ).
 
Swami Bala
 
>From: Marc Correia
>Reply-To: SAP Workflow Users' Group
>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.com
>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 2004
>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 Oct
>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
>; 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=
>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=[90DCCBD0:01C4AFE4]
>Approved-By: Marc Correia
>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 the
>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 = TASK_KEY-OTYPE
> OBJID = 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 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 mistake
>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 mistake
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/
-----------------------------------------------------------------------
 
 
---------------------------------
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
 


More information about the SAP-WUG mailing list