<br><font size=2 face="sans-serif">Hi there David,</font>
<br>
<br><font size=2 face="sans-serif">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. &nbsp;Below is a sample code of
how to &quot;instantiate a business object&quot; 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.</font>
<br>
<br><font size=2 face="sans-serif">Below is an example of how to do either.</font>
<br>
<br><font size=2 face="sans-serif">Good luck!</font>
<br>
<br><font size=2 face="sans-serif">========================================================</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;begin_method zcreateuserobj changing
container.</font>
<br><font size=2 face="sans-serif">&nbsp;DATA:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;actualprocessor
TYPE wfsyst-act_agent,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;usr01object
TYPE swc_object,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;usr01key
LIKE usr01-bname.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;swc_get_element container 'ActualProcessor'
actualprocessor.</font>
<br><font size=2 face="sans-serif">&nbsp;usr01key = actualprocessor+2(12).</font>
<br><font size=2 face="sans-serif">&nbsp;swc_create_object usr01object
'USR01' usr01key.</font>
<br><font size=2 face="sans-serif">&nbsp;swc_set_element container 'USR01Object'
usr01object.</font>
<br><font size=2 face="sans-serif">&nbsp;end_method.</font>
<br>
<br><font size=2 face="sans-serif">=========================================================</font>
<br>
<br><font size=2 face="sans-serif">GET_PROPERTY ZESSREQUESTOROBJ CHANGING
CONTAINER. &nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font>
<br><font size=2 face="sans-serif">DATA: l_requser LIKE sy-uname, &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; lv_object &nbsp;
&nbsp; &nbsp; &nbsp; TYPE swc_object, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; lv_objkey &nbsp;
&nbsp; &nbsp; &nbsp; LIKE swotobjid-objkey, &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; lv_objtype &nbsp;
&nbsp; &nbsp; &nbsp;LIKE swotobjid-objtype. &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font>
<br>
<br><font size=2 face="sans-serif">*</font>
<br><font size=2 face="sans-serif">* &nbsp;Any logic to define Object Key</font>
<br><font size=2 face="sans-serif">*</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp;lv_objkey = sy-uname. &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">swc_create_object lv_object 'USR01'
lv_objkey. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">*</font>
<br><font size=2 face="sans-serif">* &nbsp;May want to include logic is
object is non-existant here</font>
<br><font size=2 face="sans-serif">* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </font>
<br><font size=2 face="sans-serif">SWC_SET_ELEMENT CONTAINER 'ZESSRequestorObj'
lv_object. &nbsp; </font>
<br><font size=2 face="sans-serif">END_PROPERTY. &nbsp; &nbsp; </font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; <br>
</font>
<table align=center>
<tr>
<td bgcolor=#efefef>
<div align=center><a href=mailto:Joe_Toledo@capgroup.com><font size=1 color=blue face="Arial"><u>Joe
Toledo</u></font></a><font size=1 face="Arial"> | The Capital Group Companies<br>
Location: IRV | Extension: 55417 | Outside: 949-975-5417<br>
E-mail: joat@capgroup.com<br>
[ Mailing: </font><a href="http://maps.yahoo.com/py/maps.py?BFCat=&amp;Pyt=Tmap&amp;newFL=Use+Address+Below&amp;addr=15261+Laguna+Canyon+Rd.&amp;csz=92618&amp;Country=us&amp;Get%A0Map=Get+Map"><font size=1 color=blue face="Arial"><u>15261
Laguna Canyon Rd.</u></font></a><font size=1 face="Arial"> LC1-2B Irvine,
CA 92618 USA ]</font></div></table>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&lt;david.s.dittmer@accenture.com&gt;</b>
</font>
<br>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">01/01/2008 04:54 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&lt;sap-wug@mit.edu&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: Change an existing workflow</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=#000080 face="Arial">Hello,</font>
<br><font size=2 color=#000080 face="Arial">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.</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">Thank you</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">David.</font><font size=2 color=#000080 face="Book Antiqua">
</font>
<div align=center>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b>From:</b> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>ASSY, SOSTHENE<b><br>
Sent:</b> Monday, December 31, 2007 12:56 PM<b><br>
To:</b> SAP Workflow Users' Group<b><br>
Subject:</b> RE: Change an existing workflow</font>
<br><font size=2 face="Book Antiqua">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">If you want to change an existing
workflow, please follow this procedure :</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<ul>
<li><font size=2 color=#000080 face="Arial">In your Dev environment, create
a copy of your existing workflow giving a new name</font>
<li><font size=2 color=#000080 face="Arial">Do your modification</font>
<li><font size=2 color=#000080 face="Arial">Activate it and do your test</font>
<li><font size=2 color=#000080 face="Arial">Desactivate the old one</font>
<li><font size=2 color=#000080 face="Arial">Transport your change request
into production.</font></ul><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">Happy New year </font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<div align=center>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b>From:</b> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>david.s.dittmer@accenture.com<b><br>
Sent:</b> Monday, December 31, 2007 5:26 AM<b><br>
To:</b> sap-wug@mit.edu<b><br>
Subject:</b> Change an existing workflow</font>
<br><font size=2 face="Book Antiqua">&nbsp;</font>
<br><font size=2 face="Arial">Hello workflow gurus, <br>
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 </font><font size=1 color=white face="Book Antiqua">__.____._</font>
<br><font size=2 face="Arial">&nbsp;</font>
<br><font size=2 face="Arial">David.</font>
<br><font size=2 face="Book Antiqua">&nbsp;</font>
<br><font size=2 face="Book Antiqua">&nbsp;</font>
<p><font size=2 face="Arial">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.</font>
<p><font size=1 face="Arial">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.</font><font size=2><tt>_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</tt></font>
<p>