<?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/4025096#M961947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to select all possible product hierarchies based on your select option (so_EXCLUDE_Materials_of_product_heirarchy) from table T179 into another range table.  Then use this range table in your logic to exclude product hierarchies.&lt;/P&gt;&lt;P&gt;Pseudo code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ranges: r_exclude_product_hierarchy for t179-prodh.
move: 'I' to r_exclude_product-sign,
         'EQ' to r_exclude_product-option.
select prodh into r_exclude_product-low
from t179
where prodh in so_exclude_materials_of_product_heirarchy
and stufe = '9'  "&amp;lt;--Replace the appropriate level of product hierarchy here...

       append r_exclude_product.

endselect.
clear r_exclude_product.
.
.
.
If mara-prodh in r_exclude_product_hierarchy.
...
else.
....
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 20:21:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-16T20:21:29Z</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/4025095#M961946</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;This is copy of my prv. thread, with more clarity&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;MOVE sy-tabix to sy_tabix.&lt;/P&gt;&lt;P&gt;READ TABLE t_mara WITH KEY matnr = my_itab-matnr&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;IF NOT so_EXCLUDE_Materials_of_product_heirarchy[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF my_itab-prdha(2) IN so_EXCLUDE_Materials_of_product_heirarchy[].&lt;/P&gt;&lt;P&gt;DELETE my_itab INDEX sy_tabix.&lt;/P&gt;&lt;P&gt;ENDIF.&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;ENDIF.&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;sign - I&lt;/P&gt;&lt;P&gt;option- CP&lt;/P&gt;&lt;P&gt;low-value- 1234* (star - wild card)&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:55:02 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/4025095#M961946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T19:55:02Z</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/4025096#M961947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to select all possible product hierarchies based on your select option (so_EXCLUDE_Materials_of_product_heirarchy) from table T179 into another range table.  Then use this range table in your logic to exclude product hierarchies.&lt;/P&gt;&lt;P&gt;Pseudo code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ranges: r_exclude_product_hierarchy for t179-prodh.
move: 'I' to r_exclude_product-sign,
         'EQ' to r_exclude_product-option.
select prodh into r_exclude_product-low
from t179
where prodh in so_exclude_materials_of_product_heirarchy
and stufe = '9'  "&amp;lt;--Replace the appropriate level of product hierarchy here...

       append r_exclude_product.

endselect.
clear r_exclude_product.
.
.
.
If mara-prodh in r_exclude_product_hierarchy.
...
else.
....
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 20:21:29 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/4025096#M961947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T20:21:29Z</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/4025097#M961948</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 21:15:52 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/4025097#M961948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T21:15:52Z</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/4025098#M961949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my answer in your other thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 21:18:49 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/4025098#M961949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T21:18:49Z</dc:date>
    </item>
  </channel>
</rss>

