public enum CommitStrategy extends Enum<CommitStrategy>
The strategy how the commitment of created, updated or deleted records is conducted after the execution of an
AbstractRemoteFunctionRequest in the remote system.
For instance, after the invocation of a BAPI using
BapiRequest it may be required to invoke
BAPI_TRANSACTION_COMMIT in order to trigger the commitment in the remote system. This strategy decides if
BAPI_TRANSACTION_COMMIT is invoked and if so, whether its processing is executed synchronously or asynchronously.
|Enum Constant and Description|
The commitment in the remote system is triggered asynchronously.
The commitment in the remote system is triggered synchronously.
No commitment is triggered in the remote system.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final CommitStrategy NO_COMMIT
public static final CommitStrategy COMMIT_SYNC
AbstractRemoteFunctionRequest#execute()returns after the commitment is finished in the remote system. If the commitment in the remote system failed, the method
public static final CommitStrategy COMMIT_ASYNC
AbstractRemoteFunctionRequest#execute()invokes the commitment in the remote system, but does not wait for its processing. Consequently, there is no means to find out if the commitment in the remote system was successful.
public static CommitStrategy values()
for (CommitStrategy c : CommitStrategy.values()) System.out.println(c);
public static CommitStrategy valueOf(String name)
Copyright © 2019 SAP SE. All rights reserved.