Persistent object : POR

Kjetil Kilhavn KJETILK at statoil.com
Thu Jan 11 03:22:47 EST 2007


The difference is between the runtime object and the persistent object.
 
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.
 
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.
 
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.
 
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.
 
Hope that helps.
-- 
Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
 


________________________________

	From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]
On Behalf Of yves.lebacq at skynet.be
	Sent: Thursday, January 11, 2007 8:59 AM
	To: sap-wug at mit.edu
	Subject: Persistent object : POR
	
	
	Is there someone to explain what is the persistant object ?
	I read my courses, but did not found a clear explanation.
	What is the difference between a POR object and not POR object ?
	 
	 
	 
	Sorry for this obvious question, I have so many to learn.
	 
	With kind regards.
	
	
	



-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070111/0c447b13/attachment.htm


More information about the SAP-WUG mailing list