<?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 Object dependency to read substring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-dependency-to-read-substring/m-p/10041571#M1808998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 14px; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;Is it possible to evaluate a substring in an object dependency? I want to write a simple OD that defaults a char field to a month code (the 2 digit month) based on another field which stores a date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;Something similar to this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;$set_default ($self,Z_PUB_MNTH,'01')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Z_ON_SALE_DATE+4(2) = '01'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'date stored as string yyyyddmm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;I'm getting these errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;E28031 Comparison operator required&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;E28024 Syntax error in simple action/procedure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 14px; font-family: calibri, verdana, arial, sans-serif;"&gt;Any help would be much appreciated. Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jan 2014 15:54:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-08T15:54:06Z</dc:date>
    <item>
      <title>Object dependency to read substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-dependency-to-read-substring/m-p/10041571#M1808998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 14px; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;Is it possible to evaluate a substring in an object dependency? I want to write a simple OD that defaults a char field to a month code (the 2 digit month) based on another field which stores a date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;Something similar to this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;$set_default ($self,Z_PUB_MNTH,'01')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Z_ON_SALE_DATE+4(2) = '01'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'date stored as string yyyyddmm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;I'm getting these errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;E28031 Comparison operator required&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;E28024 Syntax error in simple action/procedure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: calibri, verdana, arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 14px; font-family: calibri, verdana, arial, sans-serif;"&gt;Any help would be much appreciated. Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 15:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-dependency-to-read-substring/m-p/10041571#M1808998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-08T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Object dependency to read substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-dependency-to-read-substring/m-p/10041572#M1808999</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;I'm not really used to that syntax but I think this is not possible within an OD...&lt;/P&gt;&lt;P&gt;Can't you use a function module to fetch a char value (with Z_ON_SALE_DATE as input parameter and Z_PUB_MNTH as output)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway just a guess &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 01:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-dependency-to-read-substring/m-p/10041572#M1808999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-11T01:36:28Z</dc:date>
    </item>
  </channel>
</rss>

