<?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: substring function of SAP standard code not compiling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942499#M1693271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the below link for your reference.&lt;/P&gt;&lt;P&gt;&lt;A href="http://maxdb.sap.com/doc/7_8/44/d901b762684426e10000000a155369/content.htm"&gt;http://maxdb.sap.com/doc/7_8/44/d901b762684426e10000000a155369/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 12:27:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-08-14T12:27:10Z</dc:date>
    <item>
      <title>substring function of SAP standard code not compiling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942495#M1693267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-GB"&gt;The following code was copied from here:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;&lt;SPAN lang="EN-GB"&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abenstring_function_shift_abexa.htm"&gt;http://help.sap.com/abapdocu_702/en/abenstring_function_shift_abexa.htm&lt;/A&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-GB"&gt;When I try to complile it gives syntax error:-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB"&gt;FIELD "STRLEN(" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN lang="EN-GB"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please advice what is wrong....&amp;nbsp; We are on SAP ECC 6.0 with the following details:-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP_BASIS 701 0003 SAPKB70103 SAP Basis Component&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP_ABA 701 0003 SAPKA70103 Cross-Application Component&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PI_BASIS 701 0003 SAPK-70103INPIBASIS Basis Plug-In&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ST-PI 2008_1_700 0005 SAPKITLRD5 SAP Solution Tools Plug-In&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP_BS_FND 701 0003 SAPK-70103INSAPBSFND SAP Business Suite Foundation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP_BW 701 0003 SAPKW70103 SAP Business Warehouse&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GRCPINW V1000_700 0007 SAPK-10307INGRCPINW SAP GRC NW Plug-in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP_AP 700 0015 SAPKNA7015 SAP Application Platform&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB"&gt;*****************EXAMPLE CODE********************************&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CLASS demo IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD main.&lt;/P&gt;&lt;P&gt;DATA result TYPE string VALUE 'oo'.&lt;/P&gt;&lt;P&gt;WRITE result.&lt;/P&gt;&lt;P&gt;DO strlen( result ) / 2 - 1 TIMES.&lt;/P&gt;&lt;P&gt;result =&lt;/P&gt;&lt;P&gt;shift_left( val = substring( val = result&lt;/P&gt;&lt;P&gt;len = strlen( result ) / 2 )&lt;/P&gt;&lt;P&gt;circular = 1 ) &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;shift_right( val = substring( val = result&lt;/P&gt;&lt;P&gt;off = strlen( result ) / 2 )&lt;/P&gt;&lt;P&gt;circular = 1 ).&lt;/P&gt;&lt;P&gt;WRITE / result.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;DO strlen( result ) / 2 - 1 TIMES.&lt;/P&gt;&lt;P&gt;result =&lt;/P&gt;&lt;P&gt;shift_right( val = substring( val = result&lt;/P&gt;&lt;P&gt;len = strlen( result ) / 2 )&lt;/P&gt;&lt;P&gt;circular = 1 ) &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;shift_left( val = substring( val = result&lt;/P&gt;&lt;P&gt;off = strlen( result ) / 2 )&lt;/P&gt;&lt;P&gt;circular = 1 ).&lt;/P&gt;&lt;P&gt;WRITE / result.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;demo=&amp;gt;main( ).&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 09:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942495#M1693267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-14T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: substring function of SAP standard code not compiling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942496#M1693268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for providing all relevant information (a huge exception, unfortunately).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are on AS ABAP 701, however the example you are quoting is for 702. 702 introduced many new features, enhanced logic for expression positions being just one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abennews-71-expressions.htm"&gt;http://help.sap.com/abapdocu_702/en/abennews-71-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your release, you will have to split your statements into several pieces, e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #000000;"&gt;DO strlen( result ) / 2 - 1 TIMES.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #000000;"&gt;i = strlen( result ) / 2 - 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #000000;"&gt;DO i TIMES.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;and so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thomas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 11:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942496#M1693268</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-14T11:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: substring function of SAP standard code not compiling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942497#M1693269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for replying. Please can you advice how i can split this according to my version. The expression in bold is also giving similar error..or shall i say there is no substring function at all on 701? thanks alot in advance......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;DATA&amp;nbsp; result TYPE string. &lt;BR /&gt;... &lt;BR /&gt;&lt;STRONG&gt;result = substring( val = 'ABCDEFGH' off = 2 len = 2 ). &lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 11:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942497#M1693269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-14T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: substring function of SAP standard code not compiling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942498#M1693270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, only available from 702. Please read about the release specfic changes in the ABAP documentation (link aready known).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess above is the same as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;val = 'ABCDEFGH'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;result = val+2(2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try solving the other ones yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 11:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942498#M1693270</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-14T11:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: substring function of SAP standard code not compiling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942499#M1693271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the below link for your reference.&lt;/P&gt;&lt;P&gt;&lt;A href="http://maxdb.sap.com/doc/7_8/44/d901b762684426e10000000a155369/content.htm"&gt;http://maxdb.sap.com/doc/7_8/44/d901b762684426e10000000a155369/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 12:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-function-of-sap-standard-code-not-compiling/m-p/8942499#M1693271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-14T12:27:10Z</dc:date>
    </item>
  </channel>
</rss>

