<?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-ENDIF Doubt?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448207#M212466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if u dont want to perform&lt;/P&gt;&lt;P&gt;supoose u dont want to di if value of a is not eq 5 then wite it as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a type i value 5.&lt;/P&gt;&lt;P&gt;if not ( a eq 5 ) .&lt;/P&gt;&lt;P&gt;write : / 'hi'.&lt;/P&gt;&lt;P&gt;else .&lt;/P&gt;&lt;P&gt;write : / 'ha'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can apply same logic to u r conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful do reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2006 08:54:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-07T08:54:39Z</dc:date>
    <item>
      <title>IF-ENDIF Doubt??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448205#M212464</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 want to skip a specific piece of code in abap say for example, if the partner function and the message type in the control record is DHL/AL3PL8128 and 'ZORDER' respectively and the delivery type is 'LR', then I dont want certain processing to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what i am using is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( CONTROL_RECORD_IN-RCVPRN NE 'DHL'&lt;/P&gt;&lt;P&gt;   OR CONTROL_RECORD_IN-RCVPRN NE 'AL3PL8128' )&lt;/P&gt;&lt;P&gt;AND CONTROL_RECORD_IN-MESTYP NE 'ZORDER'&lt;/P&gt;&lt;P&gt;AND TAB_LIKP-LFART NE 'LR'.&lt;/P&gt;&lt;P&gt;then only perform the processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case only if all three conditions are satisfied then the processing will be skipped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is if I am using the same message type (ZORDER) for a different partner number, then our processing part will be skipped which should not happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a solution specific to my conditions only and for the rest of the cases the processing should run without any glitch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 08:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448205#M212464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: IF-ENDIF Doubt??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448206#M212465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subhash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Writing conditions for NEGATIVE / NOT &lt;/P&gt;&lt;P&gt;   are a little tricky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_IN-RCVPRN = 'DHL' &lt;/P&gt;&lt;P&gt;OR CONTROL_RECORD_IN-RCVPRN = 'AL3PL8128'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;AND CONTROL_RECORD_IN-MESTYP = 'ZORDER'&lt;/P&gt;&lt;P&gt;AND TAB_LIKP-LFART = 'LR'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; YOUR CODE &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;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;(Ya, OR should be there)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 08:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448206#M212465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T08:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF-ENDIF Doubt??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448207#M212466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if u dont want to perform&lt;/P&gt;&lt;P&gt;supoose u dont want to di if value of a is not eq 5 then wite it as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a type i value 5.&lt;/P&gt;&lt;P&gt;if not ( a eq 5 ) .&lt;/P&gt;&lt;P&gt;write : / 'hi'.&lt;/P&gt;&lt;P&gt;else .&lt;/P&gt;&lt;P&gt;write : / 'ha'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can apply same logic to u r conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful do reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 08:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448207#M212466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T08:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: IF-ENDIF Doubt??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448208#M212467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;adding to amits suggestion...use OR instead of AND&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF (
CONTROL_RECORD_IN-RCVPRN = 'DHL' 
&amp;lt;b&amp;gt;or&amp;lt;/b&amp;gt; CONTROL_RECORD_IN-RCVPRN = 'AL3PL8128'
)
AND CONTROL_RECORD_IN-MESTYP = 'ZORDER'
AND TAB_LIKP-LFART = 'LR'.

ELSE.



ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 09:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448208#M212467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T09:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: IF-ENDIF Doubt??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448209#M212468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF ( NOT ( CONTROL_RECORD_IN-RCVPRN NE 'DHL'&lt;/P&gt;&lt;P&gt;OR CONTROL_RECORD_IN-RCVPRN NE 'AL3PL8128' )&lt;/P&gt;&lt;P&gt;AND CONTROL_RECORD_IN-MESTYP NE 'ZORDER'&lt;/P&gt;&lt;P&gt;AND TAB_LIKP-LFART NE 'LR' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 09:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-endif-doubt/m-p/1448209#M212468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T09:01:44Z</dc:date>
    </item>
  </channel>
</rss>

