<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#fafafa>
<DIV><FONT face=Arial size=2>Hi Ronen,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>there's no container operation available, to 
concatenate two strings together.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'd suggest to create an instance independent 
object method on BUS2009: .CreateInstance</FONT></DIV>
<DIV><FONT face=Arial size=2>with the parameters (in)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>PurchaseRequisitionNumber&nbsp;&nbsp;&nbsp; TYPE 
eban-banfn</FONT></DIV>
<DIV><FONT face=Arial 
size=2>PurchaseRequisitionItem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
TYPE eban-bnfpo</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and out</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Instance&nbsp;&nbsp; TYPE object 
BUS2009</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>And the coding is something like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>DATA: number&nbsp;&nbsp; TYPE ...</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
item TYPE ... (see above),</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
objkey(20) TYPE C,</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
instance&nbsp;&nbsp; TYPE swc_object.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>swc_get_element container 
'PurchaseRequisitionNumber' number.
<DIV><FONT face=Arial size=2>swc_get_element container 'PurchaseRequisitionItem' 
item.</FONT></DIV>
<DIV>CONCATENATE number item INTO objkey.</DIV>
<DIV>swc_create_object instance 'BUS2009' objkey.</DIV>
<DIV>&nbsp;</DIV>
<DIV>swc_set_object_key self objkey.&nbsp; "Or something like that</DIV>
<DIV>&nbsp;</DIV>
<DIV>swc_set_element container 'Instance' instance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then you can create a dataflow from the task&nbsp;to the method passing the 
two separate numbers,</DIV>
<DIV>and back from method to the task you flow from instance to _WORKINGWI</DIV>
<DIV>That instance then you pass back to the workflow.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thats /roughly/ the coding for that solution.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best wishes,</DIV>
<DIV>Florin</FONT></FONT></DIV></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ronenfox@gmail.com href="mailto:ronenfox@gmail.com">Ronen Fox</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=sap-wug@mit.edu 
  href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, April 06, 2008 7:38 
AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> creating a purchase requisition 
  item (BUS2009) object refferenceinside a workflow</DIV>
  <DIV><BR></DIV>
  <DIV>Hello all,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>A custom WF is built around the following objects:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>BUS2012&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp; Purchase 
  Order</DIV>
  <DIV>BUS2105&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp; Purchase 
  Requisition</DIV>
  <DIV>BUS2009&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp; Purchase 
  Requisition Item</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>The problem is creating the object reference for BUS2009 (req. 
item)</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I have two container elements - one has the requisition number and one 
  has the item number.</DIV>
  <DIV>The key of BUS2009 is the req. no + item no. together.</DIV>
  <DIV>For example, if the req. no is 10000045 and the item no. is 00010, than 
  the key for</DIV>
  <DIV>BUS2009 should be: 1000004500010</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>The way I tried to "build" the key from the two container elements is as 
  follows:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>1. A container element <STRONG>preq_key </STRONG>is defined for BUS2009 
  key</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>2. Container operation to add the req. number:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Result Element&nbsp;&nbsp; 
  preq_key&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; 
  preq_key<BR>Assignment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  =&nbsp;&nbsp;&nbsp;&nbsp; Assign (contents of table are deleted 
  first)<BR>Expression&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &amp;PURCHASEREQ_SINGLE&amp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  PurchaseReq_single</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>3 Container operation to add the item number</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Result Element&nbsp;&nbsp; 
  preq_key&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; 
  preq_key<BR>Assignment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;-&nbsp;&nbsp;&nbsp; Add only to table (contents are 
  extended)<BR>Expression&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &amp;REQ_ITEM_NO&amp;&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; 
  req_item_no</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>The problem is - the item&nbsp;number is not added to the container 
  element, only the&nbsp;req. number.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I would like&nbsp;very much to be able to solve&nbsp;this "inside" 
  the&nbsp;WF builder, without having to implement new methods or attributes in 
  the business object itself.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Your help&nbsp;is much appreciated !</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks &amp; best regards,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Ronen&nbsp;</DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>SAP-WUG mailing 
  list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE></BODY></HTML>