<?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: Loop Where in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992636#M404728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT lt_sales_orders WHERE sales_org = l_salesorg AND&lt;/P&gt;&lt;P&gt;division = l_division AND&lt;/P&gt;&lt;P&gt;distr_chan = l_distchan AND&lt;/P&gt;&lt;P&gt;sales_off = l_salesoff and &lt;/P&gt;&lt;P&gt;sales_org ne space and&lt;/P&gt;&lt;P&gt;division ne space and&lt;/P&gt;&lt;P&gt;distr_chan  ne space and&lt;/P&gt;&lt;P&gt;sales_off ne space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 10:46:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-12T10:46:46Z</dc:date>
    <item>
      <title>Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992630#M404722</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 am trying to use a where condition in my loop statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT lt_sales_orders WHERE sales_org = l_salesorg AND&lt;/P&gt;&lt;P&gt;                                    division = l_division AND&lt;/P&gt;&lt;P&gt;                                    distr_chan = l_distchan AND&lt;/P&gt;&lt;P&gt;                                    sales_off = l_salesoff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, l_salesorg, l_division, l_distchan, l_salesoff are &amp;lt;b&amp;gt;optional&amp;lt;/b&amp;gt; input parameters. This query works well when all these input parameters are non-empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the user does not enter anything in any of the parameters, it tries to match it with a blank entry while I dont want that. Rather I just want to exclude the check for that parameter from my where clause. I know that we can use the 'if else elseif' statement to form a where clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is there a better way of doing it?&lt;/P&gt;&lt;P&gt;( I cannot use the 'LIKE' operator )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992630#M404722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992631#M404723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before loop u can put the &lt;/P&gt;&lt;P&gt;so and so variable  and ..if not initial&lt;/P&gt;&lt;P&gt;then loop statement...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif....&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;vijay pawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992631#M404723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992632#M404724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make the change like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT lt_sales_orders WHERE sales_org IN l_salesorg AND
division IN l_division AND
distr_chan IN l_distchan AND
sales_off IN l_salesoff.

If the input fields  L_salesorg are parameter fields then built range table and use IN operator.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992632#M404724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992633#M404725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare  l_salesorg, l_division, l_distchan, l_salesoff  as Select-options instead of paramters. If you want you can give as No extenstion for all of them.&lt;/P&gt;&lt;P&gt;The once data is fetched into Internal table lt_sales_orders, then use the following Statements:&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT  sales_org IN l_salesorg.&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT  division IN l_division.&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT  distchanIN l_distchan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT  sales_off  IN l_salesoff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992633#M404725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992634#M404726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot put a check in your where clause (to check if it is intial, then skip this field from where condition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, as you mentioned, the option is to do if..elseif..condition check to &lt;/P&gt;&lt;P&gt;frame the where clause...i dont see any other options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992634#M404726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992635#M404727</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;make parameters as select-options and then delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT sales_org IN l_salesorg .&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT division IN l_division.&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT distchanIN l_distchan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete lt_sales_orders where NOT sales_off IN l_salesoff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992635#M404727</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-03-12T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992636#M404728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT lt_sales_orders WHERE sales_org = l_salesorg AND&lt;/P&gt;&lt;P&gt;division = l_division AND&lt;/P&gt;&lt;P&gt;distr_chan = l_distchan AND&lt;/P&gt;&lt;P&gt;sales_off = l_salesoff and &lt;/P&gt;&lt;P&gt;sales_org ne space and&lt;/P&gt;&lt;P&gt;division ne space and&lt;/P&gt;&lt;P&gt;distr_chan  ne space and&lt;/P&gt;&lt;P&gt;sales_off ne space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992636#M404728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992637#M404729</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;Replace your parameters with 'select-options' on selection screen in the following way:&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS l_val FOR ... NO INTERVALS NO-EXTENSION.&lt;/P&gt;&lt;P&gt;From the user point of view they will act similarily to ordinary parameters but in the code you can use 'IN' operator..&lt;/P&gt;&lt;P&gt;LOOP AT ... WHERE VAL IN L_VAL....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992637#M404729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992638#M404730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakar,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this ..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_sales_orders WHERE &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;l_salesorg IS NOT INITIAL AND &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;l_division IS NOT INITIAL AND &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;l_distchan IS NOT INITIAL AND &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;l_salesoff  IS NOT INITIAL AND &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;sales_org = l_salesorg AND&lt;/P&gt;&lt;P&gt;division = l_division AND&lt;/P&gt;&lt;P&gt;distr_chan = l_distchan AND&lt;/P&gt;&lt;P&gt;sales_off = l_salesoff  AND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope,your question is answered.If you have any queries, you are welocome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward,if helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V.Raghavender.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992638#M404730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992639#M404731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Try like this, i hope you will get the solution.&lt;/P&gt;&lt;P&gt;LOOP AT lt_sales_orders WHERE &lt;/P&gt;&lt;P&gt;(sales_org = l_salesorg OR sales_org IS INITIAL)&lt;/P&gt;&lt;P&gt;AND (division = l_division OR division IS INITIAL) &lt;/P&gt;&lt;P&gt;AND (distr_chan = l_distchan OR distr_chan IS INITIAL) AND&lt;/P&gt;&lt;P&gt;sales_off = l_salesoff OR  sales_off IS INITIAL).&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;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992639#M404731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992640#M404732</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;See this is not required when u are dealing with sales area .&lt;/P&gt;&lt;P&gt;loop at where ... &amp;lt;cond1&amp;gt; ...&amp;lt;cond2&amp;gt;..&amp;lt;cond3&amp;gt; ...&amp;lt;cond4&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the select itself u can make the sales area org/dit chnl/division in the where clause .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r using with some sequence or a criteria &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort itab by org dischl division offfice
loop .

read table jtab with key salorg = itab-salsorg
                                   dischl = itab-distchnnl
                                   division = itab-div  
                                   office    = '1001'.

if sy-subrc eq 0.
process operation.


endif.
 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this u can use a case of fixed values also in place of itab .&lt;/P&gt;&lt;P&gt;replace itab- area with ur parameter values and check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this .&lt;/P&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>Mon, 12 Mar 2007 11:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992640#M404732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992641#M404733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using 'IN' operator still tries to match the blank value. Didnt help &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: r_division TYPE RANGE OF bapiorders-division,&lt;/P&gt;&lt;P&gt;        r_division_line LIKE LINE OF r_division,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; r_division_line-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_division_line-option = 'BT'.&lt;/P&gt;&lt;P&gt;  r_division_line-low = l_division.&lt;/P&gt;&lt;P&gt;  r_division_line-high = l_division.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the loop i used: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;division in r_division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other inputs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 11:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992641#M404733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T11:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992642#M404734</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 cannot use 'Select-Options' since this is an RFC and the input data is coming from an external application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use import paramters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 11:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992642#M404734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T11:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992643#M404735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u r builting the RANGE make this change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_division TYPE RANGE OF bapiorders-division,
r_division_line LIKE LINE OF r_division,
if not l_division is initial.  "  Add this line
r_division_line-sign = 'I'.
r_division_line-option = 'EQ'.
r_division_line-low = l_division.
*r_division_line-high = l_division. "Remove this
Append r_division
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 11:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992643#M404735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T11:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992644#M404736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U do one thing... use 'IN' and also include the condition all parameters are not initial..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab where x in p_x&lt;/P&gt;&lt;P&gt;                     and y in p_y&lt;/P&gt;&lt;P&gt;                     and z in p_z&lt;/P&gt;&lt;P&gt;                     and ( x is not initial or&lt;/P&gt;&lt;P&gt;                             y is not initial or&lt;/P&gt;&lt;P&gt;                             z is not initial ) ... in case you wanted the loop even if one of the parameters are not empty. Otherwise repalce the 'OR''s in the loop with AND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got the point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 11:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992644#M404736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Where</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992645#M404737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton for all your inputs.&lt;/P&gt;&lt;P&gt;However, I was not able to use any of the solutions mentioned. I ended up using 'if' 'elseif' statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 12:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-where/m-p/1992645#M404737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T12:01:55Z</dc:date>
    </item>
  </channel>
</rss>

