Entering content frame

Object documentation Business Collection Locate the document in its SAP Library structure

Definition

A business collection acts as a container for a set of business object records.

Use

Structure

Objects can be added, retrieved, deleted or enumerated from the collection. However, business objects in general are not instantiated. It is only possible to instantiate them out of the data contained within the business collection.

It has a BDoc (Business Document) record-set, which contains data that is read by the Business Collection. Each item in the Business Collection corresponds to a row of data in the record-set. The record-set is built via a Read BDoc, which is stored in the BDoc Repository and specifies the potential range of business objects that can be loaded. The Read BDoc of the collection retrieves attribute values of the business objects (without creating the objects) and displays them in a user interface grid object via Data Binding. The BDoc can also fetch data that does not directly belong to a business object.

Depending on the parameters passed in the BDoc, data is loaded from the User Database into the record-set. If the Business Object is created, the Business Collection will directly expose data from Business Object instead of the data held by the Business Collection.

Note

For optimization reasons the Business Objects are not created when the collection is created; they are created only on demand. The Business Collection has methods that allow you to manipulate the Business Objects it holds. You can:

 

Integration

Getting a filled Business Collection

You can get a filled Business Collection by:

Leaving content frame