<?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 in Abap Cds not working Properly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602052#M24661</link>
    <description>&lt;P&gt;I'm curious - are you able to use standard function module DATE_CONVERT_TO_FACTORYDATE? &lt;A href="https://help.sap.com/viewer/4605bbe706b94a13a97c8befa17f76d9/7.52.1/en-US/48dfbc1aab14280fe10000000a42189c.html?q=calendar%20functions"&gt;Please see documentation.&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Gabriel&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 18:02:57 GMT</pubDate>
    <dc:creator>gabriel_pill-kahan</dc:creator>
    <dc:date>2018-05-29T18:02:57Z</dc:date>
    <item>
      <title>Substring in Abap Cds not working Properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602049#M24658</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am trying to calculate the number of working days remaining in a month. Suppose you are passing 2018-02-20 as a prompt. So it should give me the remaining number of working days coming from Tfacs table in that month.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/157348-capture.png"&gt;capture.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;But the substring function is not considering StartDay which is an integer value.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The error is given below.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;"Function SUBSTRING: at position 2, only Literals, possibly positive integers allowed"&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;If I use a hard coded number in place of StartDay, it works fine.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Please help me on this.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Shawon&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 03:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602049#M24658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-29T03:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in Abap Cds not working Properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602050#M24659</link>
      <description>&lt;P&gt;Did you bother to read the syntax error or the documentation?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The function properly works as documented.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 05:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602050#M24659</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-05-29T05:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in Abap Cds not working Properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602051#M24660</link>
      <description>&lt;P&gt;Hey Horst,&lt;/P&gt;
  &lt;P&gt;Yes I did. I was looking for a workaround to do this.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shawon&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 09:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602051#M24660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-29T09:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in Abap Cds not working Properly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602052#M24661</link>
      <description>&lt;P&gt;I'm curious - are you able to use standard function module DATE_CONVERT_TO_FACTORYDATE? &lt;A href="https://help.sap.com/viewer/4605bbe706b94a13a97c8befa17f76d9/7.52.1/en-US/48dfbc1aab14280fe10000000a42189c.html?q=calendar%20functions"&gt;Please see documentation.&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Gabriel&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 18:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-abap-cds-not-working-properly/m-p/602052#M24661</guid>
      <dc:creator>gabriel_pill-kahan</dc:creator>
      <dc:date>2018-05-29T18:02:57Z</dc:date>
    </item>
  </channel>
</rss>

