<?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>Question Re: Help with Syntax error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848253#M4879096</link>
    <description>&lt;P&gt;What language is this select written in? ...because in SQL Anywhere syntax the &amp;amp; operator is bitwise AND &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 09:03:11 GMT</pubDate>
    <dc:creator>Breck_Carter</dc:creator>
    <dc:date>2018-08-20T09:03:11Z</dc:date>
    <item>
      <title>Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaq-p/13848247</link>
      <description>&lt;P&gt;Sorry if this first post isn't enough information to go on, I'm a bit out of my element so please  forgive my lack of protocol.&lt;/P&gt;
&lt;P&gt;I'm trying to research a problem we have run into and as no one here has any sybase knowledge we just are unsure where to turn to in order to find a resolution.  So the basic outline is we are trying to use an odbc connection that we setup using the sqlanywhere 16 driver, we can get the data we need via the tables, so the connection works.
Now here is where we are lost, there is a need to use a function that is on the server, when we do so we get a syntax error near 'dba' on line 1.&lt;BR /&gt;
"dba.fn_GetShpLbrCostPart(" &amp;amp; "'" &amp;amp; {company.company_code} &amp;amp; "'" &amp;amp; ", " &amp;amp; 
                                            ToText({shp_line.pks_num},0,"") &amp;amp; ", " &amp;amp; 
                                            ToText({shp_line_src.cust_po_line_num},0,"") &amp;amp; ", " &amp;amp; 
                                            "'L');";&lt;/P&gt;
&lt;P&gt;Regrettably we are in a jam over this and just hoping someone out there can throw us a preserver if you will. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 10:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaq-p/13848247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-08-16T10:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848248#M4879091</link>
      <description>&lt;P&gt;Have you tried:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;select * from dba.fn_GetShpLbCostPart...
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;-or-&lt;/P&gt;
&lt;P&gt;set var = dba.fn_GetShpLbCostPart&lt;/P&gt;
&lt;P&gt;where var is declared as a valid return type for the function.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 11:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848248#M4879091</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2018-08-16T11:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848249#M4879092</link>
      <description>&lt;P&gt;I have probably left out something here, 
the formula above returns  dba.fn_GetShpLbrCostPart('1', 57398, 1, 'L'); so the returned data ('1', 57398, 1, 'L') is from the data and would need to be used by the function in order to do its job and return a cost number.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848249#M4879092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-08-16T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848250#M4879093</link>
      <description>&lt;P&gt;If this is a stored function, not a stored procedure, I would try to call&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;select dba.fn_GetShpLbCostPart...
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848250#M4879093</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-08-16T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848251#M4879094</link>
      <description>&lt;P&gt;Then maybe you need something like this&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;select *
  from company
       join shp_line on ....
       join shp_line_src on ... ,
       lateral(select ... from dba.fn_GetShpLbrCostPart(" &amp;amp; "'" &amp;amp; {company.company_code} &amp;amp; "'" &amp;amp; ", " &amp;amp;     ToText({shp_line.pks_num},0,"") &amp;amp; ", " &amp;amp; ToText({shp_line_src.cust_po_line_num},0,"") &amp;amp; ", " &amp;amp; "'L'))
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Aug 2018 02:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848251#M4879094</guid>
      <dc:creator>Chris26</dc:creator>
      <dc:date>2018-08-17T02:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848252#M4879095</link>
      <description>&lt;P&gt;What language is this? Crystal Reports?&lt;/P&gt;
&lt;P&gt;Please show us the exact code, with the surrounding context, that is having the problem. Use copy and paste, do not re-type it.&lt;/P&gt;
&lt;P&gt;Please show the entire exact error message, with the surrounding context. Use copy and paste, do not re-type it.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 09:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848252#M4879095</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2018-08-20T09:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Syntax error</title>
      <link>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848253#M4879096</link>
      <description>&lt;P&gt;What language is this select written in? ...because in SQL Anywhere syntax the &amp;amp; operator is bitwise AND &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 09:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-with-syntax-error/qaa-p/13848253#M4879096</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2018-08-20T09:03:11Z</dc:date>
    </item>
  </channel>
</rss>

