Object Reference: Business Object 

Description

Local instance of an SAP business object in the R/3 System.

When you create a local instance of a business object, it automatically adapts to the interface of the SAP business object it represents. The interfaces of business objects are thus only known at runtime.

For information on the object types available in the R/3 System, look in the Business Object Repository (BOR).

All properties are currently read-only. Properties can only be set by the Set method (when implemented).

Since all object types support the so-called IFSAP interface, there is a minimal set of properties and methods available for each object type.

Properties

Business objects have at least the following property:

Read-only. Returns the meta-object (object type description) from the business object. This is an object of type TOJTB which contains the type information.

Methods

Business objects have at least the following methods:

Displays the business object.

If the method has been implemented for the object type you are looking at, it usually (but not always) calls a transaction which displays the object on a SAPgui screen. This may or may not be useful for your client program.

If the method has not been implemented for the object type you are looking at, the default implementation is inherited from the IFSAP interface. This default implementation returns the key from the object, which may also not be very helpful.

Before using the Display method on a business object, check its implementation for the object type which is of interest to you.

Checks the existence of the object in the R/3 database.

Here again, you should check the implementation. Some return nothing, some return a boolean, some raise an exception which must be handled in the client program.

For a skeleton of an application written in Visual Basic with several property and method calls, see Example Applications.