<?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: problem in select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013723#M712172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to search more than 8 characters? The field is only 5 characters long!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2007 17:02:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-05T17:02:21Z</dc:date>
    <item>
      <title>problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013716#M712165</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;i do a program for search string from table and field v_pattern2 is field that the user input and the bapi search the string in table tcurc,the problem here that i can do search for just 8 or less &lt;/P&gt;&lt;P&gt;character if i do more then that i get dump &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what couled be the problem?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


  CONCATENATE '%' v_pattern2 '%' INTO v_pattern2.

  SELECT waers  "This Search for take currency key
  FROM tcurc
  INTO TABLE curr_tab2
  WHERE waers LIKE v_pattern2. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013716#M712165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T16:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013717#M712166</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: PATTERN(3) TYPE C.
                                                                        
DATA: BEGIN OF CURR_TAB2 OCCURS 0,
        WAERS LIKE TCURC-WAERS,
      END OF CURR_TAB2.
                                                                        
DATA: V_PATTERN2 LIKE TCURC-WAERS.
                                                                        
CONCATENATE '%' PATTERN '%' INTO V_PATTERN2.
                                                                        
SELECT WAERS
FROM TCURC
INTO TABLE CURR_TAB2
WHERE WAERS LIKE V_PATTERN2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013717#M712166</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-11-05T16:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013718#M712167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abstrct from the short dump &lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;The pattern for a LIKE operator (with the exception of               &lt;/P&gt;&lt;P&gt;closing blanks) cannot have more than 10 characters. This is the     &lt;/P&gt;&lt;P&gt;minimum of 256 and twice as long as the database field (5) to which  &lt;/P&gt;&lt;P&gt;the condition applies.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In this particular case, the pattern contains       &lt;/P&gt;&lt;P&gt;                                                     &lt;/P&gt;&lt;P&gt;    "%TEST11111%"                                                                                &lt;/P&gt;&lt;P&gt;more than the maximum permitted 10 valid characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                          &lt;/P&gt;&lt;P&gt;"                                                              &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means you will have only 8 characther left apart from 2 % to compare with the WAERS (lenght 5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, make your V_PATTER2 as 8 length field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013718#M712167</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-05T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013719#M712168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi feery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the field WAERS is type char5 so it smaller then what i wont &lt;/P&gt;&lt;P&gt;i declare&lt;/P&gt;&lt;P&gt;data  v_pattern2  LIKE tcurt-ltext. &lt;/P&gt;&lt;P&gt;and i have dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013719#M712168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T16:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013720#M712169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Naimesh Patel  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this the erorr.&lt;/P&gt;&lt;P&gt;u mean that is no option at all that i can do search for more then 8 charcter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013720#M712169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013721#M712170</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;Are you looking this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: PATTERN(38) TYPE C.
                                     
DATA: BEGIN OF CURR_TAB2 OCCURS 0,
        WAERS LIKE TCURC-WAERS,
      END OF CURR_TAB2.
                                                   
DATA: V_PATTERN2 LIKE TCURT-LTEXT.
                             
CONCATENATE '%' PATTERN '%' INTO V_PATTERN2.
                        
SELECT WAERS
FROM TCURT
INTO TABLE CURR_TAB2
WHERE SPRAS = SY-LANGU
  AND LTEXT LIKE V_PATTERN2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013721#M712170</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-11-05T16:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013722#M712171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.. if you want to serach for the curreny description than use the text table of the TCURC.. which is TCURCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 17:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013722#M712171</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-05T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013723#M712172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to search more than 8 characters? The field is only 5 characters long!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 17:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013723#M712172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T17:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013724#M712173</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 are looking all return values of WAERS from table TCURC, then you need to declare v_pattern2  as TCURC-WAERS.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 17:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select/m-p/3013724#M712173</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-11-05T17:04:24Z</dc:date>
    </item>
  </channel>
</rss>

