<?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: If condition help..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291234#M1023661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi eric first condition is working but for kna1 the condition is not working its going to this else if record is there or not there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 13:02:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T13:02:10Z</dc:date>
    <item>
      <title>If condition help.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291231#M1023658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the below code i need to check whether the claim-brand doesnt contain any car,bry,pay if it contains any one then it need to take wa_claim-brand  else if wa_claim-brand doenst contain any car, bry,pay then it should read kna1  and check the wa_kna1-katr8 not equal to car, bry, pay if the kna1-katr8 doesnt contain the above then it should pick the brand as car else it should use kna1-katr8 , but the code below is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF ( wa_claim-brand NE c_car OR&lt;/P&gt;&lt;P&gt;          wa_claim-brand NE c_bry OR&lt;/P&gt;&lt;P&gt;           wa_claim-brand NE c_pay ) .&lt;/P&gt;&lt;P&gt;       READ TABLE i_kna1 into wa_kna1 WITH KEY kunnr = wa_claim-sapcustomer.&lt;/P&gt;&lt;P&gt;          IF ( wa_kna1-katr8 NE c_car OR&lt;/P&gt;&lt;P&gt;                wa_kna1-katr8 NE c_bry OR&lt;/P&gt;&lt;P&gt;                 wa_kna1-katr8 NE c_pay ).&lt;/P&gt;&lt;P&gt;            IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;               wa_cust_mvmt-brand = c_car.&lt;/P&gt;&lt;P&gt;               ELSE.&lt;/P&gt;&lt;P&gt;               wa_cust_mvmt-brand = wa_kna1-katr8.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;       wa_cust_mvmt-brand = wa_claim-brand.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291231#M1023658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: If condition help.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291232#M1023659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the conditions replace all ORs with ANDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291232#M1023659</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-30T12:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: If condition help.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291233#M1023660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi populate variables.. into the ranges.....and use it in the if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_brand-low  =  c_car.&lt;/P&gt;&lt;P&gt;r_brand-sign = 'E'.&lt;/P&gt;&lt;P&gt;r_brand-option = EQ'.&lt;/P&gt;&lt;P&gt;append r_brand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_brand-low  =  c_bry .&lt;/P&gt;&lt;P&gt;r_brand-sign = 'E'.&lt;/P&gt;&lt;P&gt;r_brand-option = EQ'.&lt;/P&gt;&lt;P&gt;append r_brand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_brand-low  = c_pay  .&lt;/P&gt;&lt;P&gt;r_brand-sign = 'E'.&lt;/P&gt;&lt;P&gt;r_brand-option = EQ'.&lt;/P&gt;&lt;P&gt;append r_brand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_claim-brand  in r_brand  .&lt;/P&gt;&lt;P&gt;do some thing..&lt;/P&gt;&lt;P&gt;do the same thing for the katr8&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;wa_cust_mvmt-brand = wa_claim-brand.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291233#M1023660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: If condition help.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291234#M1023661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi eric first condition is working but for kna1 the condition is not working its going to this else if record is there or not there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291234#M1023661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: If condition help.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291235#M1023662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( wa_claim-brand EQ c_car OR&lt;/P&gt;&lt;P&gt;wa_claim-brand EQ c_bry OR&lt;/P&gt;&lt;P&gt;wa_claim-brand EQ c_pay ) .&lt;/P&gt;&lt;P&gt;wa_cust_mvmt-brand = wa_claim-brand.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;READ TABLE i_kna1 into wa_kna1 WITH KEY kunnr = wa_claim-sapcustomer.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;IF ( wa_kna1-katr8  EQ c_car OR&lt;/P&gt;&lt;P&gt;wa_kna1-katr8 EQ c_bry OR&lt;/P&gt;&lt;P&gt;wa_kna1-katr8 EQ c_pay ).&lt;/P&gt;&lt;P&gt;wa_cust_mvmt-brand = wa_kna1-katr8.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;wa_cust_mvmt-brand = c_car.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291235#M1023662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: If condition help.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291236#M1023663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after the READ TABLE, I think you have to check if any record was found: CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition-help/m-p/4291236#M1023663</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-30T13:07:23Z</dc:date>
    </item>
  </channel>
</rss>

