<?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: Select-Options Processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328953#M168071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can combine the select statement so that only valid cost center and exist in ZTABLE will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select b~USERNAME&lt;/P&gt;&lt;P&gt;       b~KOSTL&lt;/P&gt;&lt;P&gt;    into corresponding fields of ZTABLE&lt;/P&gt;&lt;P&gt;    from CSKS as a&lt;/P&gt;&lt;P&gt;      inner join ZTABLE as b&lt;/P&gt;&lt;P&gt;          on b&lt;SUB&gt;KOSTL = a&lt;/SUB&gt;KOSTL&lt;/P&gt;&lt;P&gt;    where a~kostl in SF_KOSTL&lt;/P&gt;&lt;P&gt;      and b~USERNAME = SY-UNAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2006 18:38:45 GMT</pubDate>
    <dc:creator>nablan_umar</dc:creator>
    <dc:date>2006-05-09T18:38:45Z</dc:date>
    <item>
      <title>Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328950#M168068</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 a Select-Option: SF_KOSTL for CSKS-KOSTL.&lt;/P&gt;&lt;P&gt;I have a ZTable with two fields:&lt;/P&gt;&lt;P&gt;Username and KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to determine if an entry Exists for Every SF_KOSTL (in the Select-option ) in the ZTable for username SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF there is one particular KOSTL, that doesn't have an entry in Ztable, I should ignore that from the SF_KOSTL Select-Options which is used in several other select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to overcome this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 18:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328950#M168068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328951#M168069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's pretty simple as it is the functionality of the select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select-Option: SF_KOSTL for CSKS-KOSTL.


select * into table itable 
         from ztable 
                where kostl in sf_kostl.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select statement will only pull records where the KOSTL has exists in the select-option.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 18:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328951#M168069</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-09T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328952#M168070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF you have to check all the entries of the select option against Ztable then it might give you wrong output. Becase if you enter range of KOSTL then you can't check all values in the range against Ztable.&lt;/P&gt;&lt;P&gt;SO better create select option with restriction.&lt;/P&gt;&lt;P&gt;You can eliminate the range option from the select statement and allows only low values so that you can enter as many as values without range.&lt;/P&gt;&lt;P&gt;After that in the &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON SF_KOSTL-LOW.&lt;/P&gt;&lt;P&gt;You can write code to chec against Ztable.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 18:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328952#M168070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T18:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328953#M168071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can combine the select statement so that only valid cost center and exist in ZTABLE will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select b~USERNAME&lt;/P&gt;&lt;P&gt;       b~KOSTL&lt;/P&gt;&lt;P&gt;    into corresponding fields of ZTABLE&lt;/P&gt;&lt;P&gt;    from CSKS as a&lt;/P&gt;&lt;P&gt;      inner join ZTABLE as b&lt;/P&gt;&lt;P&gt;          on b&lt;SUB&gt;KOSTL = a&lt;/SUB&gt;KOSTL&lt;/P&gt;&lt;P&gt;    where a~kostl in SF_KOSTL&lt;/P&gt;&lt;P&gt;      and b~USERNAME = SY-UNAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 18:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328953#M168071</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2006-05-09T18:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328954#M168072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For every Cost Center in the Select-Options (It has to be a range), I need to check if entered Cost Center-SYUname pair exists in a ZAUTHtable. If it exists, I should continue with Processing. If the entry doesn't exist in the table, then i should Show them a Message saying :that cost center is ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAUTHtable: only Contains Username and Cost Center Number. And more than one Cost Center exist for a username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would i check for every cost center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;Select-Options: SF_KOSTL like CSKS-KOSTL.&lt;/P&gt;&lt;P&gt;How do i loop in SF_KOKSTL so that i go through each and every value that is Processed normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code Please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 19:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328954#M168072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T19:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328955#M168073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok.  I see what you need to do now.  Try something like this.  Here you are getting all of the kostl in your range and looping at the internal table and checking against your ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: icsks type table of csks with header line.

select-options: s_kostl for icsks-kostl.

at selection-screen.

  clear icsks.  refresh icsks.
  select * into table icsks from csks
                where kostl in s_kostl.


  loop at icsks.

* Check against your table here
* select Single * from ztable
*            where uname = sy-uname
*              and kostl = icsks-kostl.
* if sy-subrc &amp;lt;&amp;gt; 0.
*   message w001(00) with 'Kostl will be ignored'.
* endif.

  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 19:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328955#M168073</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-09T19:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328956#M168074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For the Code.&lt;/P&gt;&lt;P&gt;Very Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 19:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-processing/m-p/1328956#M168074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T19:53:05Z</dc:date>
    </item>
  </channel>
</rss>

