<?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: Need logic for process the SELECT-OPTION table for diff. combinations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024255#M961750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, &lt;/P&gt;&lt;P&gt;wanna high light the options etc. but, it took 2 stars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again am writing the table contents of select options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN - I - include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTION - CP - meaninf CONTAIN PARTIal??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value - low - 1234*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection criteria is 1234* (star)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 19:26:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-16T19:26:03Z</dc:date>
    <item>
      <title>Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024252#M961747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. give me some hint or idea to get my requitrement, its,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection screen contains a select-options field with name of so_EXCLUDE_Materials_of_product_heirarchy field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv a list of 500 materials, in my_inatrenal_tabel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am pulling the product heirarchy values for these 500 matreials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user enters, some value in this field of so_EXCLUDE_Materials_of_product_heirarchy, I need to EXCLUDE that product heirachy having matreial from my_internal tbale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;MOVE sy-tabix to sy_tabix.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;READ TABLE t_mara WITH KEY matnr = my_itab-matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                  &lt;STRONG&gt;BINARY SEARCH.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;IF sy-subrc IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;IF NOT so_EXCLUDE_Materials_of_product_heirarchy[] IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                        &lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;IF my_itab-prdha(2) IN so_EXCLUDE_Materials_of_product_heirarchy[].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;             &lt;STRONG&gt;DELETE my_itab INDEX sy_tabix.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                          &lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isuue, is that, if user inputs this select option normally, its working, fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, if he inputs like 1234* (STAR), then, all records r deleting from my-itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at that point the select-option table id populated like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;sign - I&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;option- CP&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;low-value- 1234&lt;/STRONG&gt;**  &lt;/P&gt;&lt;P&gt;so, pls. let me know the piece of code, to meet my requiremwent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Srinivas on Jun 16, 2008 3:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024252#M961747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T19:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024253#M961748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi looks like option need to be BT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;sign - I&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;option- CP&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;low-value- 1234&lt;/STRONG&gt;**&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024253#M961748</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-16T19:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024254#M961749</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;Check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Zlike_example .
PARAMETERS: p_name(40) TYPE c .

DATA lv_srch_str(60) TYPE c .
DATA lv_ename LIKE p0001-ename .

CONCATENATE '%' p_name '%' INTO lv_srch_str .

SELECT ename FROM PA0001
INTO lv_ename
WHERE ename LIKE lv_srch_str .

WRITE:/ lv_ename .

ENDSELECT .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024254#M961749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T19:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024255#M961750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, &lt;/P&gt;&lt;P&gt;wanna high light the options etc. but, it took 2 stars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again am writing the table contents of select options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN - I - include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTION - CP - meaninf CONTAIN PARTIal??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value - low - 1234*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection criteria is 1234* (star)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024255#M961750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024256#M961751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is CONTAINS PATTERN and not CONTAINS PARTIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your select-options field...s_mat_op write the select query to fetch all the values from the transparent table.&lt;/P&gt;&lt;P&gt;like: select f1 into table i_mara where matnr in s_mat_op.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you want to check for a single field f1 using IN operator like the select-options declaration do as follows:&lt;/P&gt;&lt;P&gt;  data: r_f1 like range of mara-matnr.&lt;/P&gt;&lt;P&gt;          ws_f1 type line of r_f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mara.&lt;/P&gt;&lt;P&gt; ws_f1-sign = 'I'.&lt;/P&gt;&lt;P&gt; ws_f1-option = 'EQ'.&lt;/P&gt;&lt;P&gt; ws_f1-low = i_mara-f1.&lt;/P&gt;&lt;P&gt; append ws_f1 to r_f1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if matnr in r_f1.&lt;/P&gt;&lt;P&gt;   do something....&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  delete ......&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;Hope this pseudo code helps u understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024256#M961751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T19:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024257#M961752</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;You can use this code for the field that u want to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : r_field for fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT fieldname IS INITIAL.&lt;/P&gt;&lt;P&gt;        r_field-sign = 'I'.&lt;/P&gt;&lt;P&gt;        IF fieldname CA '*'.&lt;/P&gt;&lt;P&gt;          r_field-option = 'CP'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          r_field-option = 'EQ'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        r_field-low = fieldname.&lt;/P&gt;&lt;P&gt;        r_field-high = ' '.&lt;/P&gt;&lt;P&gt;        APPEND r_field.&lt;/P&gt;&lt;P&gt;        CLEAR r_field.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in select statements, check field in r_field. it will give u desired reult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award me points if it helps.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sheel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 20:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024257#M961752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T20:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic for process the SELECT-OPTION table for diff. combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024258#M961753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas - it looks as if your logic is mostly correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when you use CP in a SELECT-OPTION, you will have to pad the values with the correct number of leading zeroes. You will have to do this manualy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Took out the reference to the conversion exit FM. I don't think it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 16, 2008 7:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 21:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-logic-for-process-the-select-option-table-for-diff-combinations/m-p/4024258#M961753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T21:03:04Z</dc:date>
    </item>
  </channel>
</rss>

