<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Problems with USING ALL CLIENTS in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaa-p/14376776#M4940557</link>
    <description>Just stumbled upon this. Did you find a solution by yourself?</description>
    <pubDate>Fri, 17 Apr 2026 09:18:42 GMT</pubDate>
    <dc:creator>Kevin_Holtkamp</dc:creator>
    <dc:date>2026-04-17T09:18:42Z</dc:date>
    <item>
      <title>Problems with USING ALL CLIENTS</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaq-p/14055765</link>
      <description>&lt;P&gt;Dear SAP-Community&lt;/P&gt;&lt;P&gt;I have an abap-sql, that selects data on two clients (100 and 700). Some data is in client 100 and some other in client 700.&lt;BR /&gt;With the old known CLIENT SPECIFIED a SELECT with CLIENT is possible.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The following code functions, but returns a warning saying I should use USING ALL CLIENTS instead of client specified:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;lv_mandt_100&amp;nbsp;=&amp;nbsp;'100'.&lt;BR /&gt;lv_mandt_700&amp;nbsp;=&amp;nbsp;'700'.&lt;BR /&gt;&lt;BR /&gt;SELECT&lt;BR /&gt;FROM&amp;nbsp;ekko&amp;nbsp;AS&amp;nbsp;ekko_100&lt;BR /&gt;LEFT&amp;nbsp;OUTER&amp;nbsp;JOIN&amp;nbsp;t024&amp;nbsp;AS&amp;nbsp;t024_100&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t024_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t024_100~ekgrp&amp;nbsp;=&amp;nbsp;ekko_100~ekgrp&lt;BR /&gt;LEFT&amp;nbsp;OUTER&amp;nbsp;JOIN&amp;nbsp;ekko&amp;nbsp;AS&amp;nbsp;ekko_700&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_700~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_700&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~externalreferenceid&amp;nbsp;=&amp;nbsp;ekko_700~ebeln&lt;BR /&gt;&amp;nbsp;&amp;nbsp;LEFT&amp;nbsp;OUTER&amp;nbsp;JOIN&amp;nbsp;ekpo&amp;nbsp;AS&amp;nbsp;ekpo_100&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekpo_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~ebeln&amp;nbsp;=&amp;nbsp;ekpo_100~ebeln&lt;BR /&gt;&amp;nbsp; CLIENT&amp;nbsp;SPECIFIED&lt;BR /&gt;FIELDS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~ebeln&amp;nbsp;AS&amp;nbsp;ebeln_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~ekgrp&amp;nbsp;AS&amp;nbsp;ekgrp_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;t024_100~eknam&amp;nbsp;AS&amp;nbsp;eknam_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_700~ebeln&amp;nbsp;AS&amp;nbsp;ebeln_700,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~ebelp&amp;nbsp;AS&amp;nbsp;ebelp_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~konnr&amp;nbsp;AS&amp;nbsp;ekpo_100_konnr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~txz01&amp;nbsp;AS&amp;nbsp;ekpo_100_txz01&lt;BR /&gt;WHERE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~mandt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&lt;BR /&gt;ORDER&amp;nbsp;BY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~ebeln,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~ebelp&lt;BR /&gt;INTO&amp;nbsp;TABLE&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(mt_output)&lt;BR /&gt;BYPASSING&amp;nbsp;BUFFER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I replace the CLIENT SPECIFIED with USING ALL CLIENTS I get an error, that I am not allowed to use field "MANDT" in an ON-constraint.&lt;/P&gt;&lt;P&gt;lv_mandt_100&amp;nbsp;=&amp;nbsp;'100'.&lt;BR /&gt;lv_mandt_700&amp;nbsp;=&amp;nbsp;'700'.&lt;BR /&gt;&lt;BR /&gt;SELECT&lt;BR /&gt;FROM&amp;nbsp;ekko&amp;nbsp;AS&amp;nbsp;ekko_100&lt;BR /&gt;LEFT&amp;nbsp;OUTER&amp;nbsp;JOIN&amp;nbsp;t024&amp;nbsp;AS&amp;nbsp;t024_100&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t024_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t024_100~ekgrp&amp;nbsp;=&amp;nbsp;ekko_100~ekgrp&lt;BR /&gt;LEFT&amp;nbsp;OUTER&amp;nbsp;JOIN&amp;nbsp;ekko&amp;nbsp;AS&amp;nbsp;ekko_700&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_700~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_700&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~externalreferenceid&amp;nbsp;=&amp;nbsp;ekko_700~ebeln&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;LEFT&amp;nbsp;OUTER&amp;nbsp;JOIN&amp;nbsp;ekpo&amp;nbsp;AS&amp;nbsp;ekpo_100&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekpo_100~mandt&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&amp;nbsp;AND&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ekko_100~ebeln&amp;nbsp;=&amp;nbsp;ekpo_100~ebeln&lt;BR /&gt;&amp;nbsp; USING ALL CLIENTS "&amp;lt;- instead of CLIENT SPECIFIED belongig to the warning&lt;BR /&gt;FIELDS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~ebeln&amp;nbsp;AS&amp;nbsp;ebeln_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~ekgrp&amp;nbsp;AS&amp;nbsp;ekgrp_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;t024_100~eknam&amp;nbsp;AS&amp;nbsp;eknam_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_700~ebeln&amp;nbsp;AS&amp;nbsp;ebeln_700,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~ebelp&amp;nbsp;AS&amp;nbsp;ebelp_100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~konnr&amp;nbsp;AS&amp;nbsp;ekpo_100_konnr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~txz01&amp;nbsp;AS&amp;nbsp;ekpo_100_txz01&lt;BR /&gt;WHERE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~mandt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1419942"&gt;@LV&lt;/a&gt;_mandt_100&lt;BR /&gt;ORDER&amp;nbsp;BY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekko_100~ebeln,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ekpo_100~ebelp&lt;BR /&gt;INTO&amp;nbsp;TABLE&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(mt_output)&lt;BR /&gt;BYPASSING&amp;nbsp;BUFFER.&lt;/P&gt;&lt;P&gt;Documentation for USING ALL CLIENTS is here:&amp;nbsp;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapselect_client.htm" target="_blank" rel="noopener"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapselect_client.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Belongig the documentation it's not possible to use USING ALL CLIENTS for a single join. But in the above code I use it for the whole FROM/JOIN.&lt;BR /&gt;&lt;BR /&gt;So, my question is, how should I change the abap code to use USING ALL CLIENTS instead of CLIENT SPECIFIED?&lt;BR /&gt;&lt;BR /&gt;And my other question is, if I use the CLIENT SPECIFIED, will the code in future not function anymore?&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Lorenzo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 10:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaq-p/14055765</guid>
      <dc:creator>lorenzo_masiello1</dc:creator>
      <dc:date>2025-03-25T10:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with USING ALL CLIENTS</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaa-p/14376776#M4940557</link>
      <description>Just stumbled upon this. Did you find a solution by yourself?</description>
      <pubDate>Fri, 17 Apr 2026 09:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaa-p/14376776#M4940557</guid>
      <dc:creator>Kevin_Holtkamp</dc:creator>
      <dc:date>2026-04-17T09:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with USING ALL CLIENTS</title>
      <link>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaa-p/14376963#M4940571</link>
      <description>Hi Kevin, I think nowadays i would write that with cds-views and table-functions. In a table function you can write the sql in sqlscript (similar to abap, but has far more capapilities than regular abap in sql-expressions). In sqlscript you can use different joins and use the client-column in every-join. In sql-script you must not write "client specified" or "using all clients". Instead in the underlying cds-view you declare the client as follows, if you want to give the client-numbers dynamically: &amp;lt;pre&amp;gt; @ClientHandling.type: #CLIENT_DEPENDENT define table function zb_my_select_tf with parameters @Environment.systemField: #CLIENT i_client : vdm_v_sap_client &amp;lt;/pre&amp;gt;</description>
      <pubDate>Fri, 17 Apr 2026 12:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problems-with-using-all-clients/qaa-p/14376963#M4940571</guid>
      <dc:creator>lorenzo_masiello1</dc:creator>
      <dc:date>2026-04-17T12:20:44Z</dc:date>
    </item>
  </channel>
</rss>

