<?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: How to make composite key in SAP Sql query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60081#M788818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggestion would be to load the Data as it is and Use Preceding load to built your composite key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Load MBLNR&amp;amp;MJHAR as Key;&lt;/P&gt;&lt;P&gt;SELECT MBLNR,MJHAR&amp;nbsp; FROM MKPF WHERE CPUDT &amp;gt; '$(vDate)' AND CPUDT &amp;lt; '$(vToday);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;Load * Where Exists(Key);&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SQL SELECT MBLNR,MJAHR,MATNR,CHARG,WERKS,MEINS,BUDAT_MKPF,BWART,MENGE FROM MSEG &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 18:23:53 GMT</pubDate>
    <dc:creator>rupamjyotidas</dc:creator>
    <dc:date>2018-02-06T18:23:53Z</dc:date>
    <item>
      <title>How to make composite key in SAP Sql query</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60078#M788815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m trying following subquery in SAP but its not working plz suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT MBLNR,MJAHR,MATNR,CHARG,WERKS,MEINS,BUDAT_MKPF,BWART,MENGE FROM MSEG &lt;/P&gt;&lt;P&gt;WHERE MBLNR&amp;amp;MJHAR IN (SELECT MBLNR&amp;amp;MJHAR&amp;nbsp; FROM MKPF WHERE CPUDT &amp;gt; '$(vDate)' AND CPUDT &amp;lt; '$(vToday)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"MBLNR&amp;amp;MJHAR" how to make composite key or concat these two fields to make key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I m trying with '&amp;amp;' its not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60078#M788815</guid>
      <dc:creator>asmitagg</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make composite key in SAP Sql query</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60079#M788816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Asmita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this syntax below because I SAP database doesn´t allow subqueries as you tried:&lt;/P&gt;&lt;P&gt;- Load the query:&lt;/P&gt;&lt;P&gt;SELECT MBLNR&amp;amp;MJHAR&amp;nbsp; FROM MKPF WHERE CPUDT &amp;gt; '$(vDate)' AND CPUDT &amp;lt; '$(vToday);&lt;/P&gt;&lt;P&gt;- Then run the first query &lt;/P&gt;&lt;P&gt;SQL SELECT MBLNR,MJAHR,MATNR,CHARG,WERKS,MEINS,BUDAT_MKPF,BWART,MENGE FROM MSEG &lt;/P&gt;&lt;P&gt;WHERE MBLNR&amp;amp;MJHAR&lt;/P&gt;&lt;P&gt;with where exists statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/InterRecordFunctions/Exists.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/InterRecordFunctions/Exists.htm"&gt;Exists ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 18:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60079#M788816</guid>
      <dc:creator>Ricardo_Gerhard</dc:creator>
      <dc:date>2018-02-06T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make composite key in SAP Sql query</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60080#M788817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyway, SAP allows the composite key like you had tried FIELD1&amp;amp;FIELD2 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 18:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60080#M788817</guid>
      <dc:creator>Ricardo_Gerhard</dc:creator>
      <dc:date>2018-02-06T18:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make composite key in SAP Sql query</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60081#M788818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggestion would be to load the Data as it is and Use Preceding load to built your composite key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Load MBLNR&amp;amp;MJHAR as Key;&lt;/P&gt;&lt;P&gt;SELECT MBLNR,MJHAR&amp;nbsp; FROM MKPF WHERE CPUDT &amp;gt; '$(vDate)' AND CPUDT &amp;lt; '$(vToday);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;Load * Where Exists(Key);&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SQL SELECT MBLNR,MJAHR,MATNR,CHARG,WERKS,MEINS,BUDAT_MKPF,BWART,MENGE FROM MSEG &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 18:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60081#M788818</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2018-02-06T18:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make composite key in SAP Sql query</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60082#M788819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MJHAR&amp;nbsp; -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MJAHR&amp;nbsp; Typo?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 19:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-composite-key-in-SAP-Sql-query/m-p/60082#M788819</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-02-06T19:07:04Z</dc:date>
    </item>
  </channel>
</rss>

