<?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: Dynamic Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185746#M1000560</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 believe the error is not related to the length of the string...if you have an internal table for which the each row of length 72...that should be good enough...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is related to building the where clause....put a break-point before the SQL...and then check what exactly is the value in the internal table ...you might be missing..some operators like AND...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 14:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T14:52:26Z</dc:date>
    <item>
      <title>Dynamic Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185745#M1000559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;i got a problem with dynamic select statement.i.e i written a select statement in that i included a where condition.the code for the where condition is as fallows.&lt;/P&gt;&lt;P&gt;DATA : STR_LINE TYPE EDPLINE,&lt;/P&gt;&lt;P&gt;             STR_WHERE TYPE TABLE OF EDPLINE.&lt;/P&gt;&lt;P&gt;AND in STR_LINE i appended the condition values like as fallows&lt;/P&gt;&lt;P&gt;" industry = 'telecom' and apparea = 'r/3' and ....."&lt;/P&gt;&lt;P&gt;like above i've total 8 values. So Based on my requirement i may give all the 8 values or some of them.&lt;/P&gt;&lt;P&gt;my problem is iam able to get the where condition upto 72 char only ,cause edpline holds only 72 chars.So after i got the values into str_line iam appending that value into STR_WHERE,but when i used STR_WHERE condition in select statement it gives a dump error like   &lt;STRONG&gt;in correct format of where condition.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; And i tried STR_LINE type as STRING and also STR_WHERE as String and at that time also iam getting same kind of error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MY WHERE CONDITION HOLDS APPROX., OF 200 CHAR OF LENGTH&lt;/STRONG&gt; pls remeber this .&lt;/P&gt;&lt;P&gt;can u people pls give the solution for this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance to u all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay Kumar K,&lt;/P&gt;&lt;P&gt;9908979994.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185745#M1000559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185746#M1000560</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 believe the error is not related to the length of the string...if you have an internal table for which the each row of length 72...that should be good enough...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is related to building the where clause....put a break-point before the SQL...and then check what exactly is the value in the internal table ...you might be missing..some operators like AND...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185746#M1000560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185747#M1000561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Check this links for dynamic select statements,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.itp-consulting.com/dynamic%20SQL%20in%20SAP.pdf" target="test_blank"&gt;http://www.itp-consulting.com/dynamic%20SQL%20in%20SAP.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185747#M1000561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185748#M1000562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put the conditions in ( ) as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TABLES: zlmlead.
DATA : STR_LINE TYPE EDPLINE,
       STR_WHERE TYPE TABLE OF EDPLINE.


START-OF-SELECTION.


  STR_LINE = 'leadid eq 1'. append STR_LINE to str_where.

  SELECT SINGLE * FROM zlmlead
    WHERE (str_where).  "&amp;lt;== note where you need to change

  BREAK-POINT.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185748#M1000562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185749#M1000563</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;Actually it is a bit confusing. Can you provide us with your select statement and what you are trying to do actually.I think we can solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-statement/m-p/4185749#M1000563</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2008-07-18T14:58:43Z</dc:date>
    </item>
  </channel>
</rss>

