<?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: Screen validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052917#M968802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your question u are using select-option.&lt;/P&gt;&lt;P&gt;select-option is nothing but it creates internal table.&lt;/P&gt;&lt;P&gt;suppose if u r using S_date then it creates internal table of same name containing sign,opt,low, high columns&lt;/P&gt;&lt;P&gt;If you put range then s_date-low contains &amp;lt;lower limit&amp;gt;  &amp;amp; s_date-high higher &amp;lt;higher limit&amp;gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;s_date = 01.05.2008  to 05.05.2008&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;s_date-low = 01.05.2008&lt;/P&gt;&lt;P&gt;s_date-high = 05.05.2008&lt;/P&gt;&lt;P&gt;like that&lt;/P&gt;&lt;P&gt;and if you put multiple values like diffrent dates&lt;/P&gt;&lt;P&gt;then i appends that multiple date in to s_date-low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie  &lt;/P&gt;&lt;P&gt;s_date = 01.05.2008&lt;/P&gt;&lt;P&gt;              03.05.2008&lt;/P&gt;&lt;P&gt;              06.05.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will appear as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sign     opt       low             high&lt;/P&gt;&lt;P&gt;  I         EQ     01.05.2008&lt;/P&gt;&lt;P&gt;  I         EQ     03.05.2008&lt;/P&gt;&lt;P&gt;  I         EQ     06.05.2008&lt;/P&gt;&lt;P&gt;in select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i guess u will clear with the select option concept &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accordingly you can use LOOP STATEMENT on S_DATE&lt;/P&gt;&lt;P&gt;either  in AT-SELECTION screen or in INITIALIZATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you will get an Answer&lt;/P&gt;&lt;P&gt;&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;Swarup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2008 08:58:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-26T08:58:27Z</dc:date>
    <item>
      <title>Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052912#M968797</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;How can i do the screen validations with Ranges. The below is the Description in the Func. Specs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting date-FAGLFLEXA-BUDAT&lt;/STRONG&gt;-Range with F4 help on date. Single Multiple values should also work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;G/L Account-FAGLFLEXA-RACCT&lt;/STRONG&gt;-Range with F4 help. Single Multiple values should also work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validation: Verify that this FAGLFLEXA-RACCT is maintained as KONTS in the table T030K. The chart of account T030K-KTOPL required to access this table can be found by entering Company code BUKRS into table V_001_S and pick up V_001_S-KTOPL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 05:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052912#M968797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T05:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052913#M968798</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;in AT SELECTION-SCREEN Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FAGLFLEXA-RACCT for this field check table is SKB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your selection screen has sales org.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select SAKNR into l_SAKNR&lt;/P&gt;&lt;P&gt;from SKB1&lt;/P&gt;&lt;P&gt;up to 1 rows&lt;/P&gt;&lt;P&gt;where BUKRS = s_BUKRS&lt;/P&gt;&lt;P&gt;   and SAKNR = s_SAKNR.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e000(8i) with 'Error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select SAKNR into l_SAKNR&lt;/P&gt;&lt;P&gt;from SKB1&lt;/P&gt;&lt;P&gt;up to 1 rows&lt;/P&gt;&lt;P&gt;where SAKNR = s_SAKNR.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e000(8i) with 'Error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work for single and range values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 06:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052913#M968798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T06:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052914#M968799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN Event&lt;/P&gt;&lt;P&gt;Take s_variable which contains date.&lt;/P&gt;&lt;P&gt;Loop at s_variable.&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;your validation code  with following field&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;   s_variable-low.&lt;/P&gt;&lt;P&gt;  s_variable-high.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Swarup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swarup basagare on Jun 26, 2008 8:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 06:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052914#M968799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T06:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052915#M968800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But can you clearly explain that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 07:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052915#M968800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T07:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052916#M968801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form validate_screen .

if s_werks-low is initial.
message 'Please enter a plant.' type 'E'.
endif.
clear: v_ekorg,
v_werks.
loop at s_werks.
if s_werks-high ne ' '.
if s_werks-low is initial.
message e445(wu).
else.
select t001w~ekorg t001w~werks from t001w
into (v_ekorg, v_werks)
where t001w~werks ge s_werks-low and
t001w~werks le s_werks-high.
clear v_errflag.
authority-check object 'M_BEST_EKO'
id 'ACTVT' dummy
id 'EKORG' field v_ekorg.
if sy-subrc ne 0.
v_errflag = v_errflag + 1.
endif.
authority-check object 'M_MSEG_WRK'
id 'ACTVT' dummy
id 'WERKS' field v_werks.
if sy-subrc ne 0.
v_errflag = v_errflag + 1.
endif.
if v_errflag &amp;gt; 1.
message e007(wrb) with v_werks.
endif.
endselect.
endif.
else.
select t001w~ekorg t001w~werks from t001w
into (v_ekorg, v_werks)
where t001w~werks eq s_werks-low.
clear v_errflag.
authority-check object 'M_BEST_EKO'
id 'ACTVT' dummy
id 'EKORG' field v_ekorg.
if sy-subrc ne 0.
v_errflag = v_errflag + 1.
endif.
authority-check object 'M_MSEG_WRK'
id 'ACTVT' dummy
id 'WERKS' field v_werks.
if sy-subrc ne 0.
v_errflag = v_errflag + 1.
endif.
if v_errflag &amp;gt; 1.
message e007(wrb) with v_werks.
endif.
endselect.
endif.
endloop.

endform. " validate_screen&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 07:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052916#M968801</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-26T07:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052917#M968802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your question u are using select-option.&lt;/P&gt;&lt;P&gt;select-option is nothing but it creates internal table.&lt;/P&gt;&lt;P&gt;suppose if u r using S_date then it creates internal table of same name containing sign,opt,low, high columns&lt;/P&gt;&lt;P&gt;If you put range then s_date-low contains &amp;lt;lower limit&amp;gt;  &amp;amp; s_date-high higher &amp;lt;higher limit&amp;gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;s_date = 01.05.2008  to 05.05.2008&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;s_date-low = 01.05.2008&lt;/P&gt;&lt;P&gt;s_date-high = 05.05.2008&lt;/P&gt;&lt;P&gt;like that&lt;/P&gt;&lt;P&gt;and if you put multiple values like diffrent dates&lt;/P&gt;&lt;P&gt;then i appends that multiple date in to s_date-low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie  &lt;/P&gt;&lt;P&gt;s_date = 01.05.2008&lt;/P&gt;&lt;P&gt;              03.05.2008&lt;/P&gt;&lt;P&gt;              06.05.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will appear as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sign     opt       low             high&lt;/P&gt;&lt;P&gt;  I         EQ     01.05.2008&lt;/P&gt;&lt;P&gt;  I         EQ     03.05.2008&lt;/P&gt;&lt;P&gt;  I         EQ     06.05.2008&lt;/P&gt;&lt;P&gt;in select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i guess u will clear with the select option concept &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accordingly you can use LOOP STATEMENT on S_DATE&lt;/P&gt;&lt;P&gt;either  in AT-SELECTION screen or in INITIALIZATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you will get an Answer&lt;/P&gt;&lt;P&gt;&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;Swarup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 08:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052917#M968802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T08:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052918#M968803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved by Myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/4052918#M968803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T11:32:04Z</dc:date>
    </item>
  </channel>
</rss>

