<?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: CX_SY_GEN_SOURCE_TOO_WIDE - Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216480#M134996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets me going in the right direction. I need to figure out how to continue a string across 2 lines within a db2 sql statement, but I should be able to answer that with some more google searching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2006 23:36:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-13T23:36:09Z</dc:date>
    <item>
      <title>CX_SY_GEN_SOURCE_TOO_WIDE - Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216478#M134994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function that runs a native sql statement in a generated subroutine ( based on an example posted by Rich Heilman here ==&amp;gt; &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="89307"&gt;&lt;/A&gt; ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When l_statement (my native sql statement) is greater than 255 characters, I get the following error ==&amp;gt; CX_SY_GEN_SOURCE_TOO_WIDE ... however, if the sql is &amp;lt;= 255, I do not get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified many of the char variables in the function to be string variables, and I'm still receiving getting the same error. Is there a limitation on the length of a native sql statement ? If so, can someone recommend a possible work around ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 21:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216478#M134994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T21:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: CX_SY_GEN_SOURCE_TOO_WIDE - Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216479#M134995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there is a limitation on as to how long an ABAP statement can be and that is 255 as you found out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do is to have your native sql statement on separate lines instead of one long line. For instance,&lt;/P&gt;&lt;P&gt;you can have each AND/OR where conditions on seperate lines(different records in the itab containing the code for the subroutine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 21:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216479#M134995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T21:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: CX_SY_GEN_SOURCE_TOO_WIDE - Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216480#M134996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets me going in the right direction. I need to figure out how to continue a string across 2 lines within a db2 sql statement, but I should be able to answer that with some more google searching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 23:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cx-sy-gen-source-too-wide-native-sql/m-p/1216480#M134996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T23:36:09Z</dc:date>
    </item>
  </channel>
</rss>

