<?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: INITIAL Check on NUMC fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753213#M1460458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fair enuough, i was wrong there . &lt;/P&gt;&lt;P&gt;It should be performed Before and stored in a variable and checked in the if condition . &lt;/P&gt;&lt;P&gt;Sorry for confusion there. &lt;/P&gt;&lt;P&gt;Thanks Lakshman for pointing it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anushya S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 11:14:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-14T11:14:33Z</dc:date>
    <item>
      <title>INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753208#M1460453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any nice way to make a check like "IS INITIAL" for char values on numc fields ? My problem is that there is a '000' in the numc field and so the "IS INITIAL" thinks that there are values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bad solution:&lt;/P&gt;&lt;P&gt;IF field IS NOT INITIAL AND NOT field EQ '000'.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 10:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753208#M1460453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T10:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753209#M1460454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;This is just a logial way of dealing this. Not sure if there is anything else like IS INITIAL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If field + 1 NE  1 &lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;ENDIF . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This case if field is 000 Then field+1 will definitely have 1 and so will not enter the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anushya S on Apr 14, 2010 4:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 10:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753209#M1460454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T10:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753210#M1460455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. This will work but i think there should be a nicer way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem exists when you copy the numc field with its initial values into a char. At this point the initial check will not work anymore on the new char field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best solution at this point is check just before the copy for initial values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753210#M1460455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753211#M1460456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IS INITIAL checks if the variable in concern has the initial values. In your case you have the variable as NUMC &amp;amp; initial value for this is '0' for every position (refer [http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_VALUES.htm|http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_VALUES.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your assumption that "My problem is that there is a '000' in the numc field and so the "IS INITIAL" thinks that there are values" is not correct. And your IS INITIAL check will be OK if  &lt;EM&gt;field&lt;/EM&gt; is defined as numc &amp;amp; has the value '000' &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; problem exists when you copy the numc field with its initial values into a char. At this point the initial check will not work anymore on the new char field. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why dint you mention this before ? Anyways if you have character variable, and you want to check if it contains only zeroes you can go for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF FIELD CO '0'.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Apr 14, 2010 4:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753211#M1460456</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-14T11:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753212#M1460457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you are able to use '+' operator in an IF condition?&lt;/P&gt;&lt;P&gt;You should perform this operation before if condition right... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753212#M1460457</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2010-04-14T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753213#M1460458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fair enuough, i was wrong there . &lt;/P&gt;&lt;P&gt;It should be performed Before and stored in a variable and checked in the if condition . &lt;/P&gt;&lt;P&gt;Sorry for confusion there. &lt;/P&gt;&lt;P&gt;Thanks Lakshman for pointing it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anushya S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753213#M1460458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T11:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: INITIAL Check on NUMC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753214#M1460459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple workaround :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
      v_numc TYPE numc3,
      v_char TYPE char3.

v_char = v_numc.

IF v_char IS NOT INITIAL.
  WRITE: / 'CHAR &amp;amp; NUMC do not have same initial values'.
ENDIF.

IF v_char CO '0'.
  WRITE: / 'I found a work around. Yipeee !!!'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 11:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initial-check-on-numc-fields/m-p/6753214#M1460459</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-14T11:14:34Z</dc:date>
    </item>
  </channel>
</rss>

