<?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 validation is  not working in module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904000#M1962534</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 dont think you need to put the sy-ucomm check inthe field validation.it will anyway go inside the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you check the sy-ucomm whats the value that is comming in the sy-ucomm after you press display button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 07:40:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-22T07:40:23Z</dc:date>
    <item>
      <title>Field validation is  not working in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11903998#M1962532</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;Iam facing little trouble in validating field in module pool program,cannot able to find the where the problem is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The details are some thing like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1:i have added a field in screen for of type material number&lt;/P&gt;&lt;P&gt;like mara-matnr,&lt;/P&gt;&lt;P&gt;2:for validaton of that field i have written module validation.&lt;/P&gt;&lt;P&gt;3:module is called in PAI of screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAi of screen.&lt;/P&gt;&lt;P&gt;field field_var module validation------------&amp;gt;written like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module i have validated the fielld again mara table&lt;/P&gt;&lt;P&gt;module validation input.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;case 'DISPLAY'.&lt;/P&gt;&lt;P&gt;select single * from mara where matnr = field_Var.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;'''''''''''erroor message dislaI--------------&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endcase.&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;the problem is its not displaying the error if wrong material number is ebtered and display&amp;nbsp; push button is pressed.&lt;/P&gt;&lt;P&gt;while debugging also ints not going in PAI module after push button is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 06:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11903998#M1962532</guid>
      <dc:creator>former_member371529</dc:creator>
      <dc:date>2016-09-22T06:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation is  not working in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11903999#M1962533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May i know after pressing the push button, Where it is going, you said not going to pai.&lt;/P&gt;&lt;P&gt;How it is behaving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 07:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11903999#M1962533</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-09-22T07:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation is  not working in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904000#M1962534</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 dont think you need to put the sy-ucomm check inthe field validation.it will anyway go inside the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you check the sy-ucomm whats the value that is comming in the sy-ucomm after you press display button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 07:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904000#M1962534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-22T07:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation is  not working in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904001#M1962535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,after entering the material number if click push button it is bot going anywer in debugging...nothing after that.&lt;/P&gt;&lt;P&gt;expectation is it has to show error after push button is&amp;nbsp; pressed if invalid material&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 07:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904001#M1962535</guid>
      <dc:creator>former_member371529</dc:creator>
      <dc:date>2016-09-22T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation is  not working in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904002#M1962536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't check the sy-ucomm during field validation (actually never check it, check the ok_code field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your PAI logic should look like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;process&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;after&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;module&lt;/SPAN&gt; exit_command &lt;SPAN style="color: #0000ff;"&gt;at&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;exit-command&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;field&lt;/SPAN&gt; record-field1 &lt;SPAN style="color: #0000ff;"&gt;MODULE&lt;/SPAN&gt; check_field1&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;MODULE&lt;/SPAN&gt; user_command&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In exit_command manage the exit functions (e.g. back, cancel, exit) which don't require data validity in the user_command which is executed if check are passed, manage other functions. in both case use a code like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; lv_code&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;ok_code&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;clear&lt;/SPAN&gt; ok_code&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;case&lt;/SPAN&gt; lv_code&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;when&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'FUNCSAVE'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" some code&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;get&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;cursor&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;field&lt;/SPAN&gt; l_fieldname &lt;SPAN style="color: #0000ff;"&gt;line&lt;/SPAN&gt; l_line&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;when&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'FUNCTCODE'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" some other code&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;endcase&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Execute the checks in the modules associated to FIELD or CHAIN to raise error messages,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 08:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904002#M1962536</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-09-22T08:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field validation is  not working in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904003#M1962537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please enable the break point in&amp;nbsp; pbo. With&amp;nbsp; no if condition. &lt;/P&gt;&lt;P&gt;just write break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now press the push button, and tell me break-point reaching or not. &lt;/P&gt;&lt;P&gt;After pai, pbo has to trigger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pai also enable the break-point with no if condition.&lt;/P&gt;&lt;P&gt;after screen came, (after run execute the tcode) just press enter in material number &lt;/P&gt;&lt;P&gt;tell me pai will be triggering or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 08:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validation-is-not-working-in-module-pool-programming/m-p/11904003#M1962537</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-09-22T08:03:12Z</dc:date>
    </item>
  </channel>
</rss>

