SAP CLIENT DEPENDENT SCRTY
Get Example source ABAP code based on a different SAP table
ARTICLE
Cross-Client Database Access
Each
Cross-client access to database tables is permitted only in
Note
See also the programming guidelines for
Example
The following program section permits a user to access customer data in any client. This should be avoided at all costs. DATA client TYPE sy-mandt.
client = sy-mandt.
cl_demo_input=>request( CHANGING field = client ).
DATA customers TYPE TABLE OF scustom.
SELECT *
FROM scustom CLIENT SPECIFIED
INTO TABLE customers
WHERE mandt = client.
cl_demo_output=>display( customers ).