<?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 Connector BAPI: Return multiple tables from one statement. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249960#M1230650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I try to create a SAP BAPI Connection and read from one function multiple tables at the same time. In &lt;A href="http://help.qlik.com/en-US/Connectors/Subsystems/SAP_Connectors_Help/Content/6.2/QV-connection/SAP-BAPI-connection.htm" target="_blank"&gt;QlikView Help&lt;/A&gt;&lt;A href="http://help.qlik.com/en-US/Connectors/Subsystems/SAP_Connectors_Help/Content/6.2/QV-connection/SAP-BAPI-connection.htm" target="_blank"&gt; &lt;/A&gt;I found:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Some Functions return more than one table, but &lt;/SPAN&gt;&lt;SPAN class="PrimaryQVGenericName" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;QlikView&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt; can only handle one for each statement. Select the output table you want and then click &lt;/SPAN&gt;&lt;SPAN class="ui_item" style="font-weight: bold; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Add call to script&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to solve this problem with a loop where I call the same function multiple times each with different output.&lt;/P&gt;&lt;P&gt;The problem is that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; for each output the tables has slightly different combination of return value. The reason is that the function should be called only once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Is there another way to solve it or some kind of workaround? &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is some reduced script (the syntax is not quite right but you get the idea):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do while run = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/FUNCTION/]:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "function":"\/FUNCTION/",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "output":"TABLE_NAME1",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "parameters":&lt;/P&gt;&lt;P&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME1", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME2", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME3", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"in", "length":1, "name":"I_MODUS", "optional":true, "type":"CHAR", "value":" " }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sleep 100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/FUNCTION/]:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "function":"\/FUNCTION/",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "output":"TABLE_NAME2",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "parameters":&lt;/P&gt;&lt;P&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME1", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME2", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME3", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"in", "length":1, "name":"I_MODUS", "optional":true, "type":"CHAR", "value":" " }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;let pass = pass + 1;&lt;/P&gt;&lt;P&gt;LOOP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 21:26:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T21:26:37Z</dc:date>
    <item>
      <title>SAP Connector BAPI: Return multiple tables from one statement.</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249960#M1230650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I try to create a SAP BAPI Connection and read from one function multiple tables at the same time. In &lt;A href="http://help.qlik.com/en-US/Connectors/Subsystems/SAP_Connectors_Help/Content/6.2/QV-connection/SAP-BAPI-connection.htm" target="_blank"&gt;QlikView Help&lt;/A&gt;&lt;A href="http://help.qlik.com/en-US/Connectors/Subsystems/SAP_Connectors_Help/Content/6.2/QV-connection/SAP-BAPI-connection.htm" target="_blank"&gt; &lt;/A&gt;I found:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Some Functions return more than one table, but &lt;/SPAN&gt;&lt;SPAN class="PrimaryQVGenericName" style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;QlikView&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt; can only handle one for each statement. Select the output table you want and then click &lt;/SPAN&gt;&lt;SPAN class="ui_item" style="font-weight: bold; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Add call to script&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to solve this problem with a loop where I call the same function multiple times each with different output.&lt;/P&gt;&lt;P&gt;The problem is that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; for each output the tables has slightly different combination of return value. The reason is that the function should be called only once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Is there another way to solve it or some kind of workaround? &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is some reduced script (the syntax is not quite right but you get the idea):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do while run = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/FUNCTION/]:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "function":"\/FUNCTION/",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "output":"TABLE_NAME1",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "parameters":&lt;/P&gt;&lt;P&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME1", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME2", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME3", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"in", "length":1, "name":"I_MODUS", "optional":true, "type":"CHAR", "value":" " }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sleep 100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[/FUNCTION/]:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "function":"\/FUNCTION/",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "output":"TABLE_NAME2",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "parameters":&lt;/P&gt;&lt;P&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME1", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME2", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"out", "name":"TABLE_NAME3", "optional":false },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { "direction":"in", "length":1, "name":"I_MODUS", "optional":true, "type":"CHAR", "value":" " }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;let pass = pass + 1;&lt;/P&gt;&lt;P&gt;LOOP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249960#M1230650</guid>
      <dc:creator />
      <dc:date>2026-01-26T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector BAPI: Return multiple tables from one statement.</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249961#M1230653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have same question. Did you find any answer? There can be a solution with new driver versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function runs around 15 mins.... So, I need to run it twice to get the same results tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 14:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249961#M1230653</guid>
      <dc:creator>coskunist</dc:creator>
      <dc:date>2017-05-18T14:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector BAPI: Return multiple tables from one statement.</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249962#M1230655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Victor, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem can be resolved in the new version of Sap Connector (the bullletin says it works in Qlik sense, you can check)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/5489"&gt;Qlik SAP Connector v6.6 now avaliable&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 05:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249962#M1230655</guid>
      <dc:creator>coskunist</dc:creator>
      <dc:date>2018-01-03T05:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector BAPI: Return multiple tables from one statement.</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249963#M1230659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viktor,&lt;/P&gt;&lt;P&gt;See &lt;A _jive_internal="true" href="https://community.qlik.com/message/1410427#1410427"&gt;https://community.qlik.com/message/1410427#1410427&lt;/A&gt; for instructions how to handle multiple tables in output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 12:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-BAPI-Return-multiple-tables-from-one-statement/m-p/1249963#M1230659</guid>
      <dc:creator>trm</dc:creator>
      <dc:date>2018-01-03T12:13:07Z</dc:date>
    </item>
  </channel>
</rss>

