<?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 validating selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311590#M506370</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;i am working with a module pool&lt;/P&gt;&lt;P&gt;i have a selection screen with 6 fields all are of type select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider this example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_kunnr (sold-to-party) from vbak&lt;/P&gt;&lt;P&gt;s_kundi (ship-to-party) from vbfa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_vkorg (sales org) from vbak&lt;/P&gt;&lt;P&gt;s_vtweg (distribution channel)  from vbak &lt;/P&gt;&lt;P&gt;s_spart (division) from vbak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of entering valid input say user enters some invalid data(xxxxx)&lt;/P&gt;&lt;P&gt;i need to say this is invalid data&lt;/P&gt;&lt;P&gt;how can i do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2007 05:42:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-25T05:42:46Z</dc:date>
    <item>
      <title>validating selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311590#M506370</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;i am working with a module pool&lt;/P&gt;&lt;P&gt;i have a selection screen with 6 fields all are of type select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider this example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_kunnr (sold-to-party) from vbak&lt;/P&gt;&lt;P&gt;s_kundi (ship-to-party) from vbfa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_vkorg (sales org) from vbak&lt;/P&gt;&lt;P&gt;s_vtweg (distribution channel)  from vbak &lt;/P&gt;&lt;P&gt;s_spart (division) from vbak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of entering valid input say user enters some invalid data(xxxxx)&lt;/P&gt;&lt;P&gt;i need to say this is invalid data&lt;/P&gt;&lt;P&gt;how can i do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 05:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311590#M506370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T05:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: validating selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311591#M506371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am giving a example of a single field of VKORG (sales orgn) similalrly check other fields&lt;/P&gt;&lt;P&gt;In FLow logic write&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking for the input fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHAIN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sales Organisation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FIELD: x_100-vkorg.&lt;/P&gt;&lt;P&gt;    MODULE check_so.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;double click on CHECK_SO and write the code&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  check_so  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Validate the Sales Organisation Value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE check_so INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if Sales Orgn is entered on the screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF okcode = 'ENTE'.&lt;/P&gt;&lt;P&gt;    IF x_100-vkorg IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE e051 WITH&lt;/P&gt;&lt;P&gt;      'Please enter Sales Organisation'(001).&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check Sales Organisation Value in table TVKO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SELECT SINGLE vkorg&lt;/P&gt;&lt;P&gt;             INTO x_100-vkorg&lt;/P&gt;&lt;P&gt;             FROM tvko&lt;/P&gt;&lt;P&gt;             WHERE vkorg = x_100-vkorg.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE e051 WITH&lt;/P&gt;&lt;P&gt;        'Sales Organisation does not exist'(002).&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " check_so  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 05:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311591#M506371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T05:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: validating selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311592#M506372</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 chain,end chain statements in PAI.In between chain and end chain use field statement and you can write ur code to validate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field s_matnr s_ebeln mobule m_module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In m_module u write ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 05:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311592#M506372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T05:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: validating selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311593#M506373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S_KUNNR-LOW NE &amp;lt;VALUE WHICH U WANT TO CHK&amp;gt; OR S_KUNNR-HIGH = &amp;lt;CHECKING VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE 'Pls enter correct value' TYPE 'E'.&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;SAME FOR ALL OTHER SELECT OPTION..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 05:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311593#M506373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T05:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: validating selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311594#M506374</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;Use the peace of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking for the input fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sales Organisation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FIELD: x_100-vkorg.&lt;/P&gt;&lt;P&gt;MODULE check_so.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&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;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 05:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311594#M506374</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-05-25T05:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: validating selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311595#M506375</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 pbo module&lt;/P&gt;&lt;P&gt;chain &lt;/P&gt;&lt;P&gt;    field s_kundi-fldname module check_input.&lt;/P&gt;&lt;P&gt;    field s_spart-fldname module check_1&lt;/P&gt;&lt;P&gt;   ..............&lt;/P&gt;&lt;P&gt; ........&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in code.&lt;/P&gt;&lt;P&gt;in global declaration part create tables that u r using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module check_input.&lt;/P&gt;&lt;P&gt;    select single fldname from s_kundi where fldname = s_kudi-fldname.&lt;/P&gt;&lt;P&gt;     if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        message E000(messclasname) with ' invalid data'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module check_input1.&lt;/P&gt;&lt;P&gt;      select single fldname from s_spart where fldname = s_spart-fldname.&lt;/P&gt;&lt;P&gt;     if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        message E000(messclasname) with ' invalid data'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endmodule.&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;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 05:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen/m-p/2311595#M506375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T05:58:58Z</dc:date>
    </item>
  </channel>
</rss>

