Wir wachsen stetig und suchen neue Kollegen (m/w/d)! Schauen Sie sich unsere offenen Position an, um eine passende Herausforderung zu finden!
... ${ USING CLIENT clnt $} $| ${ CLIENT SPECIFIED $}
$| ${ USING ${ CLIENT clnt $}
$| ${ CLIENTS IN @client_range_tab $}
$| ${ CLIENTS IN T000 $}
$| ${ ALL CLIENTS $} $} ...
1. ... ${USING CLIENT clnt$}$|${CLIENT SPECIFIED$}
2. ... ${USING CLIENT clnt$}$|${USING $[ALL$] CLIENTS $[IN$]$}
These additions modify client handling of the write statements INSERT, UPDATE, MODIFY, and DELETE. They can be specified optionally after the target target in each of these statements. If none of these additions are specified, default client handling applies:
The two variants of the optional additions are specific for these two cases:
... ${USING CLIENT clnt$}$|${CLIENT SPECIFIED$}
1. ... USING CLIENT clnt
2. ... CLIENT SPECIFIED
These two additions modify implicit client handling of a modifying statement in cases where its source is specified as a work area wa, internal table itab, or subquery subquery_clauses after FROM.
The following two INSERT statements have the same effect. The first statement uses the addition USING CLIENT and hence shows the recommended variant for specifying the client to be inserted explicitly. The second statement, on the other hand, uses CLIENT SPECIFIED and must hence fill the client field with the required value in the work area passed.
Modification of a row in a different client. The first UPDATE statement shows the recommended method with the addition USING CLIENT. The second UPDATE statement, on the other hand, uses CLIENT SPECIFIED and the client field of the work area must be filled.
See INSERT, CLIENT
... USING CLIENT clnt
This addition modifies implicit client handling in so that the client ID from clnt is used instead of the current client ID. The ABAP runtime framework replaces the client specified in source with the client specified in clnt and passes it to the database system.
clnt expects a data object of the type c with length 3 and containing a client ID. A literal or a host variable can be specified.
The following rules apply to the addition USING:
The following MODIFY statement uses the addition USING CLIENT, as recommended, to access a specific client.
The addition USING CLIENT after INSERT fills two columns of a DDIC database table with three rows for the client 100. Afterwards, these rows are copied to the current client in a
subquery by specifying USING CLIENT.
... CLIENT SPECIFIED
The addition CLIENT SPECIFIED specifies that the client ID in the client column in the source source specified after FROM is used and not the ID of the current client.
The following rules apply to the addition CLIENT SPECIFIED:
This example implements a client copy of all data in a table to multiple clients. The addition CLIENT
SPECIFIED of the statement INSERT
ensures that the client IDs of the internal table used as a data source are not overwritten by the current
client. The internal table is created in a host variable by copying the data of the current client read
previously from SCARR is copied to multiple different client IDs. Duplicate entries are avoided by first
using the addition USING CLIENTS IN to delete all data of the area in question. After the insertion, all data of this area is read and displayed.
... ${USING CLIENT clnt$}$|${USING $[ALL$] CLIENTS $[IN$]$}
1. ... USING CLIENT clnt
2. ... USING CLIENTS IN @client_range_tab
3. ... USING CLIENTS IN T000
4. ... USING ALL CLIENTS
These additions modify implicit client handling of a modifying statement UPDATE SET or DELETE FROM in which a WHERE condition can be specified.
Instead of USING, the addition CLIENT
SPECIFIED can also be specified outside strict mode from Release . This is, however, obsolete here. The additions shown here should be used instead.
... USING CLIENT clnt
This addition modifies implicit client handling in so that the client ID from clnt is used instead of the current client ID. In the implicit WHERE condition, the ABAP runtime framework replaces the current client ID by the ID specified in clnt.
clnt expects a data object of the type c with length 3 and containing a client ID. A literal or a host variable can be specified.
The following rules apply to the addition USING:
Statements DELETE FROM with the addition USING CLIENT. The first statement deletes rows
from the client 100 with a specific ID.
The second statement deletes all rows of the client 100.
... USING CLIENTS IN @client_range_tab
... USING CLIENTS IN T000
... USING ALL CLIENTS
These additions switch implicit client handling so that the data of all clients specified by the addition is modified and not just the data from the current client. The additions modify the implicit WHERE condition for the client column passed to the database.
The same rules apply to the additions as to the identically named additions USING $[ALL$] CLIENTS $[IN$] in queries.
See UPDATE, USING CLIENT, CLIENTS
Wir bieten ganzheitliche SAP-Lösungen aus einer Hand, um den digitalen Wandel zu gestalten und neue Geschäftsfelder zu erschließen.
Schweiz
Schaffhausen
Deutschland
Mannheim, Düsseldorf, München
USA
Haverhill
Griechenland
Thessaloniki