<?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 ABAP syntax check: No string calculation permitted here - why? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616389#M25564</link>
    <description>&lt;P&gt;I have this method:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* &amp;lt;SIGNATURE&amp;gt;---------------------------------------------------------------------------------------+
* | Instance Private Method ZCL_MF01_DP_OUTPUT-&amp;gt;EQUIPMENTS_MAP
* +-------------------------------------------------------------------------------------------------+
* | [---&amp;gt;] IO_DP                          TYPE REF TO ZCL_CS01_CONFIRM_DP_ORDER
* | [---&amp;gt;] IT_CONF_T                      TYPE        GTY_T_TIME_CONFS
* | [---&amp;gt;] IT_CONF_M                      TYPE        GTY_T_MAT_CONFS
* | [---&amp;gt;] IT_EQUI                        TYPE        GTY_T_EQUIPMENTS
* | [&amp;lt;-()] RS_RES                         TYPE        ZPO_ORDER_DT_EQUIPMENTS
* +--------------------------------------------------------------------------------------&amp;lt;/SIGNATURE&amp;gt;
  method equipments_map.
    rs_res = value #(
      equipment = value #(
        for s_equi in it_equi (
          equipment_number = |{ s_equi-equipment alpha = out }| *&amp;lt;--
          equipment_description = space
          serial_number = space
          time_confirmations = value #(
            time_confirmation = value #(
              for s_conft in it_conf_t where (
                equipment = s_equi-equipment )
              ( time_conf_map( s_conft ) )
            ) " time_confirmation
          ) " time_confirmations
          material_confirmations = value #(
            material_confirmation = value #(
              for s_confm in it_conf_m where (
                equipment = s_equi-equipment )
              ( mat_conf_map( s_confm ) )
            ) " material_confirmation
          ) " mat_confs
          maintenance = value #(
            warranty = space
            warranty_until = space
            maintenance_contract = space
          ) " maint
        ) " table line
      ) " equipment
    ). " equipments.
  endmethod.


&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;On the marked line, i get the syntax error"String calculation not permitted here", but I do not understand, why?&lt;/P&gt;
  &lt;P&gt;ABAP-Version:&lt;BR /&gt;740 SP 0018&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 08:10:33 GMT</pubDate>
    <dc:creator>jrgkraus</dc:creator>
    <dc:date>2018-04-27T08:10:33Z</dc:date>
    <item>
      <title>ABAP syntax check: No string calculation permitted here - why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616389#M25564</link>
      <description>&lt;P&gt;I have this method:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* &amp;lt;SIGNATURE&amp;gt;---------------------------------------------------------------------------------------+
* | Instance Private Method ZCL_MF01_DP_OUTPUT-&amp;gt;EQUIPMENTS_MAP
* +-------------------------------------------------------------------------------------------------+
* | [---&amp;gt;] IO_DP                          TYPE REF TO ZCL_CS01_CONFIRM_DP_ORDER
* | [---&amp;gt;] IT_CONF_T                      TYPE        GTY_T_TIME_CONFS
* | [---&amp;gt;] IT_CONF_M                      TYPE        GTY_T_MAT_CONFS
* | [---&amp;gt;] IT_EQUI                        TYPE        GTY_T_EQUIPMENTS
* | [&amp;lt;-()] RS_RES                         TYPE        ZPO_ORDER_DT_EQUIPMENTS
* +--------------------------------------------------------------------------------------&amp;lt;/SIGNATURE&amp;gt;
  method equipments_map.
    rs_res = value #(
      equipment = value #(
        for s_equi in it_equi (
          equipment_number = |{ s_equi-equipment alpha = out }| *&amp;lt;--
          equipment_description = space
          serial_number = space
          time_confirmations = value #(
            time_confirmation = value #(
              for s_conft in it_conf_t where (
                equipment = s_equi-equipment )
              ( time_conf_map( s_conft ) )
            ) " time_confirmation
          ) " time_confirmations
          material_confirmations = value #(
            material_confirmation = value #(
              for s_confm in it_conf_m where (
                equipment = s_equi-equipment )
              ( mat_conf_map( s_confm ) )
            ) " material_confirmation
          ) " mat_confs
          maintenance = value #(
            warranty = space
            warranty_until = space
            maintenance_contract = space
          ) " maint
        ) " table line
      ) " equipment
    ). " equipments.
  endmethod.


&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;On the marked line, i get the syntax error"String calculation not permitted here", but I do not understand, why?&lt;/P&gt;
  &lt;P&gt;ABAP-Version:&lt;BR /&gt;740 SP 0018&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 08:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616389#M25564</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2018-04-27T08:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP syntax check: No string calculation permitted here - why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616390#M25565</link>
      <description>&lt;P&gt;I think I've seen this before - do you get the same error without &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;alpha=out&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 08:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616390#M25565</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-04-27T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP syntax check: No string calculation permitted here - why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616391#M25566</link>
      <description>&lt;P&gt;To make a long thing short:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA:
  BEGIN OF line,
    colt type string,
    coli TYPE i,
  END OF line.
line = VALUE #( colt = 1 + 1 ).
line = VALUE #( coli = `...` ).
line-coli = |...|.
line-coli = `...` &amp;amp;&amp;amp; `...`.
line = VALUE #( coli = CONV i( |...| ) ).
line = VALUE #( coli = CONV i( `...` &amp;amp;&amp;amp; `...` ) ).
line = VALUE #( coli = |...| ).                    "Error
line = VALUE #( coli = `...` &amp;amp;&amp;amp; `...` ).           "Error
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Let's say, we have a small flaw in assigning string expressions to incompatible structure components in the VALUE operator. &lt;/P&gt;
  &lt;P&gt;A workaround is the explicit usage of CONV. Development is notified.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 09:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616391#M25566</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-04-27T09:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP syntax check: No string calculation permitted here - why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616392#M25567</link>
      <description>&lt;P&gt;Horst,&lt;/P&gt;
  &lt;P&gt;"&lt;EM&gt;Development is notified&lt;/EM&gt;".&lt;/P&gt;
  &lt;P&gt;Is this team into Kernel side Development ?&lt;/P&gt;
  &lt;P&gt;Just curious to know which side of development handles these kind of issues.&lt;/P&gt;
  &lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 09:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616392#M25567</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2018-04-27T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP syntax check: No string calculation permitted here - why?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616393#M25568</link>
      <description>&lt;P&gt;Sure, Kernel development, who else ...&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 09:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-syntax-check-no-string-calculation-permitted-here-why/m-p/616393#M25568</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-04-27T09:20:25Z</dc:date>
    </item>
  </channel>
</rss>

