<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=415391108-11012007><FONT face=Arial
color=#0000ff size=2>The difference is between the runtime object and the
persistent object.</FONT></SPAN></DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff size=2>An
object which can be stored in a database table can be made persistent, i.e.
stored in the database. Most of the object types are of this type, but e.g. the
example which you can find on the Internet with an object type for calculation
of deadlines is an example of an object type which can not be made
persistent.</FONT></SPAN></DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff size=2>When
you create an object you get a reference to the runtime object. In workflow
containers objects can only be stored in their persistent form, because the
reference to the runtime object is essentially just a memory location. Your
runtime object is in this respect not different from any other type of object,
e.g. an instance of an ABAP Objects class. As soon as your user context is lost
(e.g. when a work item has been completed) runtime references are
invalidated.</FONT></SPAN></DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff size=2>The
runtime object identifier (see structure SWOTRTIME field OBJECT) is thus merely
an identifier which is fairly random. The same object instantiated today and
tomorrow will not have the same identifier (if it does it is a freaky accident
and you should buy a lottery ticket). You can pass the reference to e.g. a
function module, but it makes no sense storing it in a database
table.</FONT></SPAN></DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff size=2>The
persistent object identifier (see structure SWOTOBJID, or SWOTRTIME fields
OBJTYPE and OBJKEY) consists of the object type and object key. The persistent
object identifier is as the name says persistent, so for one object it is always
the same. That is why you use this to store the object reference in workflow
containers and other database tables so you can access the same object tomorrow
or next month.</FONT></SPAN></DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=415391108-11012007><FONT face=Arial color=#0000ff size=2>Hope
that helps.</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV align=left><FONT face=Arial size=2>-- </FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Kjetil Kilhavn, Statoil OFT GBS
BAS DEV SAP</FONT></DIV></FONT></DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>yves.lebacq@skynet.be<BR><B>Sent:</B> Thursday, January 11, 2007 8:59
AM<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> Persistent object :
POR<BR></FONT><BR></DIV>
<DIV></DIV>Is there someone to explain what is the persistant object ?<BR>I
read my courses, but did not found a clear explanation.<BR>What is the
difference between a POR object and not POR object
?<BR> <BR> <BR> <BR>Sorry for this obvious question, I have so
many to learn.<BR> <BR>With kind
regards.<BR><BR><BR></BLOCKQUOTE><p></p><p><font size=1>-------------------------------------------------------------------<br>The information contained in this message may be CONFIDENTIAL and is<br>intended for the addressee only. Any unauthorised use, dissemination of the<br>information or copying of this message is prohibited. If you are not the<br>addressee, please notify the sender immediately by return e-mail and delete<br>this message.<br>Thank you.</font size></BODY></HTML>