<?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 evuluate inter table via select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749159#M902046</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;is it possible to evaluate many select-options-fields &lt;/P&gt;&lt;P&gt;based on an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose an itab with more than thousand rows and abaout 80 columns.  Users input in Select-Options-fields must be &lt;/P&gt;&lt;P&gt;evaluated whether the entries of  itab are IN select-options fields? If so how is this working ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2008 12:21:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-06T12:21:13Z</dc:date>
    <item>
      <title>evuluate inter table via select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749159#M902046</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;is it possible to evaluate many select-options-fields &lt;/P&gt;&lt;P&gt;based on an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose an itab with more than thousand rows and abaout 80 columns.  Users input in Select-Options-fields must be &lt;/P&gt;&lt;P&gt;evaluated whether the entries of  itab are IN select-options fields? If so how is this working ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 12:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749159#M902046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: evuluate inter table via select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749160#M902047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sure this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-fielda in select-option.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, I read message again, and it looks that you want to evaluate not ONE but SEVERAL select-options, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, use this for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa where fielda in so1&lt;/P&gt;&lt;P&gt;                            and    fieldb in so2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on May 6, 2008 2:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 12:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749160#M902047</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-06T12:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: evuluate inter table via select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749161#M902048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this using events on fields, like for example: &lt;STRONG&gt;AT SELECTION-SCREEN&lt;/STRONG&gt; and &lt;STRONG&gt;AT SELECTION-SCREEN ON &amp;lt;parameter|select-options&amp;gt;&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT demo_at_selection_screen. 

* Global data 

DATA: sflight_tab TYPE TABLE OF sflight, 
      sflight_wa  LIKE LINE  OF sflight_tab. 

* Selection screens 

PARAMETERS p_carrid TYPE spfli-carrid. 

SELECTION-SCREEN BEGIN OF SCREEN 500. 
  SELECT-OPTIONS s_conn FOR sflight_wa-connid. 
  DATA s_conn_wa LIKE LINE OF s_conn. 
SELECTION-SCREEN END OF SCREEN 500. 

* Handling selection screen events 

AT SELECTION-SCREEN ON p_carrid. 
  IF p_carrid IS INITIAL. 
    MESSAGE 'Please enter a value' TYPE 'E'. 
  ENDIF. 
  AUTHORITY-CHECK OBJECT 'S_CARRID' 
                      ID 'CARRID' FIELD p_carrid 
                      ID 'ACTVT'  FIELD '03'. 
  IF sy-subrc = 4. 
    MESSAGE 'No authorization for carrier' TYPE 'E'. 
  ELSEIF sy-subrc &amp;lt;&amp;gt; 0. 
    MESSAGE 'Error in authority check' TYPE 'A'. 
  ELSE. 
    IF sy-ucomm = 'ONLI'. 
      CALL SELECTION-SCREEN '0500'. 
    ENDIF. 
  ENDIF. 

AT SELECTION-SCREEN. 
  IF sy-dynnr = '0500'. 
    IF s_conn IS INITIAL. 
      MESSAGE 'Please enter values' TYPE 'W'. 
    ELSE. 
      SELECT * 
             FROM sflight 
             INTO TABLE sflight_tab 
             WHERE carrid = p_carrid AND 
                   connid IN s_conn. 
      IF sy-subrc &amp;lt;&amp;gt; 0. 
        MESSAGE 'No flights found' TYPE 'E'. 
      ENDIF. 
    ENDIF. 
  ENDIF. 

* Main program 

START-OF-SELECTION. 
  ... 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 12:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749161#M902048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T12:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: evuluate inter table via select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749162#M902049</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 validate a select-option field through a table i am sending the code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validate Cost Center&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF s_cc IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT kostl                         " Cost Center&lt;/P&gt;&lt;P&gt;       INTO fs_csks&lt;/P&gt;&lt;P&gt;       FROM csks&lt;/P&gt;&lt;P&gt;        UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;      WHERE kostl IN s_cc&lt;/P&gt;&lt;P&gt;      AND   datbi GT sy-datum.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      SET CURSOR FIELD 'S_CC-LOW'.&lt;/P&gt;&lt;P&gt;      MESSAGE e000(zi) WITH text-006.&lt;/P&gt;&lt;P&gt;    ENDIF.                               " IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  ENDIF.                               " IF s_cc is NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to validate from a interna table then use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at i_csks INTO fs_csks &lt;/P&gt;&lt;P&gt;                      where  kostl IN s_cc.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;  if fs_csks is initial.&lt;/P&gt;&lt;P&gt;  MESSAGE e000(zi) WITH text-006.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Anomitro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 13:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/evuluate-inter-table-via-select-options/m-p/3749162#M902049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T13:01:49Z</dc:date>
    </item>
  </channel>
</rss>

