Change an existing workflow

Joe_Toledo@capgroup.com Joe_Toledo at capgroup.com
Wed Jan 2 15:53:21 EST 2008


Hi there David,

If the BOR you are trying to include in your WF is not one of the existing 
defined BORs in your WF, you will need to create logic to instantiate it. 
Below is a sample code of how to "instantiate a business object" and 
assign it to a WF container element, which is being called from a method 
or from an attribute of an existing BOR available in the WF.

Below is an example of how to do either.

Good luck!

========================================================

 begin_method zcreateuserobj changing container.
 DATA:
       actualprocessor TYPE wfsyst-act_agent,
       usr01object TYPE swc_object,
       usr01key LIKE usr01-bname.

 swc_get_element container 'ActualProcessor' actualprocessor.
 usr01key = actualprocessor+2(12).
 swc_create_object usr01object 'USR01' usr01key.
 swc_set_element container 'USR01Object' usr01object.
 end_method.

=========================================================

GET_PROPERTY ZESSREQUESTOROBJ CHANGING CONTAINER. 
 
DATA: l_requser LIKE sy-uname, 
      lv_object         TYPE swc_object, 
      lv_objkey         LIKE swotobjid-objkey, 
      lv_objtype        LIKE swotobjid-objtype. 

*
*  Any logic to define Object Key
*
 
 
 lv_objkey = sy-uname. 
 
swc_create_object lv_object 'USR01' lv_objkey. 

*
*  May want to include logic is object is non-existant here
* 
 
SWC_SET_ELEMENT CONTAINER 'ZESSRequestorObj' lv_object. 
END_PROPERTY. 

 

Joe Toledo | The Capital Group Companies
Location: IRV | Extension: 55417 | Outside: 949-975-5417
E-mail: joat at capgroup.com
[ Mailing: 15261 Laguna Canyon Rd. LC1-2B Irvine, CA 92618 USA ]




<david.s.dittmer at accenture.com> 

Sent by: sap-wug-bounces at mit.edu
01/01/2008 04:54 PM
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>


To
<sap-wug at mit.edu>
cc

Subject
RE: Change an existing workflow






Hello,
All this has been done but the issue is that a new business object is not 
being read by the workflow. From reading this website it is called the 
instantiation of the new business object. Please advise how is the best 
way to do this.
 
Thank you
 
David. 

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf 
Of ASSY, SOSTHENE
Sent: Monday, December 31, 2007 12:56 PM
To: SAP Workflow Users' Group
Subject: RE: Change an existing workflow
 
If you want to change an existing workflow, please follow this procedure :
 
In your Dev environment, create a copy of your existing workflow giving a 
new name
Do your modification
Activate it and do your test
Desactivate the old one
Transport your change request into production.
 
 
 
Happy New year 
 

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf 
Of david.s.dittmer at accenture.com
Sent: Monday, December 31, 2007 5:26 AM
To: sap-wug at mit.edu
Subject: Change an existing workflow
 
Hello workflow gurus, 
I am new to workflow and have been asked to change an existing workflow by 
adding a condition. This condition requires a TRUE/FALSE decision to be 
made on the basis of new business object. Please advise if it is necessary 
to instantiate this new business object using business object SYSTEM or 
can one just reference the new business object in the workflow container 
as an import. I have researched some SAP designed workflows and they 
follow the approach of adding a new business object to the workflow 
container as an import but I need confirmation. Thanks __.____._
 
David.
 
 
This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you have 
received it in error, please notify the sender immediately and delete the 
original. Any other use of the email by you is prohibited.
This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you have 
received it in error, please notify the sender immediately and delete the 
original. Any other use of the email by you is prohibited.
_______________________________________________
SAP-WUG mailing list
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/20080102/dc02e77b/attachment.htm


More information about the SAP-WUG mailing list