<?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: Selection Creiterial for a selection query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077516#M1505516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks soo much for modularising code,But even now sy-subrc of the query is giving me an  4.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anjna Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jul 2010 12:53:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-08T12:53:37Z</dc:date>
    <item>
      <title>Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077508#M1505508</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;    i have 7 parameters on my selection screen, my requirement is i need to fetch the records based on only fields for which the values are provided,only 2 are mandatory fields out of 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrieen following code but it is giving a dump '  SAPSQL_WHERE_PARENTHESES' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA : wa_options    TYPE rfc_db_opt,
         it_options  TYPE STANDARD TABLE OF  rfc_db_opt,
         lv_weight(20) type c.

  CONSTANTS :c_and(3) type c value 'AND',
             c_eq(2) type c value 'EQ',
             c_sy(2) type c value '&amp;lt;='.

  CLEAR : wa_options.
  FREE  : it_options.

  CONCATENATE 'FROM_POSTAL_CODE' c_sy p_shipto into wa_options-text SEPARATED BY space.
  APPEND wa_options to it_options.
  clear wa_options.

  CONCATENATE 'TO_POSTAL_CODE &amp;gt;=' p_shipto into wa_options-text SEPARATED BY space.
  APPEND wa_options to it_options.
  clear wa_options.

 lv_weight = p_weight.
  CONDENSE lv_weight.
  CONCATENATE 'WEIGHT_LIMIT &amp;gt;='  lv_weight into wa_options-text SEPARATED BY space.
   APPEND wa_options to it_options.
    clear wa_options.

  if p_plant is not INITIAL.
   CONCATENATE 'PLANT' c_eq p_plant c_and into wa_options-text SEPARATED BY space.
   APPEND wa_options to it_options.
    clear wa_options.
  endif.

  if p_shipc is not INITIAL.
   CONCATENATE 'SHIPING_COND' c_eq p_shipc c_and into wa_options-text SEPARATED BY space.
   APPEND wa_options to it_options.
    clear wa_options.
  endif.

  if p_carri is not INITIAL.
   CONCATENATE 'CARRIER_CODE' c_eq p_carri c_and into wa_options-text SEPARATED BY space.
   APPEND wa_options to it_options.
    clear wa_options.
  endif.

   if p_samed  is not INITIAL.
   CONCATENATE 'SAME_DAY_FLAG' c_eq 'N' into wa_options-text SEPARATED BY space.
   APPEND wa_options to it_options.
    clear wa_options.
  endif.



  select * from ZOTC_FREIGHT_AUS into table i_final
    where (it_options).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anjana Rao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jul 8, 2010 1:52 PM - Added  tags for formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 10:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077508#M1505508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077509#M1505509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; uses the ranges for your 7 inputs and then write a select query like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

RANGES are  r_xblnr,r_refnr etc.....
      SELECT *
        FROM zfix_t03
        INTO TABLE i_zfix_t03_sub
         FOR ALL ENTRIES IN  i_zfix_t02
       WHERE refnr   EQ i_zfix_t02-refnr
         AND xblnr   IN r_xblnr
         AND refnr   IN r_refnr
         AND budat   IN r_date
         AND bstnr   IN r_po_no
         AND mmbelnr IN r_belnr
         AND mmbelnr IN r_belnr_1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this code if any of the field is empty, it will not consider the field in the SELECT query.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Senthil Kumar Anantham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 10:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077509#M1505509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T10:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077510#M1505510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are they parameters?  Doesn't sound like it...sounds like they're select options.  &lt;STRONG&gt;If so, read ABAP Help on select options.&lt;/STRONG&gt;  What you're doing is completely unnecessary for select-options....SAP handles blank select-options automatically, returning all data rows when the select-option (ranges) table has not been populated, filtering rows only when it is populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 11:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077510#M1505510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T11:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077511#M1505511</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;Use AND  in the select as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'FROM_POSTAL_CODE' c_sy p_shipto  ' &lt;STRONG&gt;AND'&lt;/STRONG&gt;  into wa_options-text SEPARATED BY space.&lt;/P&gt;&lt;P&gt;APPEND wa_options to it_options.&lt;/P&gt;&lt;P&gt;clear wa_options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'TO_POSTAL_CODE &amp;gt;=' p_shipto into wa_options-text SEPARATED BY space.&lt;/P&gt;&lt;P&gt;APPEND wa_options to it_options.&lt;/P&gt;&lt;P&gt;clear wa_options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 11:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077511#M1505511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077512#M1505512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anjana Rao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anju_rao on Jul 8, 2010 1:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 11:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077512#M1505512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077513#M1505513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes but ur selection will be like this right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'FROM_POSTAL_CODE' &amp;lt;= p_shipto    &lt;/P&gt;&lt;P&gt;and  'TO_POSTAL_CODE &amp;gt;=' p_shipto    &lt;/P&gt;&lt;P&gt; and  'WEIGHT_LIMIT &amp;gt;='  lv_weight &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_plant is not INITIAL.&lt;/P&gt;&lt;P&gt; and  'PLANT' =  p_plant &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_shipc is not INITIAL.&lt;/P&gt;&lt;P&gt;   and  'SHIPING_COND' = p_shipc &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if p_carri is not INITIAL.&lt;/P&gt;&lt;P&gt;  and  'CARRIER_CODE' = p_carri &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   if p_samed  is not INITIAL.&lt;/P&gt;&lt;P&gt; and  'SAME_DAY_FLAG' = 'N' &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i think think tere is a  AND missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 11:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077513#M1505513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T11:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077514#M1505514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To start with, why not make things easy on yourself and write a test program - replacing the SQL with: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_options INTO wa_options.
  WRITE: / wa_options.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Then you'll be able to &lt;EM&gt;see&lt;/EM&gt; what the WHERE clause looks like, rather than guessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it stands your WHERE clause looks like this: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FROM_POSTAL_CODE &amp;lt;= A
TO_POSTAL_CODE &amp;gt;= A
WEIGHT_LIMIT &amp;gt;= B
PLANT EQ C AND
SHIPING_COND EQ D AND
CARRIER_CODE EQ E AND
SAME_DAY_FLAG EQ N&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where A,B,C,D,E were the parameter values. For some reason F doesn't appear. Oh, I see. It will have your P_SAMED value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the "AND"s are missing. So change your code to deal with that. However, I prefer this approach when dealing with dynamic WHEREs. (also I've tidied your code, used more meaningful variable names, and made it properly modularised) &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :it_where TYPE STANDARD TABLE OF  rfc_db_opt,
      v_weight TYPE c LENGTH 20.

CONSTANTS: c_where1 TYPE rfc_db_opt VALUE 'FROM_POSTAL_CODE LE &amp;amp;',
           c_where2 TYPE rfc_db_opt VALUE 'AND TO_POSTAL_CODE GE &amp;amp;',
           c_where3 TYPE rfc_db_opt VALUE 'AND WEIGHT_LIMIT GE &amp;amp;',
           c_where4 TYPE rfc_db_opt VALUE 'AND PLANT EQ &amp;amp;',
           c_where5 TYPE rfc_db_opt VALUE 'AND SHIPING_COND EQ &amp;amp;',
           c_where6 TYPE rfc_db_opt VALUE 'AND CARRIER_CODE EQ &amp;amp;',
           c_where7 TYPE rfc_db_opt VALUE 'AND SAME_DAY_FLAG EQ &amp;amp;'.

PERFORM build_where  USING c_where1 p_shipto CHANGING it_where.
PERFORM build_where  USING c_where2 p_shipto CHANGING it_where.

v_weight = p_weight.
CONDENSE v_weight.
PERFORM build_where USING c_where3 v_weight CHANGING it_where.

IF p_plant IS NOT INITIAL.
  PERFORM build_where USING c_where4 p_plant CHANGING it_where.
ENDIF.

IF p_shipc IS NOT INITIAL.
  PERFORM build_where USING c_where5 p_shipc CHANGING it_where.
ENDIF.

IF p_carri IS NOT INITIAL.
  PERFORM build_where USING c_where6 p_carri CHANGING it_where.
ENDIF.

IF p_samed IS NOT INITIAL.
  PERFORM build_where USING c_where7 p_samed CHANGING it_where.
ENDIF.

SELECT * FROM zotc_freight_aus INTO TABLE i_final
    WHERE (it_options).

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  build_where
*&amp;amp;---------------------------------------------------------------------*
FORM build_where    USING i_where_line TYPE rfc_db_opt
                          i_var        TYPE clike
                 CHANGING xt_where   TYPE STANDARD TABLE.

  DATA: lw_where TYPE rfc_db_opt.

  lw_where = i_where_line.
  REPLACE ALL OCCURRENCES OF '&amp;amp;' IN lw_where WITH i_var.
  APPEND lw_where TO xt_where.

ENDFORM.                    "build_where&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 12:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077514#M1505514</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-07-08T12:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077515#M1505515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I gave you the sample program for your requirement using Ranges for PARAMETERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : i_final TYPE STANDARD TABLE OF rseg.

PARAMETER : p_ebeln TYPE ebeln
          , p_ebelp TYPE ebelp
          , p_belnr TYPE belnr_d
          , p_gjahr TYPE gjahr
          .

RANGES : r_ebeln FOR p_ebeln
       , r_ebelp FOR p_ebelp
       , r_belnr FOR p_belnr
       , r_gjahr FOR p_gjahr
       .

IF p_gjahr IS NOT INITIAL.

  r_gjahr-sign = 'I'.
  r_gjahr-option = 'EQ'.
  r_gjahr-low = p_gjahr.

  APPEND r_gjahr.

ENDIF.

IF p_ebeln IS NOT INITIAL.

  r_ebeln-sign = 'I'.
  r_ebeln-option = 'EQ'.   " If you want &amp;lt;= use LE , &amp;gt;= use GE , similiarly GT, LT,EQ based on your requirement
  r_ebeln-low = p_ebeln.

  APPEND r_ebeln.

ENDIF.

IF p_ebelp IS NOT INITIAL.

  r_ebelp-sign = 'I'.
  r_ebelp-option = 'EQ'.
  r_ebelp-low = p_ebelp.

  APPEND r_ebelp.

ENDIF.

IF p_belnr IS NOT INITIAL.

  r_belnr-sign = 'I'.
  r_belnr-option = 'EQ'.
  r_belnr-low = p_belnr.

  APPEND r_belnr.

ENDIF.

 IF    r_belnr[] is not initial 
OR  r_gjahr[] is not initial 
OR  r_ebeln[] is not initial 
OR  r_ebelp] is not initial .

SELECT * FROM rseg
  INTO TABLE i_final
 WHERE belnr IN r_belnr
   AND gjahr IN r_gjahr
   AND ebeln IN r_ebeln
   AND ebelp IN r_ebelp.

IF sy-subrc EQ 0..

ENDIF.

  ENDIF
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case if the parameter is empty, it will  not consider that in the select query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 12:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077515#M1505515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T12:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077516#M1505516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks soo much for modularising code,But even now sy-subrc of the query is giving me an  4.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anjna Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 12:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077516#M1505516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T12:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077517#M1505517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks madukar and matt for your help...my problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed the parameters to select options as breakpoint:-) has mentioned and made the change in the query it works,insted of writnig the whole big code of appending and all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_plant FOR  ZOTC_FREIGHT_AUS-plant NO INTERVALS&lt;/P&gt;&lt;P&gt;                  NO-EXTENSION .&lt;/P&gt;&lt;P&gt;*PARAMETERS p_plant TYPE ZZWERKS_D.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_shipc FOR  ZOTC_FREIGHT_AUS-SHIPING_COND  NO INTERVALS&lt;/P&gt;&lt;P&gt;                  NO-EXTENSION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS p_shipc TYPE VSBED.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_carri FOR ZOTC_FREIGHT_AUS-CARRIER_CODE  NO INTERVALS&lt;/P&gt;&lt;P&gt;                  NO-EXTENSION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS p_carri TYPE ZZLIFNR .&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_samed FOR  ZOTC_FREIGHT_AUS-SAME_DAY_FLAG NO INTERVALS&lt;/P&gt;&lt;P&gt;                  NO-EXTENSION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"no-extension necessary to avoid multiple selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from ZOTC_FREIGHT_AUS into table i_final&lt;/P&gt;&lt;P&gt;    where FROM_POSTAL_CODE &amp;lt;= p_shipto and TO_POSTAL_CODE &amp;gt;= p_shipto and&lt;/P&gt;&lt;P&gt;    WEIGHT_LIMIT &amp;gt;= p_weight and PLANT in p_plant and&lt;/P&gt;&lt;P&gt;    SHIPING_COND in p_shipc and&lt;/P&gt;&lt;P&gt;    CARRIER_CODE in p_carri and&lt;/P&gt;&lt;P&gt;    SAME_DAY_FLAG in p_samed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alll&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 13:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077517#M1505517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077518#M1505518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now mark your question as answered...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077518#M1505518</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-07-08T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Creiterial for a selection query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077519#M1505519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 08:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-creiterial-for-a-selection-query/m-p/7077519#M1505519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-09T08:23:28Z</dc:date>
    </item>
  </channel>
</rss>

