<?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 select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112742#M739022</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 have created a select option for project number filed. Now in internal table i have all the projects. I want to display only those project, which user has entered in select option. What is the optimized way to do that, in which i can get all include, exclude, lt, eq,bw, gt, operators. Or if lt, gt, operator are not possible, how can i display only those project which comes into the range. e.g if use has entered 40005 to 40009. How can i loop on this select option to delete irrelavant data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sal Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 18:38:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T18:38:17Z</dc:date>
    <item>
      <title>select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112742#M739022</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 have created a select option for project number filed. Now in internal table i have all the projects. I want to display only those project, which user has entered in select option. What is the optimized way to do that, in which i can get all include, exclude, lt, eq,bw, gt, operators. Or if lt, gt, operator are not possible, how can i display only those project which comes into the range. e.g if use has entered 40005 to 40009. How can i loop on this select option to delete irrelavant data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sal Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 18:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112742#M739022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112743#M739023</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 not loop on Select Option, first you need to pass those Project values to an internal table and can do Loop on that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 18:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112743#M739023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T18:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112744#M739024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i pass those projects to internal table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112744#M739024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T19:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112745#M739025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this way.&lt;/P&gt;&lt;P&gt;First select all project related to select option value.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from proj into table i_proj where pspnr in s_pspnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if sy-subrc eq 0.
  loop at i_proj.
     v_tabix = sy-tabix.
     read table i_your_proj_num_int_table with key pspnr = i_proj-pspnr.
     if sy-subrc ne 0.
        delete i_proj index v_tabix. 
     endif.
  endloop.
endif.
" After this i_proj contains the valid project numbers
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112745#M739025</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-11-26T19:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112746#M739026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let s_1 has user entered project  ids and let itab has all the project IDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_1 for tab-field no-extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_1-low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where itab-field = s_1-low.&lt;/P&gt;&lt;P&gt;itab1-field = itab-field..&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112746#M739026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T19:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112747#M739027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to delete unwanted projects from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DETELE ITAB WHERE NOT PROJ_NO IN S_PROJNO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement you will have only those projects in table ITAB which user had entered on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112747#M739027</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-26T19:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112748#M739028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Types: Begin of ty_proj,&lt;/P&gt;&lt;P&gt;             pspnr type proj-pspnr.&lt;/P&gt;&lt;P&gt;           end of ty_proj.&lt;/P&gt;&lt;P&gt;Data: IT_PROJ TYPE TABLE OF TY_PROJ,&lt;/P&gt;&lt;P&gt;         WA_PROJ TYPE TY_PROJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen you will provide low and high values, so in your program fetch only those projects from PROJ Table.&lt;/P&gt;&lt;P&gt;Select-options: s_pspnr for proj-pspnr.&lt;/P&gt;&lt;P&gt;Select PSPNR from PROJ into TABLE IT_PROJ where PSPNR in S_PSPNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have data in IT_PROJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112748#M739028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112749#M739029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patel,&lt;/P&gt;&lt;P&gt;In operator is not working in delete query. My query is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
delete itab where not projn1 in s_proj.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is not working, infact it's deleting all the records from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sal Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 20:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112749#M739029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112750#M739030</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: r_projno type range of &amp;lt;dbfield&amp;gt;.

r_projno-sign = 'E'.
r_projno-option = 'BT'.
r_projno-low = s_proj-low.
r_projno-high = s_proj-high.

Delete itab where projn1 in r_projno.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 20:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112750#M739030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T20:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112751#M739031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      One way to display only selected projects is u can write code as select-options: so_filed for lf_field no-intervals.or no-extensions a parameter type of option will appear in the output screen then giv f4 functionality to it and thn give only tht values u want llike proj1, proj4 only into tht opiotns thn only those enterd projects only will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this for exact syntax check n saplibrary it will surely work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 04:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3112751#M739031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T04:31:00Z</dc:date>
    </item>
  </channel>
</rss>

