<?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 options validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766476#M906254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senior ABAP folks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                       I have ten select options and should promt user to enter atleast one select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i write my validations in AT SELECTION-screen event it is not allowing me to press the arrow button in select-options before that it throws error to enter atleast one field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i write my validations in start of selection event it throws the error and leaves to program .When the error msg is thrown i want the contol tobe back in the selection screen .I tried all leave screen probablities...not working &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly go through the below code and advice .&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;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;To validate the vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single lifnr from lfa1 into&lt;/P&gt;&lt;P&gt;  lfa1-lifnr where lifnr in s_lifnr.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e124 with&lt;/P&gt;&lt;P&gt;   text-113 s_lifnr-low text-116.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;TO validate the BP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  SELECT single partner FROM but000&lt;/P&gt;&lt;P&gt;  INTO but000-partner WHERE&lt;/P&gt;&lt;P&gt;  partner IN s_gpart.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e124 with&lt;/P&gt;&lt;P&gt;    text-115 s_gpart-low text-118.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;To validate the IO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT single insobject FROM dimaiobpar&lt;/P&gt;&lt;P&gt;  INTO dimaiobpar-insobject WHERE&lt;/P&gt;&lt;P&gt;  insobject IN s_vtref.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e124 with&lt;/P&gt;&lt;P&gt;     text-114 s_vtref-low text-117.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;Start of the selection process***************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF s_chect[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_aug_ap[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_augdt[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_wrbtr[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_lifnr[] IS INITIAL and&lt;/P&gt;&lt;P&gt;         s_pymet[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;          s_chuser[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;          s_gpart[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;          s_vtref[] IS INITIAL and&lt;/P&gt;&lt;P&gt;          s_opbel[] is initial and&lt;/P&gt;&lt;P&gt;          s_mdopbl[] is initial.&lt;/P&gt;&lt;P&gt;    MESSAGE e126.&lt;/P&gt;&lt;P&gt;   leave screen.&lt;/P&gt;&lt;P&gt;&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;selection continues................&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;&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;&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;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;(e126 - Enter atleast one filed )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2008 10:47:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-02T10:47:33Z</dc:date>
    <item>
      <title>Select options validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766476#M906254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senior ABAP folks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                       I have ten select options and should promt user to enter atleast one select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i write my validations in AT SELECTION-screen event it is not allowing me to press the arrow button in select-options before that it throws error to enter atleast one field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i write my validations in start of selection event it throws the error and leaves to program .When the error msg is thrown i want the contol tobe back in the selection screen .I tried all leave screen probablities...not working &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly go through the below code and advice .&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;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;To validate the vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single lifnr from lfa1 into&lt;/P&gt;&lt;P&gt;  lfa1-lifnr where lifnr in s_lifnr.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e124 with&lt;/P&gt;&lt;P&gt;   text-113 s_lifnr-low text-116.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;TO validate the BP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  SELECT single partner FROM but000&lt;/P&gt;&lt;P&gt;  INTO but000-partner WHERE&lt;/P&gt;&lt;P&gt;  partner IN s_gpart.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e124 with&lt;/P&gt;&lt;P&gt;    text-115 s_gpart-low text-118.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;To validate the IO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT single insobject FROM dimaiobpar&lt;/P&gt;&lt;P&gt;  INTO dimaiobpar-insobject WHERE&lt;/P&gt;&lt;P&gt;  insobject IN s_vtref.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e124 with&lt;/P&gt;&lt;P&gt;     text-114 s_vtref-low text-117.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;Start of the selection process***************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF s_chect[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_aug_ap[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_augdt[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_wrbtr[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;         s_lifnr[] IS INITIAL and&lt;/P&gt;&lt;P&gt;         s_pymet[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;          s_chuser[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;          s_gpart[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;          s_vtref[] IS INITIAL and&lt;/P&gt;&lt;P&gt;          s_opbel[] is initial and&lt;/P&gt;&lt;P&gt;          s_mdopbl[] is initial.&lt;/P&gt;&lt;P&gt;    MESSAGE e126.&lt;/P&gt;&lt;P&gt;   leave screen.&lt;/P&gt;&lt;P&gt;&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;selection continues................&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;&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;&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;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;(e126 - Enter atleast one filed )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 10:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766476#M906254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T10:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766477#M906255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;in these cases you have to give an information message instead of an error message as below and use the stmt leave list-processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_chect[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_aug_ap[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_augdt[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_wrbtr[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_lifnr[] IS INITIAL and&lt;/P&gt;&lt;P&gt;s_pymet[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_chuser[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_gpart[] IS INITIAL AND&lt;/P&gt;&lt;P&gt;s_vtref[] IS INITIAL and&lt;/P&gt;&lt;P&gt;s_opbel[] is initial and&lt;/P&gt;&lt;P&gt;s_mdopbl[] is initial.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MESSAGE i126.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;leave list-processing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 10:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766477#M906255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T10:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766478#M906256</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;   SELECT-OPTIONS s_p_cid FOR zscp_project-circle_id OBLIGATORY NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls use the above statement for the select option. It will throw an error message for the user to enter at least a single value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls reward if useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Sirisha,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 10:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766478#M906256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T10:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766479#M906257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;  try with writing ur validation in AT SELECTION-SCREEN OUTPUT &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;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 10:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766479#M906257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766480#M906258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senior Folks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     Kaluvala Santosh's answer solved my prurpose .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Guru .......&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;Jaga.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 11:03:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validations/m-p/3766480#M906258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T11:03:14Z</dc:date>
    </item>
  </channel>
</rss>

