<?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: Select Statment condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152660#M1193872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply thomas.... now I am not worried about the TRDIR table... as you are right TRDIR table will not hold good in this case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but can you please explain a more how to take care of that TSTC~PGMNA = '  ' condition? as I don't user to add this conditon.. what I want when ever a user execute this report he should see only those T-cdoes whch don't have program names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my updated code is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TSTC~PGMNA&lt;/P&gt;&lt;P&gt;  TSTC~TCODE&lt;/P&gt;&lt;P&gt;  TSTCT~SPRSL&lt;/P&gt;&lt;P&gt;  TSTCT~TTEXT&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE IT_TCODELISTING&lt;/P&gt;&lt;P&gt;  FROM ( TSTC inner join tstct on tstct&lt;SUB&gt;tcode = tstc&lt;/SUB&gt;tcode)&lt;/P&gt;&lt;P&gt;  WHERE PGMNA IN S_PGNAME&lt;/P&gt;&lt;P&gt;    and SPRSL IN S_LKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 16:06:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-05T16:06:45Z</dc:date>
    <item>
      <title>Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152658#M1193870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a following select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TSTC~PGMNA&lt;/P&gt;&lt;P&gt;  TSTC~TCODE&lt;/P&gt;&lt;P&gt;  TSTCT~TTEXT&lt;/P&gt;&lt;P&gt;  TRDIR~SECU&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE IT_TEST&lt;/P&gt;&lt;P&gt;  FROM ( TSTC inner join tstct on tstct&lt;SUB&gt;tcode = tstc&lt;/SUB&gt;tcode&lt;/P&gt;&lt;P&gt;         INNER JOIN TRDIR ON TRDIR&lt;SUB&gt;NAME = TSTC&lt;/SUB&gt;PGMNA )&lt;/P&gt;&lt;P&gt;  WHERE PGMNA IN S_PGNAME&lt;/P&gt;&lt;P&gt;    and SPRSL IN S_LKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code I need to enter a condition that it should look out for only those Tcodes in the table TSTC where TSTC~PGMNA = ' ' " (space) ... so can you please tell me how can I do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 15:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152658#M1193870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152659#M1193871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is S_PGNAME on your selection screen? If yes, then the desired condition can be entered there.&lt;/P&gt;&lt;P&gt;The INNER JOIN TRDIR needs to be changed to an LEFT OUTER JOIN, since there will not be an entry in TRDIR for these cases.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. include SPRSL = SY-LANGU in your join of TSTCT, otherwise there could be duplicates due to multi-language descriptions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 15:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152659#M1193871</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-05T15:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152660#M1193872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply thomas.... now I am not worried about the TRDIR table... as you are right TRDIR table will not hold good in this case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but can you please explain a more how to take care of that TSTC~PGMNA = '  ' condition? as I don't user to add this conditon.. what I want when ever a user execute this report he should see only those T-cdoes whch don't have program names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my updated code is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TSTC~PGMNA&lt;/P&gt;&lt;P&gt;  TSTC~TCODE&lt;/P&gt;&lt;P&gt;  TSTCT~SPRSL&lt;/P&gt;&lt;P&gt;  TSTCT~TTEXT&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE IT_TCODELISTING&lt;/P&gt;&lt;P&gt;  FROM ( TSTC inner join tstct on tstct&lt;SUB&gt;tcode = tstc&lt;/SUB&gt;tcode)&lt;/P&gt;&lt;P&gt;  WHERE PGMNA IN S_PGNAME&lt;/P&gt;&lt;P&gt;    and SPRSL IN S_LKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152660#M1193872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152661#M1193873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TSTC~PGMNA&lt;/P&gt;&lt;P&gt;TSTC~TCODE&lt;/P&gt;&lt;P&gt;TSTCT~SPRSL&lt;/P&gt;&lt;P&gt;TSTCT~TTEXT&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_TCODELISTING&lt;/P&gt;&lt;P&gt;FROM ( TSTC inner join tstct on tstct&lt;SUB&gt;tcode = tstc&lt;/SUB&gt;tcode)&lt;/P&gt;&lt;P&gt;WHERE PGMNA IN S_PGNAME&lt;/P&gt;&lt;P&gt;and SPRSL IN S_LKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code you are checking using S_PGNAME, if input is not specified in Selection screen it will fectch all records.&lt;/P&gt;&lt;P&gt;So you can do &lt;/P&gt;&lt;P&gt;1) check WHERE PGMNA = ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why you are checking using S_PGNAME?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use S_PGNAME then&lt;/P&gt;&lt;P&gt;S_PGNAME-LOW = ' '.&lt;/P&gt;&lt;P&gt;S_PGNAME-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;S_PGNAME-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;APPEND S_PGNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Reddy Sibbala on Feb 5, 2009 5:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152661#M1193873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152662#M1193874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, then either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; WHERE PGMNA = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; WHERE PGMNA IN S_PGNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and filling S_PGNAME before for selecting blank values: OPTION = "EQ", SIGN = "I", LOW = SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152662#M1193874</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-05T16:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152663#M1193875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Sunil... basically what I am looking for is the ability for the user to see all the Custom T_codes which doesn't have any program name assigned to it. So can you please tell me how can I get that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152663#M1193875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152664#M1193876</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;This query could help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TSTC~PGMNA&lt;/P&gt;&lt;P&gt;TSTC~TCODE&lt;/P&gt;&lt;P&gt;TSTCT~SPRSL&lt;/P&gt;&lt;P&gt;TSTCT~TTEXT&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_TCODELISTING&lt;/P&gt;&lt;P&gt;FROM TSTC&lt;/P&gt;&lt;P&gt;JOIN TSTCT&lt;/P&gt;&lt;P&gt;ON TSTCT&lt;SUB&gt;TCODE = TSTC&lt;/SUB&gt;TCODE&lt;/P&gt;&lt;P&gt;WHERE TSTC~PGMNA = ' '&lt;/P&gt;&lt;P&gt;AND TSTC~TCODE = 'Z#'&lt;/P&gt;&lt;P&gt;AND TSTCT~SPRSL = S_LKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152664#M1193876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152665#M1193877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It didn't work.... it didn't fetch any data in the internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152665#M1193877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152666#M1193878</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;Sorry you have to put LIKE there. Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TSTC~PGMNA&lt;/P&gt;&lt;P&gt;TSTC~TCODE&lt;/P&gt;&lt;P&gt;TSTCT~SPRSL&lt;/P&gt;&lt;P&gt;TSTCT~TTEXT&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_TCODELISTING&lt;/P&gt;&lt;P&gt;FROM TSTC&lt;/P&gt;&lt;P&gt;JOIN TSTCT&lt;/P&gt;&lt;P&gt;ON TSTCT&lt;SUB&gt;TCODE = TSTC&lt;/SUB&gt;TCODE&lt;/P&gt;&lt;P&gt;WHERE TSTC~PGMNA = ' '&lt;/P&gt;&lt;P&gt;AND TSTC~TCODE LIKE 'Z%'        (or 'Y%') &lt;/P&gt;&lt;P&gt;AND TSTCT~SPRSL = S_LKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152666#M1193878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152667#M1193879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's still behaving the same and not fetching anything in the internal table... somehow it's just skipping the whole select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tahnks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 17:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152667#M1193879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152668#M1193880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working to me. Do you have any conditions before the select query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 17:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152668#M1193880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T17:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152669#M1193881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajeev - rather than just cutting and pasitng the code, do some desk checking to see if you can find the error before posting back to the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 17:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152669#M1193881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T17:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statment condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152670#M1193882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply... the conditon for tstc - pgmna = ' '... is not working!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 02:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment-condition/m-p/5152670#M1193882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T02:48:05Z</dc:date>
    </item>
  </channel>
</rss>

