<!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> </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> </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> </DIV>
<DIV><FONT face=Arial size=2>PurchaseRequisitionNumber    TYPE 
eban-banfn</FONT></DIV>
<DIV><FONT face=Arial 
size=2>PurchaseRequisitionItem         
TYPE eban-bnfpo</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and out</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Instance   TYPE object 
BUS2009</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And the coding is something like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>DATA: number   TYPE ...</FONT></DIV>
<DIV><FONT face=Arial size=2>         
item TYPE ... (see above),</FONT></DIV>
<DIV><FONT face=Arial size=2>        
objkey(20) TYPE C,</FONT></DIV>
<DIV><FONT face=Arial size=2>        
instance   TYPE swc_object.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV>swc_set_object_key self objkey.  "Or something like that</DIV>
<DIV> </DIV>
<DIV>swc_set_element container 'Instance' instance.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Then you can create a dataflow from the task 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> </DIV>
<DIV>Thats /roughly/ the coding for that solution.</DIV>
<DIV> </DIV>
<DIV>Best wishes,</DIV>
<DIV>Florin</FONT></FONT></DIV></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
  <DIV>A custom WF is built around the following objects:</DIV>
  <DIV> </DIV>
  <DIV>BUS2012     -     Purchase 
  Order</DIV>
  <DIV>BUS2105     -     Purchase 
  Requisition</DIV>
  <DIV>BUS2009     -     Purchase 
  Requisition Item</DIV>
  <DIV> </DIV>
  <DIV>The problem is creating the object reference for BUS2009 (req. 
item)</DIV>
  <DIV> </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> </DIV>
  <DIV>The way I tried to "build" the key from the two container elements is as 
  follows:</DIV>
  <DIV> </DIV>
  <DIV>1. A container element <STRONG>preq_key </STRONG>is defined for BUS2009 
  key</DIV>
  <DIV> </DIV>
  <DIV>2. Container operation to add the req. number:</DIV>
  <DIV> </DIV>
  <DIV>Result Element   
  preq_key                           
  preq_key<BR>Assignment       
  =     Assign (contents of table are deleted 
  first)<BR>Expression       
  &PURCHASEREQ_SINGLE&                      
  PurchaseReq_single</DIV>
  <DIV> </DIV>
  <DIV>3 Container operation to add the item number</DIV>
  <DIV> </DIV>
  <DIV>Result Element   
  preq_key                           
  preq_key<BR>Assignment       
  <-    Add only to table (contents are 
  extended)<BR>Expression       
  &REQ_ITEM_NO&                             
  req_item_no</DIV>
  <DIV> </DIV>
  <DIV> </DIV>
  <DIV>The problem is - the item number is not added to the container 
  element, only the req. number.</DIV>
  <DIV> </DIV>
  <DIV>I would like very much to be able to solve this "inside" 
  the WF builder, without having to implement new methods or attributes in 
  the business object itself.</DIV>
  <DIV> </DIV>
  <DIV> </DIV>
  <DIV>Your help is much appreciated !</DIV>
  <DIV> </DIV>
  <DIV> </DIV>
  <DIV>Thanks & best regards,</DIV>
  <DIV> </DIV>
  <DIV>Ronen </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>