Purchase Requisition BUS2105

Kjetil Kilhavn KJETILK at statoil.com
Mon Oct 24 02:57:01 EDT 2005


That should be "easy". If the first release code always is the same you can check the release code, otherwise you must code your own function to determine if the workflow has been executed before for the same document. If it has, you must check if the release code for which it is now being started/executed is the first release code in the sequence. The latter is necessary to allow a new release to be triggered by significant changes.
-- 
Kjetil Kilhavn, Statoil ØFT KTJ ITS BKS SAP Basis
I appreciate it if you delete Statoil's (and other) company disclaimers when you reply to this message, since that helps the readability.



-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Ananth
Sent: 23. oktober 2005 18:28
To: SAP Workflow Users' Group
Subject: Re: Purchase Requisition BUS2105

Hi Jeff,

Thanks for the reply.
I am sending a mail by calling the SO_NEW_DOCUMENT_SEND_API1 function module. I have created a custom method, in which I get all the relevant release codes from the T16FS table based on Release strategy and based on the release codes, I get all the users from T16FW table and send an notification mail , who will involved in releasing the purchase requisition.

The problem is that, when there are 3 release codes to release the requisition, the workflow is executed thrice ( this is also mentioned in the SAP help, whenever there is a change in Release Code, workflow is triggered each time) , since the custom task is at the beginning, just before the requisition is to be released, this task is executed thrice for 3 release codes for the same requisition, which I dont want. This should be executed only the 1st time.

Can you pls give me a pointer how to solve this problem.

Thanks,
Ananth




On 10/23/05, Jeff Rappaport <Jeff at business-workflow.com> wrote:
> Ananth,
>
>    You're reinventing the wheel twice over, if you want to use a WF 
> Step to send an email, use BO Method SELFITEM.SENDTASKDESCRIPTION. If 
> you want the easier way, just use Pgm. RSWUWFML or RSWUWFML2 (depending on your system).
>
> Jeffrey A. Rappaport
> Business Workflow, LLC
> Voice: (732) 355-0123
> Fax:    (509) 757-4144
> Email: Jeff at Business-Workflow.com
> Web:  www.Business-Workflow.com
>
> ----- Original Message -----
> From: Ananth
> To: sap-wug at mitvma.mit.edu
> Sent: Sunday, October 23, 2005 2:02 AM
> Subject: Purchase Requisition BUS2105
>
> Hi All,
>
> I am using BUS2105 business object for releasing Purchase requisitions 
> based on release strategies in SAP 5.0 version.
>
> The standard workflow template is WS20000077. The requirement is, 
> there is a need to send notification mail to the person/persons who 
> are supposed to release the Purchase Requistions.
>
> When there are 2 levels of release, the notification mail is sent to 
> only the 1st person. I have created a new task in the custome template 
> just before 'Overall release of Pur Req'  task,  to get the userid 
> based on the release code and call the function module 
> 'SO_NEW_DOCUMENT_SEND_API1' to send the notification mail.
>
> After the 1st person releases the Purchase Req, then the workitem is 
> sent to the 2nd person, to release, but the notification mail is not 
> being sent to that person. Can someone pls let me know how the 
> notification mail can be sent to the 2nd person.
>
>
> Thanks in advance,
> Ananth


-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.



More information about the SAP-WUG mailing list