ARTIClE
Transaction Service
This example demonstrates the execution of an object-oriented
transaction.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
In this example, a transaction is executed in the object-oriented
session. To do this, the parameter I_EXTERNAL_COMMIT of the
system service INIT_AND_SET_MODES method in the static
constructor is set to OSCON_FALSE . After the creation of a
transaction manager and a transaction (which is also the
top level
transaction ), they are started with START and ended with
END . During the transaction, the attributes DEPTIME and
ARRTIME , of the CL_SPFLI_PERSISTENT class object created
in the persistent service example , are
changed. Calling the END
method implicitly starts a COMMIT WORK and writes the changes
to the database in the asynchronous update mode. The handle
method of the local class th reacts to the end of the transaction
and analyses its status.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved