<?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: Regrading IF statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061868#M1354070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check for initial and not 0 for data type date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arvind Soni on Sep 16, 2009 3:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2009 10:16:03 GMT</pubDate>
    <dc:creator>arvind_soni</dc:creator>
    <dc:date>2009-09-16T10:16:03Z</dc:date>
    <item>
      <title>Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061862#M1354064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code in that i am able to fetch the w_duedate for first and third if condition.&lt;/P&gt;&lt;P&gt;But i am not able to fetch the w_duedate for the second if condition can anyone let me know how &lt;/P&gt;&lt;P&gt;deal with this issue.  I have made bold for the if condition which is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF fs_terms-ztag1 NE 0 AND&lt;/P&gt;&lt;P&gt;       fs_terms-ztag2 NE 0.&lt;/P&gt;&lt;P&gt;  w_days = fs_terms-ztag3.&lt;/P&gt;&lt;P&gt;     w_duedate = fs_bseg-zfbdt + fs_terms-ztag3.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;IF fs_terms-ztag3 EQ 0 AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;fs_terms-ztag1 NE 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;w_days = fs_terms-ztag2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;w_duedate = fs_bseg-zfbdt + fs_terms-ztag2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF fs_terms-ztag2 EQ 0 AND&lt;/P&gt;&lt;P&gt;       fs_terms-ztag3 EQ 0.&lt;/P&gt;&lt;P&gt;    w_days = fs_terms-ztag1.&lt;/P&gt;&lt;P&gt;   w_duedate = fs_bseg-zfbdt + fs_terms-ztag1.&lt;/P&gt;&lt;P&gt;     ENDIF.&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;VENk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 09:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061862#M1354064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T09:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061863#M1354065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;Check Condition Properly, It will not be fulfilled thats y its not fetching data second time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 09:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061863#M1354065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T09:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061864#M1354066</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;If the IF condition is not working it just means that the condition is not statisfied. There can be no other reason for this when the syntax is correct.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in the internal table fs_terms for any records where the field ztag3 is zero and ztag1 is not zero. Since you have used AND, but these conditions must be satisfied. &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;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 09:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061864#M1354066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061865#M1354067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the data type of the fields ztag1, ztag2 &amp;amp; ztag3 , I'm hoping it numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 09:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061865#M1354067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T09:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061866#M1354068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please tell us whats the value going to thse two fields and how have you defined the type of those fields&lt;/P&gt;&lt;P&gt;fs_terms-ztag3 EQ 0 AND&lt;/P&gt;&lt;P&gt;fs_terms-ztag1 NE 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 09:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061866#M1354068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T09:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061867#M1354069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Itu2019s based on data type; Try below 3 options mostly it will work &lt;/P&gt;&lt;P&gt;1) If itu2019s character the try with SPACE&lt;/P&gt;&lt;P&gt;2) Otherwise try with INITIAL.&lt;/P&gt;&lt;P&gt;3) Also try with  &lt;STRONG&gt;u20180u2019&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salil....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 10:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061867#M1354069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061868#M1354070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check for initial and not 0 for data type date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arvind Soni on Sep 16, 2009 3:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 10:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061868#M1354070</guid>
      <dc:creator>arvind_soni</dc:creator>
      <dc:date>2009-09-16T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061869#M1354071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data type is DEC (BSEG-ZBD2T) and i have also checked with initial space.&lt;/P&gt;&lt;P&gt;But still it is not working. Please anymore answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 10:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061869#M1354071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061870#M1354072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try with IS INITIAL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF fs_terms-ztag3 IS INITIAL AND
fs_terms-ztag1 IS NOT INITIAL.
w_days = fs_terms-ztag2.
w_duedate = fs_bseg-zfbdt + fs_terms-ztag2.
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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 10:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061870#M1354072</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-16T10:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061871#M1354073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know why it should not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least this code is working in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF fs_terms,
        ztag1 LIKE bseg-zbd2t,
        ztag2 LIKE bseg-zbd2t,
        ztag3 LIKE bseg-zbd2t,
      END OF fs_terms.

fs_terms-ztag1 = 12.

IF fs_terms-ztag3 EQ 0 AND
fs_terms-ztag1 NE 0.
  WRITE 'Valid condition'.
ENDIF.


"  Output : Valid condition

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course , the assumption is that there is a non zero value in ztag1 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 10:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061871#M1354073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T10:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061872#M1354074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all i have debugged the program there was no entries in internal table.&lt;/P&gt;&lt;P&gt;CLosed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 11:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061872#M1354074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061873#M1354075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should have done this before posting the question here. From now check all the possibilities and still if you are stuck only then post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 11:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061873#M1354075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regrading IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061874#M1354076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vikranth Reddy i have done it before posting itself and found it is working fine for all my conditions.&lt;/P&gt;&lt;P&gt;But except 2 payment terms(0009, 0006 ) is not working which i have checked after posting. So with this&lt;/P&gt;&lt;P&gt;i hope i am not wrong posting my query.&lt;/P&gt;&lt;P&gt;If possible try to see i have posted another query wth which you can understand.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 11:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-if-statement/m-p/6061874#M1354076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-16T11:28:09Z</dc:date>
    </item>
  </channel>
</rss>

