Beruflich Dokumente
Kultur Dokumente
Tips: If you debug program (that modify database) in an exclusive mode, database changes are only
commited if explicitly triggered from the debugger (Edit > Database > Commit).
All database changes can be rolled back explicitly from debugger (Edit > Database > Rollback).
In ABAP, there are Open SQL commands and Native SQL commands for making DB changes. The Open
SQL set of commands only comprises operations for Data Manipulation Language (DML).
Figure 2: Target Quantity and Return Values
If the addition CLIENT SPECIFIED is not specified and the database table contains client dependant data,
the records of the current execution client are accessed. The corresponding WHERE clause is
automatically added by database interface.
To process data from other client, you must specife CLIENT SPECIFIED in the Open SQL and the
respective client in the appropriate WHERE.
CAUTION: If an Open SQL command contains the addition CLIENT SPECIFIED without a client
specification, the datasets of all clients are accessed.
Open SQL: Syntax
INSERT, UPDATE, DELETE, and MODIFY may be used to change the content of database tables.
INSERT <dbtab> [CLIENT SPECIFIED] FROM TABLE <itab> [ACCEPTING DUPLICATE KEYS].
<dbtab>: database table
<itab>: internal table with the same line structure as <dbtab>.
The client field that may possibly exist in the <itab> will only be taken into consideration if the CLIENT
SPECIFIED addition is specified.
MODIFY can also be carried out on views. View's maintenance status must be "read and change" and
must view contains only fields from a table.