<?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: ST05 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782577#M337208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I NOW THAT.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT  I DO NOT WANT TO EXECUTE SQL NATIVE ON MY ABAP PROGRAM,   I NEED TO EJECUTE THE ABAP sentence WITH THE ALL RESTRICTION IN THE "WHERE" STATEMENT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2006 18:47:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-06T18:47:54Z</dc:date>
    <item>
      <title>ST05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782575#M337206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI EVERY BODY .    I HAVE A QUESTION .    I DEVELOP MANY PROGRAMS IN R3   AND ACTUALITY I HAVE SAP VERSION  ECC 6.0    AND I EXECUTE THE TRANSACTION ST05 AND THE TRACE FOR SOME SELECTS DON'T MATCH WITH THE ABAP COMMAND  FOR EXAMPLE    IN THE ABAP CODE I HAVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT A~PLTYP B~PTEXT FROM T189 AS A INNER JOIN T189T AS B
    ON A~PLTYP EQ B~PLTYP
    APPENDING TABLE P_T_LISTAS
    WHERE A~PLTYP IN P_S_PLTYP AND
          B~SPRAS EQ SY-LANGU.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND IN THE RESULT OF TRACER ON ST05 TRANSACTION  SHOW ME  THIS &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE PROC sap_XPLupgradesap3112705  
 @P0 varchar(3)  
,@P1 varchar(3)  
,@P2 varchar(1)  
 AS
BEGIN  
SELECT T_00."PLTYP",T_01."PTEXT"  
FROM "T189" T_00 INNER 
JOIN "T189T" T_01 ON T_01."MANDT" =  @P0  AND T_00."PLTYP" = T_01."PLTYP"

WHERE T_00."MANDT" =  @P1  AND T_01."SPRAS" =  @P2 
/* R3:ZSDE0006:2405 T:T189 331*/ 
/*Dynamic
SQL statement -- no cursor, upto 0, conn. 0:2*/  
  
END

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently DON'T INCLUDE THIS ABAP COMMAND &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
A~PLTYP IN P_S_PLTYP
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT IN THE ABAP PROGRAM THE RESULT IT IS OK. BUT I DON'T UNDERSTAND WHY THE TRASNSACTION DO THIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 18:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782575#M337206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T18:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: ST05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782576#M337207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gibran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have used is the Open SQL, at runtime ABAP will convert these statements to the format that the backend database can understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the reason that the query you find is different in ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some info on the same,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 18:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782576#M337207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T18:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: ST05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782577#M337208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I NOW THAT.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT  I DO NOT WANT TO EXECUTE SQL NATIVE ON MY ABAP PROGRAM,   I NEED TO EJECUTE THE ABAP sentence WITH THE ALL RESTRICTION IN THE "WHERE" STATEMENT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 18:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782577#M337208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T18:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: ST05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782578#M337209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gibron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;NEED TO EJECUTE THE ABAP sentence WITH THE ALL RESTRICTION IN THE "WHERE" STATEMENT &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A&lt;SUB&gt;PLTYP B&lt;/SUB&gt;PTEXT FROM T189 AS A INNER JOIN T189T AS B&lt;/P&gt;&lt;P&gt;    ON A&lt;SUB&gt;PLTYP EQ B&lt;/SUB&gt;PLTYP&lt;/P&gt;&lt;P&gt;    APPENDING TABLE P_T_LISTAS&lt;/P&gt;&lt;P&gt;    WHERE A~PLTYP IN P_S_PLTYP AND&lt;/P&gt;&lt;P&gt;          B~SPRAS EQ SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select query what you are using here is in Open SQL. All the restrictions and conditions you want will be properly executed by the ABAP engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact is there can be any database server like oracle,DB2, MS SQL as the backend for SAP where the data is stored ultimately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what ABAP does is it will convert these queries into the format what these database servers will understand and fetch the data. ST05 will monitor all these activities, function calls etc and log that which can be later analysed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand from your query that you feel ABAP has missed some restrictions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Apparently DON'T INCLUDE THIS ABAP COMMAND&lt;/P&gt;&lt;P&gt;A~PLTYP IN P_S_PLTYP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you believe that ABAP has not put these restrictions in the query it had contructed. But definitely it would have created that, may it is not fully displayed in the ST05 trace. Thats it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BUT IN THE ABAP PROGRAM THE RESULT IT IS OK.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The reason is that the restrictions you have passed were considered, as I said before they may not be displayed completely in the trace file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your doubt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782578#M337209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: ST05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782579#M337210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/1782579#M337210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:20:10Z</dc:date>
    </item>
  </channel>
</rss>

