<?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 SAP Tables Join and concatenate together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217801#M715191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. You are absolutely right but what my problem is, I think you are not getting.&lt;/P&gt;&lt;P&gt;Normal 0 21 false false false DE X-NONE X-NONE MicrosoftInternetExplorer4&lt;/P&gt;&lt;P&gt;VBAK:&lt;BR /&gt;VBELN | KUNNR&lt;BR /&gt;1 | 2341&lt;BR /&gt;2 | 3928&lt;BR /&gt;3 | 2928&lt;/P&gt;&lt;P&gt;inner Join&lt;/P&gt;&lt;P&gt;VBAP: But here in VBAP I need to concatenate two tables into one because of ABGRU&amp;gt;0 and ABGRU&amp;lt;0&lt;/P&gt;&lt;P&gt;VBAP:&lt;/P&gt;&lt;P&gt;Load * from VBAP where ABGRU&amp;gt;0(Flag1);&lt;/P&gt;&lt;P&gt;concatenate Load * from VBAP where ABGRU&amp;lt;0(Flag2);&lt;/P&gt;&lt;P&gt;VBELN|POSNR|ABGRU|Flag&lt;/P&gt;&lt;P&gt;1|1|01|1&lt;/P&gt;&lt;P&gt;1|2||2&lt;/P&gt;&lt;P&gt;2|1|02|1&lt;/P&gt;&lt;P&gt;[/ncode]&lt;/P&gt;&lt;P&gt;And Here innerjoin does not work because I am concatenating. Thats why I loaded VBAP_temp(More than 4 million records) reduced it with where exists and then concatenated(400 Thousand records) to reduce the Data.&lt;/P&gt;&lt;P&gt;If I need to innerjoin VBAK to VBAP then I must again reload the Data from VBAK and then Innerjoin VBAP.&lt;/P&gt;&lt;P&gt;Can you recommed otherway here??&lt;/P&gt;&lt;P&gt;Thanks for your answer. Hope I am clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Sep 2010 17:08:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-24T17:08:21Z</dc:date>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217797#M715187</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;May be I am doing not right. correct me If I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;B&gt;VBAK:&lt;/B&gt;&lt;BR /&gt;Load ,&lt;BR /&gt;VBELN,&lt;BR /&gt;VBELN as SALESDOC,&lt;BR /&gt;...,&lt;BR /&gt;.....from VBAK.qvd;&lt;BR /&gt;&lt;B&gt;VBAP_temp:&lt;/B&gt;&lt;BR /&gt;Load&lt;BR /&gt;VBELN,&lt;BR /&gt;....,&lt;BR /&gt;.....from VBAP.qvd&lt;BR /&gt;where exists (VBELN, VBELN);&lt;BR /&gt;&lt;B&gt;VBAP:&lt;/B&gt;&lt;BR /&gt;Load&lt;BR /&gt;1 as reason,&lt;BR /&gt;VBELN,&lt;BR /&gt;VBELN as SALESDOC,&lt;BR /&gt;VBELN/POS as SALESDOCITEM,&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;Resident VBAP_temp&lt;BR /&gt;where GRUND&amp;gt;0;&lt;BR /&gt;concatenate&lt;BR /&gt;Load&lt;BR /&gt;VBELN,&lt;BR /&gt;VBELN as SALESDOC,&lt;BR /&gt;VBELN/POS as SALESDOCITEM,&lt;BR /&gt;2 as reason,&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;Resident VBAP_temp&lt;BR /&gt;where GRUND&amp;lt;0;&lt;BR /&gt;Drop Table VBAP_temp;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Actually I want VBAK Inner Join VBAP, I think I cannot do it here?&lt;/P&gt;&lt;P&gt;Any other way to do it keeping optimized load in tact!&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 14:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217797#M715187</guid>
      <dc:creator />
      <dc:date>2010-09-24T14:20:18Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217798#M715188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sraven,&lt;/P&gt;&lt;P&gt;Like you said it should be at least VBAK left join VBAP. Concatenate will not work. If you're worried about the load speed why don't you keep the tables separate? In that case you can use the function 'keep' to make sure there is no header in VBAK without line positions in VBAP. Or why don't you want to do a join?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 15:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217798#M715188</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T15:46:52Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217799#M715189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;The problem is that I have a lot of tables in the Data model and I am compressing to reduce the overall data and in this process reducing the tables with the help of Joins. Keep is a good advice ok, that I can do but I think still I have two tables. Innerjoin to make work I have to load again the same table like this&lt;/P&gt;&lt;P&gt;Load * resident VBAK&lt;/P&gt;&lt;P&gt;InnerJoin&lt;/P&gt;&lt;P&gt;Load* resident VBAP&lt;/P&gt;&lt;P&gt;innerjoin&lt;/P&gt;&lt;P&gt;Load * resident VBEP&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;As you see I am loading tables 2 times. I think this can be done in another way with out loading the same table again. Left Keep again will not merge. I need here Join to merge.&lt;/P&gt;&lt;P&gt;may be someone can help&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 15:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217799#M715189</guid>
      <dc:creator />
      <dc:date>2010-09-24T15:59:10Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217800#M715190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;To do the join you don't need to load the table 2 times. The condition "where exists (VBELN, VBELN);" is not necessary since the inner join will automatically verifty that no VBELN that doesn't exist in the 2 tables is in the final table. I assume that you are using VBELN as you key, correct?&lt;/P&gt;&lt;P&gt;If you have the table,&lt;/P&gt;&lt;P&gt;VBAK:&lt;BR /&gt;VBELN | KUNNR&lt;BR /&gt;1 | 2341&lt;BR /&gt;2 | 3928&lt;BR /&gt;3 | 2928&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;VBAP:&lt;BR /&gt;VBELN | POSNR&lt;BR /&gt;1 | 1&lt;BR /&gt;1 | 2&lt;BR /&gt;2 | 1&lt;/P&gt;&lt;P&gt;your final result without doing the exists is:&lt;/P&gt;&lt;P&gt;VBELN | KUNNR | POSNR&lt;BR /&gt;1 | 2341 | 1&lt;BR /&gt;1 | 2341 | 2&lt;BR /&gt;2 | 3928 | 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217800#M715190</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T16:15:41Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217801#M715191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again. You are absolutely right but what my problem is, I think you are not getting.&lt;/P&gt;&lt;P&gt;Normal 0 21 false false false DE X-NONE X-NONE MicrosoftInternetExplorer4&lt;/P&gt;&lt;P&gt;VBAK:&lt;BR /&gt;VBELN | KUNNR&lt;BR /&gt;1 | 2341&lt;BR /&gt;2 | 3928&lt;BR /&gt;3 | 2928&lt;/P&gt;&lt;P&gt;inner Join&lt;/P&gt;&lt;P&gt;VBAP: But here in VBAP I need to concatenate two tables into one because of ABGRU&amp;gt;0 and ABGRU&amp;lt;0&lt;/P&gt;&lt;P&gt;VBAP:&lt;/P&gt;&lt;P&gt;Load * from VBAP where ABGRU&amp;gt;0(Flag1);&lt;/P&gt;&lt;P&gt;concatenate Load * from VBAP where ABGRU&amp;lt;0(Flag2);&lt;/P&gt;&lt;P&gt;VBELN|POSNR|ABGRU|Flag&lt;/P&gt;&lt;P&gt;1|1|01|1&lt;/P&gt;&lt;P&gt;1|2||2&lt;/P&gt;&lt;P&gt;2|1|02|1&lt;/P&gt;&lt;P&gt;[/ncode]&lt;/P&gt;&lt;P&gt;And Here innerjoin does not work because I am concatenating. Thats why I loaded VBAP_temp(More than 4 million records) reduced it with where exists and then concatenated(400 Thousand records) to reduce the Data.&lt;/P&gt;&lt;P&gt;If I need to innerjoin VBAK to VBAP then I must again reload the Data from VBAK and then Innerjoin VBAP.&lt;/P&gt;&lt;P&gt;Can you recommed otherway here??&lt;/P&gt;&lt;P&gt;Thanks for your answer. Hope I am clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217801#M715191</guid>
      <dc:creator />
      <dc:date>2010-09-24T17:08:21Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217802#M715192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree. So I would suggest creating the additional columns (if(GRUND&amp;gt;0, 1, 2) as reason, salesdocitem, etc.), logic and concatenate when creating the QVD where you won't see much impact in the reload time since it is slower. Then just do the inner join in the this QVW.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217802#M715192</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T17:47:44Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217803#M715193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean loading second time after concatenating and Innerjoin with VBAK. That I already did. I am seeing for a better solution. Anyway thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217803#M715193</guid>
      <dc:creator />
      <dc:date>2010-09-24T17:58:06Z</dc:date>
    </item>
    <item>
      <title>SAP Tables Join and concatenate together</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217804#M715194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sraven,&lt;/P&gt;&lt;P&gt;No. I'm saying that you can add the necessary data to VBAP when you pull the information from SAP and create a VBAP.QVD that doesn't have to be concatenated before the inner join, but maybe that's not a good idea after all.&lt;/P&gt;&lt;P&gt;Why are you concatenating VBAP with itself when you can create a column like this:&lt;/P&gt;&lt;P&gt;if(GRUND&amp;lt;0,2,1) as Reason&lt;/P&gt;&lt;P&gt;Tell me if I'm still missing some detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 18:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Tables-Join-and-concatenate-together/m-p/217804#M715194</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T18:14:40Z</dc:date>
    </item>
  </channel>
</rss>

