<?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: field check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806811#M346264</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;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Perform validate_user_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form validate_user_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_werks is initial.&lt;/P&gt;&lt;P&gt;     select singel werks&lt;/P&gt;&lt;P&gt;        from t001w&lt;/P&gt;&lt;P&gt;        into lv_werks.&lt;/P&gt;&lt;P&gt;       where werks eq p_werks. ( Parameters)&lt;/P&gt;&lt;P&gt;       where werks in s_werks.  (Select-option)&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_matnr is intial.&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;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2006 12:09:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-07T12:09:07Z</dc:date>
    <item>
      <title>field check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806809#M346262</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;How to check the validity of fields in select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields : werks, matnr, verid, sptab &lt;/P&gt;&lt;P&gt;table: s225.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 12:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806809#M346262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T12:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: field check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806810#M346263</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 the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single * 
            into wa_s225
           from s225
          where  werks in s_werks and
                    marnr in s_matnr  and
                    verid    in s_verid and
                   sptab in s_sptab.

if sy-sybrc ne 0.
 Message 'Error in S225 table' type 'E'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 12:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806810#M346263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T12:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: field check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806811#M346264</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;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Perform validate_user_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form validate_user_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_werks is initial.&lt;/P&gt;&lt;P&gt;     select singel werks&lt;/P&gt;&lt;P&gt;        from t001w&lt;/P&gt;&lt;P&gt;        into lv_werks.&lt;/P&gt;&lt;P&gt;       where werks eq p_werks. ( Parameters)&lt;/P&gt;&lt;P&gt;       where werks in s_werks.  (Select-option)&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_matnr is intial.&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;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 12:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806811#M346264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T12:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: field check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806812#M346265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you give the check tables for all of them , automatically it will get validated &lt;/P&gt;&lt;P&gt; or else you have to code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.

   Select single werks from T001W where werks not in s_werks.
    if sy-subrc eq 0.
        *display error messgae here
    endif.

       Select single matnr from MARA where matnr not in s_matnr.
    if sy-subrc eq 0.
        *display error messgae here
    endif.

      Select single verid from MKAL where verid not in s_verid.
    if sy-subrc eq 0.
        *display error messgae here
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 12:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806812#M346265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T12:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: field check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806813#M346266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  You can use the event AT SELECTION SCREEN .&lt;/P&gt;&lt;P&gt;Here write a select statement to chcek if the entered value is correct or not.&lt;/P&gt;&lt;P&gt;The master tables are &lt;/P&gt;&lt;P&gt;WERKS : &amp;lt;b&amp;gt;T001W&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;MATNR : &amp;lt;b&amp;gt;MARA&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;VERID  : &amp;lt;b&amp;gt;MKAL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no field SPTAB , there is a field called SPTAG , that is date .&lt;/P&gt;&lt;P&gt;Now how we get the master table in this case if you look at table S225 there will be a column &amp;lt;b&amp;gt;'Check Table'&amp;lt;/b&amp;gt; or a tab &amp;lt;b&amp;gt;Entry help / check&amp;lt;/b&amp;gt;, this will contain the master table for each field if any.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 12:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806813#M346266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T12:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: field check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806814#M346267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S Vj ,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  You always have the option of creating the search help object in the ABAP Dictionary and assign that to either entire database table , or a particular data element or a particular screen element .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OR &lt;/P&gt;&lt;P&gt;  If the select-options are in a report program ,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  you have the option to use the event key word : "AT SELECTION-SCREEN ON VALUE REQUEST FOR &amp;lt;select-option&amp;gt; "&lt;/P&gt;&lt;P&gt;  then you can use the function module "F4IF_FIELD_VALUE_REQUEST" or    &lt;/P&gt;&lt;P&gt;  "F4IF_INT_TABLE_VALUE_REQUEST" to generate the value request for the fields .&lt;/P&gt;&lt;P&gt;   The user will be allowed to enter only the entries present in the database table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Kamlesh Dhera H. R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 12:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-check/m-p/1806814#M346267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T12:47:58Z</dc:date>
    </item>
  </channel>
</rss>

