<?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: BAPI connection imput table is initial in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776645#M5710</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a similar BAPI with script:&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;RANGE_TAB.SIGN&lt;BR /&gt;RANGE_TAB.OPTION&lt;BR /&gt;RANGE_TAB.LOW&lt;BR /&gt;RANGE_TAB.HIGH&lt;BR /&gt;FROM [ZBAPI_GET_TEST_TABLES]&lt;BR /&gt;WHERE&lt;BR /&gt;GET_DD03L = ' '&lt;BR /&gt;GET_ZDATATYPE_TEST = 'X'&lt;BR /&gt;GET_ZHRGTEST_T = ' '&lt;BR /&gt;GET_ZHRGTEST_T1 = 'X'&lt;BR /&gt;MAXROWS_DD03L = '1000'&lt;BR /&gt;RANGE_TAB = TABLEROW('I', 'GT', '20210101', '00000000');&lt;/P&gt;&lt;P&gt;It is working:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hakan_Ronningberg_0-1611303279703.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47642i99A9DC65CD92A37C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hakan_Ronningberg_0-1611303279703.png" alt="Hakan_Ronningberg_0-1611303279703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the problem might be in the ABAP code of the BAPI. For example this IF statement to check if there are rows in the table does not work:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;IF&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT&amp;nbsp;&lt;/SPAN&gt;range_tab&amp;nbsp;&lt;SPAN class="L0S52"&gt;IS&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;Table&amp;nbsp;contains&amp;nbsp;rows&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;An option that is working is to do it this way:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class="L0S52"&gt;DATA&amp;nbsp;&lt;/SPAN&gt;l_lines&amp;nbsp;&lt;SPAN class="L0S52"&gt;TYPE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;DESCRIBE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE&amp;nbsp;&lt;/SPAN&gt;range_tab&amp;nbsp;&lt;SPAN class="L0S52"&gt;LINES&amp;nbsp;&lt;/SPAN&gt;l_lines&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;IF&amp;nbsp;&lt;/SPAN&gt;l_lines&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;Table&amp;nbsp;contains&amp;nbsp;rows&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;BR /&gt;Håkan&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 08:20:41 GMT</pubDate>
    <dc:creator>Hakan_Ronningberg</dc:creator>
    <dc:date>2021-01-22T08:20:41Z</dc:date>
    <item>
      <title>BAPI connection imput table is initial</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1775502#M5698</link>
      <description>&lt;P&gt;I am using the BAPI connection to invoke a SAP Function Module. Since you cannot use the importing parameters, I use a table to pass a date_range.&lt;/P&gt;&lt;P&gt;The function module checks, if this table is initial. If yes a default date_range is set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the qlik script, if i pass a table row as input, the function module sets the default date anyhow additionaly. So the data is fitered by both date_rages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know, why the input table is interpreted as initial by the funtion module?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 09:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1775502#M5698</guid>
      <dc:creator>qliker2</dc:creator>
      <dc:date>2021-01-19T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI connection imput table is initial</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776355#M5703</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you using a correct input syntax for a table row? Here is an an example of a table TAB with input values for three columns:&lt;BR /&gt;TAB = TABLEROW('VBAP', 'VBELN', 'VBELN01')&lt;/P&gt;&lt;P&gt;What connector release are you using? Before release 7.0.0 there were problems with input to a table.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Håkan&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 14:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776355#M5703</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2021-01-21T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI connection imput table is initial</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776375#M5704</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;We are using Release 7.0.2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the syntax as you mentioned:&amp;nbsp;WHERE I_WLDAT = TABLEROW('I', 'GT', '20210101', '00000000'). The funny thing is, that if I look at the input table in the qlik data model (after I invoked the function module) both rows (the one I passed by qlik and the default from the function module) are in the table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776375#M5704</guid>
      <dc:creator>qliker2</dc:creator>
      <dc:date>2021-01-21T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI connection imput table is initial</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776379#M5705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you using a standard SAP BAPI? Which one in that case? Is the table defined under the 'Tables' tab? Is there an 'Associated Type' ?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Håkan&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776379#M5705</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2021-01-21T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI connection imput table is initial</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776385#M5706</link>
      <description>&lt;P&gt;It is a custom BAPI.&lt;/P&gt;&lt;P&gt;The table is defined under 'Tables' an is of type range_date.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776385#M5706</guid>
      <dc:creator>qliker2</dc:creator>
      <dc:date>2021-01-21T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI connection imput table is initial</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776645#M5710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a similar BAPI with script:&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;RANGE_TAB.SIGN&lt;BR /&gt;RANGE_TAB.OPTION&lt;BR /&gt;RANGE_TAB.LOW&lt;BR /&gt;RANGE_TAB.HIGH&lt;BR /&gt;FROM [ZBAPI_GET_TEST_TABLES]&lt;BR /&gt;WHERE&lt;BR /&gt;GET_DD03L = ' '&lt;BR /&gt;GET_ZDATATYPE_TEST = 'X'&lt;BR /&gt;GET_ZHRGTEST_T = ' '&lt;BR /&gt;GET_ZHRGTEST_T1 = 'X'&lt;BR /&gt;MAXROWS_DD03L = '1000'&lt;BR /&gt;RANGE_TAB = TABLEROW('I', 'GT', '20210101', '00000000');&lt;/P&gt;&lt;P&gt;It is working:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hakan_Ronningberg_0-1611303279703.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47642i99A9DC65CD92A37C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hakan_Ronningberg_0-1611303279703.png" alt="Hakan_Ronningberg_0-1611303279703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the problem might be in the ABAP code of the BAPI. For example this IF statement to check if there are rows in the table does not work:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;IF&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT&amp;nbsp;&lt;/SPAN&gt;range_tab&amp;nbsp;&lt;SPAN class="L0S52"&gt;IS&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;Table&amp;nbsp;contains&amp;nbsp;rows&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;An option that is working is to do it this way:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class="L0S52"&gt;DATA&amp;nbsp;&lt;/SPAN&gt;l_lines&amp;nbsp;&lt;SPAN class="L0S52"&gt;TYPE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;DESCRIBE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE&amp;nbsp;&lt;/SPAN&gt;range_tab&amp;nbsp;&lt;SPAN class="L0S52"&gt;LINES&amp;nbsp;&lt;/SPAN&gt;l_lines&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;IF&amp;nbsp;&lt;/SPAN&gt;l_lines&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;Table&amp;nbsp;contains&amp;nbsp;rows&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;BR /&gt;Håkan&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 08:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/BAPI-connection-imput-table-is-initial/m-p/1776645#M5710</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2021-01-22T08:20:41Z</dc:date>
    </item>
  </channel>
</rss>

