<?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>topic Re: CLIENT SPECIFIED in inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366326#M1234802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Client Specified is used when you required to access data of different clients:
Additions:
1 ) If you use MANDT FIELD in the where clause the given clients data is fetched.
2) If no MANDT FIELD is specified Data from all the clients is fetched.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If you specifi MANDT without CLIENT SPECIFIED addition current clients data is fetched.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you need to fetched data from other clients in your Join use CLIENT SPECIFIED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Apr 2009 08:08:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-04T08:08:06Z</dc:date>
    <item>
      <title>CLIENT SPECIFIED in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366324#M1234800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it right to use CLIENT SPECIFIED in inner join. if possible explain me with an example.&lt;/P&gt;&lt;P&gt;I am comparing only RSEG-LFBNR with the reference key in MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 15:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366324#M1234800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T15:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: CLIENT SPECIFIED in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366325#M1234801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It all depends on the your requirement, if you use this statement the you need to pass the MANDT ffield in the Where clause of select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you not provide the MANDT field in case you use the CLIENT SPECIFIED then data is fetched from the Buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 15:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366325#M1234801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: CLIENT SPECIFIED in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366326#M1234802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Client Specified is used when you required to access data of different clients:
Additions:
1 ) If you use MANDT FIELD in the where clause the given clients data is fetched.
2) If no MANDT FIELD is specified Data from all the clients is fetched.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If you specifi MANDT without CLIENT SPECIFIED addition current clients data is fetched.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you need to fetched data from other clients in your Join use CLIENT SPECIFIED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2009 08:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366326#M1234802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-04T08:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: CLIENT SPECIFIED in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366327#M1234803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to edit data from other clients explicitly, use the SQL command with the addition&lt;/P&gt;&lt;P&gt;CLIENT SPECIFIED and enter the number of the client in which the SQL operation is to be&lt;/P&gt;&lt;P&gt;carried out in the WHERE clause of the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2009 07:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366327#M1234803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-05T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: CLIENT SPECIFIED in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366328#M1234804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the &lt;STRONG&gt;CLIENT SPECIFIED&lt;/STRONG&gt; Key word in the select statement to access data from multiple clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you have to take care of the performance and also security options into consideration. As accessing multiple client from other clients is not recomended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 07:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366328#M1234804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T07:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: CLIENT SPECIFIED in inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366329#M1234805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible, but not always necessary .... I remember doing it once to tweak a little extra performance out of a complex join but I wouldn't normally bother.  Below is a bit of sample code with a MANDT in the join ... I ran ST05 SQL trace across it and the "explain" for both prepares was the same... you'd have to try it with your particular select to see if it makes any difference on your system / database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zlocal_jc_client_join.

types:
  begin of gtys_data,
    bname               type usr01-bname,
    class               type usr02-class,
  end of gtys_data.


start-of-selection.
  perform select_with_client.
  perform select_without_client.

*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  select_with_client
*&amp;amp;--------------------------------------------------------------------*
form select_with_client.

  data:
    lt_data             type table of gtys_data.

  select
    usr01~bname
    usr02~class
    into corresponding fields of table lt_data
    from usr01 as usr01
    inner join usr02 as usr02
      on  usr02~mandt = usr01~mandt
      and usr02~bname = usr01~bname
    client specified
    where usr01~mandt = sy-mandt
    and   usr01~bname like 'A%'.

endform.                    "select_with_client

*&amp;amp;--------------------------------------------------------------------*
*&amp;amp;      Form  select_without_client
*&amp;amp;--------------------------------------------------------------------*
form select_without_client.

  data:
    lt_data             type table of gtys_data.

  select
    usr01~bname
    usr02~class
    into corresponding fields of table lt_data
    from usr01 as usr01
    inner join usr02 as usr02
      on usr02~bname = usr01~bname
    where usr01~bname like 'A%'.

endform.                    "select_without_client
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/client-specified-in-inner-join/m-p/5366329#M1234805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:04:11Z</dc:date>
    </item>
  </channel>
</rss>

