<?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: Alternative Logic - Required !!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176447#M1198456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in select query use Where ebeln ne PO_NO....for all the 3 fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 07:36:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-25T07:36:28Z</dc:date>
    <item>
      <title>Alternative Logic - Required !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176446#M1198455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to write a function module for search the matching records in the table ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field names : ebeln,bukrs,lifnr  (3 fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user will give any values from these three fields that may (all three fields or 1 field or 2 fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when he clicks execute it should come out the matching selection from the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My logic for the above requirment is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*step-1 :&lt;/P&gt;&lt;P&gt;select ebeln bukrs lifnr from ekko into CORRESPONDING FIELDS OF TABLE lt_ekko1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*step-2 &lt;/P&gt;&lt;P&gt;if po_no is not initial.&lt;/P&gt;&lt;P&gt;    delete lt_ekko1 where ebeln ne po_no.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*step-3&lt;/P&gt;&lt;P&gt;if co_code is not INITIAL.&lt;/P&gt;&lt;P&gt;   delete lt_ekko1 where bukrs ne co_code.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*step-4&lt;/P&gt;&lt;P&gt;if vendor is not INITIAL.&lt;/P&gt;&lt;P&gt;   delete lt_ekko1 where lifnr ne vendor.&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;*now my internal table contains the final output in lt_ekko1 internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*this is perfecftly working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the case of more fields  i need to use more lines of code , instead of this , could you suggest&lt;/P&gt;&lt;P&gt;alternative logic to minimise the code for achieving this result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 07:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176446#M1198455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T07:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Logic - Required !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176447#M1198456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in select query use Where ebeln ne PO_NO....for all the 3 fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 07:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176447#M1198456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T07:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Logic - Required !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176448#M1198457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi. thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it won't solve my problem. if if the user fills only bukrs and lifnr field alone and leaves the po_no FIELD as blank. then it will fetch wrong no of records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 07:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176448#M1198457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T07:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Logic - Required !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176449#M1198458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;Declare ranges for all your search fields and fill your input values in ranges. and use it in selct query.&lt;/P&gt;&lt;P&gt;for e.g. select lifnr from lfa1 into table it_lfa1 where lifnr in r_lifnr. similarly all other fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 07:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176449#M1198458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Logic - Required !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176450#M1198459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. This is what i wanted ... thank you ....very much....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have the code for this you please post it here, it could be helpful for the forum.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 07:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-logic-required/m-p/5176450#M1198459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T07:50:04Z</dc:date>
    </item>
  </channel>
</rss>

