<?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: Very Urgent Help , ABAP SQL Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067972#M727100</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 not query based on the first 5 characters only.&lt;/P&gt;&lt;P&gt;But you can use LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select A B C into itab From table custom_table1&lt;/P&gt;&lt;P&gt;where b = ( select b from cusstom_table2 )&lt;/P&gt;&lt;P&gt;and A LIKE &amp;lt;first 5 characters&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 03:28:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-21T03:28:46Z</dc:date>
    <item>
      <title>Very Urgent Help , ABAP SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067971#M727099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;Please suggest.I have a table(custom_table1) with a field say A which is of date type = c and length = 9. And i want to query this table.Following is the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select substr(A,0,5) B C into itab From table custom_table1&lt;/P&gt;&lt;P&gt;where b = ( select b from cusstom_table2 )&lt;/P&gt;&lt;P&gt;and substr(A,0,5) = Input_A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is i want to equate an Input_A (which is of 5 character length) with field A (only first 5 character of the 9 length). But it seems the query is wrong. Kindly help ,very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067971#M727099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Very Urgent Help , ABAP SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067972#M727100</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 not query based on the first 5 characters only.&lt;/P&gt;&lt;P&gt;But you can use LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select A B C into itab From table custom_table1&lt;/P&gt;&lt;P&gt;where b = ( select b from cusstom_table2 )&lt;/P&gt;&lt;P&gt;and A LIKE &amp;lt;first 5 characters&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067972#M727100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Very Urgent Help , ABAP SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067973#M727101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i not even get the substr (A,0,5) from the column A ?  I need to have only the first 5 character of field A into Internal Table Itab. And as per the where clause you suggested u said to use LIKE. &lt;/P&gt;&lt;P&gt;Is it where A LIKE '%Input_A%' or something else can you please give me the syntax for using with like operator ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067973#M727101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Very Urgent Help , ABAP SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067974#M727102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       Yes.You are correct. Use '%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067974#M727102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Very Urgent Help , ABAP SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067975#M727103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check below standard SAP help&lt;/P&gt;&lt;P&gt;PARAMETERS srch_str TYPE c LENGTH 20. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA text_tab TYPE TABLE OF doktl. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE '%' srch_str '%' INTO srch_str. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;       FROM doktl &lt;/P&gt;&lt;P&gt;       INTO TABLE text_tab &lt;/P&gt;&lt;P&gt;       WHERE doktext LIKE srch_str. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067975#M727103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Very Urgent Help , ABAP SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067976#M727104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, U have helped me to fill up the where condition as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what about the column A in the select query ?I need only 5 characters from the field populated into Itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE  srch_str '%' INTO srch_str.  -- bcos i want it to be 'InputA%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Substr(A,0,5) , B C Into Itab From CustomTable 1 where B = (Select B from customtable2) and A Like SrchStr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any means i can populate only the 5 characters from the select field A into Itab without using Substr (becos it doesnt work) ? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 05:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-help-abap-sql-query/m-p/3067976#M727104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T05:05:11Z</dc:date>
    </item>
  </channel>
</rss>

