<?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 Help with SQL query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664573#M2015910</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;
  &lt;P&gt;I am quite new in this query stuff from SAP and I wanted to ask for help regarding the following error, when I try to execute I get this:&lt;/P&gt;
  &lt;P&gt;1) Incorrect table name or table alias name "LIKP". "LIKP". table alias name "LIKP". table alias name "LIKP". table alias name&lt;/P&gt;
  &lt;P&gt;and&lt;/P&gt;
  &lt;P&gt;2) "LIKP". table alias name "LIKP". table "".&lt;/P&gt;
  &lt;P&gt;The query is this:&lt;/P&gt;
  &lt;P&gt;select distinct &lt;/P&gt;
  &lt;P&gt;LIPS~VBELN AS DELIVERY_NOTE_NUMBER, &lt;/P&gt;
  &lt;P&gt;LIPS~VGBEL AS ORDER_NUMBER, &lt;/P&gt;
  &lt;P&gt;LIKP~BOLNR AS TRACKING_NUMBER,&lt;/P&gt;
  &lt;P&gt;VBKD~BSTKD AS PURCHASE_ORDER_NUMBER, &lt;/P&gt;
  &lt;P&gt;VBAK~AUART,&lt;/P&gt;
  &lt;P&gt;VBAK~VSBED,&lt;/P&gt;
  &lt;P&gt;VBAK~ERDAT AS ERDAT_ORDER, &lt;/P&gt;
  &lt;P&gt;VBAK~ERZET AS ERZET_ORDER,&lt;/P&gt;
  &lt;P&gt;LIPS~WERKS,&lt;/P&gt;
  &lt;P&gt;T001W~KUNNR,&lt;/P&gt;
  &lt;P&gt;T001W~NAME1 AS FROM_NAME,&lt;/P&gt;
  &lt;P&gt;T001W~STRAS AS FROM_STREET,&lt;/P&gt;
  &lt;P&gt;T001W~PSTLZ AS FROM_ZIP_CODE,&lt;/P&gt;
  &lt;P&gt;T001W~ORT01 AS FROM_CITY,&lt;/P&gt;
  &lt;P&gt;T001W~LAND1 AS FROM_COUNTRY&lt;/P&gt;
  &lt;P&gt;from LIPS&lt;/P&gt;
  &lt;P&gt;join VBAK on LIPS~VGBEL = VBAK~VBELN and LIPS~VTWEG = VBAK~VTWEG and LIPS~SPART = VBAK~SPART&lt;/P&gt;
  &lt;P&gt;join VBAP on VBAK~VBELN = VBAP~VBELN and LIPS~VGPOS = VBAP~POSNR &lt;/P&gt;
  &lt;P&gt;join VBKD on VBKD~VBELN = VBAK~VBELN&lt;/P&gt;
  &lt;P&gt;join T001W on LIPS~WERKS = T001W~WERKS&lt;/P&gt;
  &lt;P&gt;where VBAK~AUART in ('ZV90','ZV9H','ZV9F') &lt;/P&gt;
  &lt;P&gt;and VBAK~VSBED = 'L4'&lt;/P&gt;
  &lt;P&gt;and VBAK~ERDAT &amp;gt;= '20220901'&lt;/P&gt;
  &lt;P&gt;and LIPS~WERKS not in ('0201','0202')&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 20:27:37 GMT</pubDate>
    <dc:creator>former_member1142222</dc:creator>
    <dc:date>2023-03-16T20:27:37Z</dc:date>
    <item>
      <title>Help with SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664573#M2015910</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;
  &lt;P&gt;I am quite new in this query stuff from SAP and I wanted to ask for help regarding the following error, when I try to execute I get this:&lt;/P&gt;
  &lt;P&gt;1) Incorrect table name or table alias name "LIKP". "LIKP". table alias name "LIKP". table alias name "LIKP". table alias name&lt;/P&gt;
  &lt;P&gt;and&lt;/P&gt;
  &lt;P&gt;2) "LIKP". table alias name "LIKP". table "".&lt;/P&gt;
  &lt;P&gt;The query is this:&lt;/P&gt;
  &lt;P&gt;select distinct &lt;/P&gt;
  &lt;P&gt;LIPS~VBELN AS DELIVERY_NOTE_NUMBER, &lt;/P&gt;
  &lt;P&gt;LIPS~VGBEL AS ORDER_NUMBER, &lt;/P&gt;
  &lt;P&gt;LIKP~BOLNR AS TRACKING_NUMBER,&lt;/P&gt;
  &lt;P&gt;VBKD~BSTKD AS PURCHASE_ORDER_NUMBER, &lt;/P&gt;
  &lt;P&gt;VBAK~AUART,&lt;/P&gt;
  &lt;P&gt;VBAK~VSBED,&lt;/P&gt;
  &lt;P&gt;VBAK~ERDAT AS ERDAT_ORDER, &lt;/P&gt;
  &lt;P&gt;VBAK~ERZET AS ERZET_ORDER,&lt;/P&gt;
  &lt;P&gt;LIPS~WERKS,&lt;/P&gt;
  &lt;P&gt;T001W~KUNNR,&lt;/P&gt;
  &lt;P&gt;T001W~NAME1 AS FROM_NAME,&lt;/P&gt;
  &lt;P&gt;T001W~STRAS AS FROM_STREET,&lt;/P&gt;
  &lt;P&gt;T001W~PSTLZ AS FROM_ZIP_CODE,&lt;/P&gt;
  &lt;P&gt;T001W~ORT01 AS FROM_CITY,&lt;/P&gt;
  &lt;P&gt;T001W~LAND1 AS FROM_COUNTRY&lt;/P&gt;
  &lt;P&gt;from LIPS&lt;/P&gt;
  &lt;P&gt;join VBAK on LIPS~VGBEL = VBAK~VBELN and LIPS~VTWEG = VBAK~VTWEG and LIPS~SPART = VBAK~SPART&lt;/P&gt;
  &lt;P&gt;join VBAP on VBAK~VBELN = VBAP~VBELN and LIPS~VGPOS = VBAP~POSNR &lt;/P&gt;
  &lt;P&gt;join VBKD on VBKD~VBELN = VBAK~VBELN&lt;/P&gt;
  &lt;P&gt;join T001W on LIPS~WERKS = T001W~WERKS&lt;/P&gt;
  &lt;P&gt;where VBAK~AUART in ('ZV90','ZV9H','ZV9F') &lt;/P&gt;
  &lt;P&gt;and VBAK~VSBED = 'L4'&lt;/P&gt;
  &lt;P&gt;and VBAK~ERDAT &amp;gt;= '20220901'&lt;/P&gt;
  &lt;P&gt;and LIPS~WERKS not in ('0201','0202')&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 20:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664573#M2015910</guid>
      <dc:creator>former_member1142222</dc:creator>
      <dc:date>2023-03-16T20:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664574#M2015911</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions.&lt;/P&gt;&lt;P&gt;As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement &amp;amp; additional resources to your reference that can really benefit you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Profile &lt;A href="https://developers.sap.com/tutorials/community-profile.html"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Tips for Questions: &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Consider to take our Q&amp;amp;A tutorial at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 20:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664574#M2015911</guid>
      <dc:creator>AlexGourdet</dc:creator>
      <dc:date>2023-03-16T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664575#M2015912</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Your question is tagged with "SAP IQ". I assume that you are not using SAP IQ, but SAP HANA database.&lt;BR /&gt;If you want to execute the statement in the SQL Editor (transaction DBACOCKPIT, DB02 or ST04), you should replace all "~" with ".". If it is not working you should provide more information and screenshots.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;select distinct LIPS~VBELN AS DELIVERY_NOTE_NUMBER from LIPS&lt;BR /&gt;select distinct LIPS.VBELN AS DELIVERY_NOTE_NUMBER from LIPS&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664575#M2015912</guid>
      <dc:creator>andreas_baldauf</dc:creator>
      <dc:date>2023-03-17T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664576#M2015913</link>
      <description>&lt;P&gt;Table LIKP is missing in FROM clause. &lt;/P&gt;&lt;P&gt;So, you can &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;add JOIN LIKP in the FROM clause &lt;/LI&gt;&lt;LI&gt;or &lt;/LI&gt;&lt;LI&gt;you can remove in the SELECT clause the line refering to table LIKP "LIKP~BOLNR AS TRACKING_NUMBER"&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664576#M2015913</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2023-03-20T12:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664577#M2015914</link>
      <description>&lt;P&gt;With a proper label like &lt;A href="https://answers.sap.com/tags/833755570260738661924709785639136"&gt;ABAP Development&lt;/A&gt;, you would have gotten an answer faster.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-sql-query/m-p/12664577#M2015914</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-03-20T12:46:42Z</dc:date>
    </item>
  </channel>
</rss>

