Show TOC Start of Content Area

Function documentation BI_PERSISTENT~FIND_BY_LPOR Method  Locate the document in its SAP Library structure

Use

If you want to convert a persistent saved display of an object into an instance of the corresponding ABAP class, SAP Webflow Engine calls the BI_PERSISTENT~FIND_BY_LPOR method.

Features

The method parameter LPOR is the persistent object reference and is of SIBFLPOR structure type. A reference of BI_PERSISTENT type is returned.

The following table shows the components of the SIBFLPOR structure:

Field

Description

CATID

Describes the object type ( CL for ABAP classes)

TYPEID

ABAP class name

INSTID

Object key. The key is limited to 32 characters.

You can implement this method in several ways. In the case of persistent classes you can create the ABAP object instance using the generated classes. In the case of individual persistence management you have to implement the individual actions (such as creating an instance, performing an existence check, entering public attributes, and so on) manually within the class.

There is an implementation example in the CL_SWF_FORMABSENCdemo class.

Note

Instance management takes place automatically in the case of persistent classes. In the case of individual persistence management you also have to carry out instance management by class. The SAP WebFlow Engine does not provide any instance management. You must therefore implement your own instance management in the case of individual persistence management. The FIND_BY_LPOR method should always return the same instance if the following problems are to be avoided:

·         Inconsistency in the data display

·         Instance data being overwritten by another instance

·         Locking conflicts

 

 

End of Content Area