ta is not initial, an appropriate message appears in the status bar.
The LEAVE TO TRANSACTION statement always terminates the
current call sequence, regardless of whether or not a new transaction
can be called.
Contrary to the statement CALL
TRANSACTION , the authorization of the current user for executing
the called transaction is always automatically checked by the
authorization object S_TCODE
(and the authorization object specified in the definition of the
transaction code (transaction SE93 ) when using
the statement LEAVE TO TRANSACTION . If the required authorization
is missing, a message with
message type A (
termination message ) is triggered
and the system responds appropriately.
Latest notes: The CURRENT TRANSACTION call can be used to execute
a current parameter transaction or variant transaction with the
corresponding parameters or the transaction variant. Alternatively, the
method GET_CURRENT_TRANSACTION of the class CL_DYNPRO can
be used to obtain the transaction code of the current transaction. This
method returns the transaction code during a parameter transaction or
variant transaction instead of the transaction code of the implicitly
called dialog transaction.
LEAVE TO TRANSACTION does not end the current
database LUW . A
database commit or
database rollback in the
called program works in exactly the same way as in the current program.
If procedures are still registered at LEAVE TO TRANSACTION in
the current SAP LUW , the SAP LUW is
ended and the procedures are not called or rolled back. Registered
update function modules remain
in the database, but can no longer be executed. In a case like this,
therefore, it is advisable to execute the statement
COMMIT WORK or ROLLBACK WORK
explicitly before the program call.
Specifying a transaction in a variable data object ta is one of
the dynamic programming techniques.
See Dynamic Calls .
ABAP_ADDITION ... AND SKIP FIRST SCREEN
What does it do? The addition AND SKIP FIRST SCREEN has the same
meaning as with CALL TRANSACTION .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved