<?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: Parameter cannot be converted to anumber in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735293#M2020723</link>
    <description>&lt;P&gt;You activated the &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abenabap_sql_strictmode_740_sp08.htm?file=abenabap_sql_strictmode_740_sp08.htm#@@ITOC@@ABENABAP_SQL_STRICTMODE_740_SP08_1"&gt;strict mode&lt;/A&gt; for ABAP SQL statement as soon as you used the @ in the resulting internal table. So use also  @p_sum for the host variable.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 16:54:57 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2023-11-28T16:54:57Z</dc:date>
    <item>
      <title>Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735291#M2020721</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
  &lt;P&gt;I've created in include SEL this sum parameter:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_sum type i.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In the CLI include I WROTE THIS select:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CLASS lcl_main_sfp IMPLEMENTATION.&lt;BR /&gt;&lt;BR /&gt;  METHOD select_data.&lt;BR /&gt;&lt;BR /&gt;    SELECT mara~matnr, mara~mtart, makt~maktx, mara~ersda&lt;BR /&gt;      UP TO p_sum ROWS&lt;BR /&gt;      FROM mara&lt;BR /&gt;      INNER JOIN makt&lt;BR /&gt;      ON makt~matnr = mara~matnr&lt;BR /&gt;    INTO CORRESPONDING FIELDS OF TABLE @mt_table.&lt;BR /&gt;&lt;BR /&gt;  ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;and I get the following error:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2229156-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What can be the problem? is't this from the same type?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 14:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735291#M2020721</guid>
      <dc:creator>8it8</dc:creator>
      <dc:date>2023-11-28T14:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735292#M2020722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SELECT&lt;BR /&gt;    *&lt;BR /&gt;    UP TO @p_num ROWS&lt;BR /&gt;    INTO TABLE @DATA(it_tmp)&lt;BR /&gt;    FROM mara INNER JOIN makt&lt;BR /&gt;    on mara~matnr = makt~matnr.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Nov 2023 16:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735292#M2020722</guid>
      <dc:creator>Eduardo-CE</dc:creator>
      <dc:date>2023-11-28T16:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735293#M2020723</link>
      <description>&lt;P&gt;You activated the &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abenabap_sql_strictmode_740_sp08.htm?file=abenabap_sql_strictmode_740_sp08.htm#@@ITOC@@ABENABAP_SQL_STRICTMODE_740_SP08_1"&gt;strict mode&lt;/A&gt; for ABAP SQL statement as soon as you used the @ in the resulting internal table. So use also  @p_sum for the host variable.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 16:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735293#M2020723</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-11-28T16:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735294#M2020724</link>
      <description>&lt;P&gt;It works in S/4HANA 1909(ABAP Platform 1909). what is the version of your system?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 17:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735294#M2020724</guid>
      <dc:creator>thilakan_t</dc:creator>
      <dc:date>2023-11-28T17:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735295#M2020725</link>
      <description>&lt;P&gt;so how to deal with this?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 06:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735295#M2020725</guid>
      <dc:creator>8it8</dc:creator>
      <dc:date>2023-11-29T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735296#M2020726</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I really had to get rid of the  @ from the table and actually there was another issue (very simple...)&lt;/P&gt;&lt;P&gt; the SEL INCLUDE was below the the CLI include.....&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735296#M2020726</guid>
      <dc:creator>8it8</dc:creator>
      <dc:date>2023-11-29T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735297#M2020727</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;8it8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To answer your quote "how to deal with this", did you realize what Raymond and Eduardo have said before you ask? (@p_sum instead of p_sum)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735297#M2020727</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-11-29T08:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter cannot be converted to anumber</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735298#M2020728</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;8it8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your SELECT statement would be syntactically correct if:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;P_NUM is indeed of I type,&lt;/LI&gt;&lt;LI&gt;P_NUM is escaped with @ as you have already escaped MT_TABLE with @ thus using the new Open SQL syntax.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You have declared P_NUM as a parameter with I type, still you get the error about P_NUM not being a number. That is strange and I suspect that you have also defined P_NUM as a parameter of the SELECT_DATA method. &lt;/P&gt;&lt;P&gt;Would you be able to share the declaration of the method?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-cannot-be-converted-to-anumber/m-p/12735298#M2020728</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-11-29T08:22:59Z</dc:date>
    </item>
  </channel>
</rss>

