<?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: SAP Input Screen Validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529720#M1070596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank you very much for all your support &amp;amp; help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I got the solution for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I can enable or disable a field by mentioning a Function Code against it, in its properties, with a function type or 'E' or 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function code has to be trapped in the PAI event if the Function type as 'E'(Exit-Command) in &lt;/P&gt;&lt;P&gt;MODULE returnexit AT EXIT-COMMAND &lt;/P&gt;&lt;P&gt;              or&lt;/P&gt;&lt;P&gt;in the Process On Value Request event by mentioning the Function type as 'H'(Help Function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also transfer the control to another transaction by the Function type 'T'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can assign such Function codes only for Pushbuttons or  Input/Output fields with the "Dropdown box" attribute, not to any other controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2008 10:59:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-29T10:59:55Z</dc:date>
    <item>
      <title>SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529712#M1070588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have designed a screen in Module Pool Program in which I want to validate certain input fields. Based on the input given to a filed I want to enable or disable the next field or populate the next field with some value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do everything on the client side, not in the PAI event of that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the possible ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adavnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529712#M1070588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529713#M1070589</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 this once,&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;write the screen fields that are enable or disable&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;Regards,&lt;/P&gt;&lt;P&gt;Bharani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529713#M1070589</guid>
      <dc:creator>BH2408</dc:creator>
      <dc:date>2008-09-25T11:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529714#M1070590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Write the select statement for validating the data that is entered into your field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In &lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select statement .....&lt;/P&gt;&lt;P&gt;IF Sy-subrc &amp;lt;&amp;gt;  0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ZFORM-CISWK = 'NO'.  " &lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZFORM-YISWK'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&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;STRONG&gt;PAI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ZFORM-CISWK = 'YES'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZFORM-YISWK'. "field which has to&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;SCREEN-OUTPUT = 1.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;So according top your select statement the screen fields witll be validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my answer helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 12:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529714#M1070590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T12:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529715#M1070591</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 like this at PBO&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 loop at screen.
 if screen-name = 'p_field2'.
  if  p_field1 is initial.
   screen-input = 0.
  modify screen.
endif.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THe above code is checking if there is value in p_field1 and if there is no value it it is deactivating p_field2.Similarly you can use your own logic also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 12:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529715#M1070591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T12:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529716#M1070592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; As per all your  tips, I need to code the loop statement in the PBO or PAI events.&lt;/P&gt;&lt;P&gt; But I was searching something like a client side scripting validations, as it is done through Javascript in web pages, not server side code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The validations that I  need, are to be done by SAP system without any kind of event triggering.&lt;/P&gt;&lt;P&gt;E.g : Mandatory fields validation.(This check is made before the control is transferred to PAI event from the screen, we can check this by placing a break point in the first line of the first module in the PAI event)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 12:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529716#M1070592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T12:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529717#M1070593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;  You can try by declaring some fixed values for the field at the domain level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 13:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529717#M1070593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529718#M1070594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try with Javascript in ABAP, i never tried in ABAP, i used in BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAPDOCU you can see some Demo programs try out.&lt;/P&gt;&lt;P&gt;and aslo check the DEMO&lt;STRONG&gt;JAVA&lt;/STRONG&gt;SCRIPT* programs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 13:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529718#M1070594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T13:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529719#M1070595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had gone through the abapdocu examples but nowhere I cudnt find an example how to call a javascript fucntion with respect to a control(textbox) in a screen(like onchange event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Canyone suggest how to bind a javascript function to a screen element and validate it and where to place the code(not in a module in PAI block)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 16:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529719#M1070595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T16:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529720#M1070596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank you very much for all your support &amp;amp; help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I got the solution for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I can enable or disable a field by mentioning a Function Code against it, in its properties, with a function type or 'E' or 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function code has to be trapped in the PAI event if the Function type as 'E'(Exit-Command) in &lt;/P&gt;&lt;P&gt;MODULE returnexit AT EXIT-COMMAND &lt;/P&gt;&lt;P&gt;              or&lt;/P&gt;&lt;P&gt;in the Process On Value Request event by mentioning the Function type as 'H'(Help Function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also transfer the control to another transaction by the Function type 'T'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can assign such Function codes only for Pushbuttons or  Input/Output fields with the "Dropdown box" attribute, not to any other controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529720#M1070596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T10:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Input Screen Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529721#M1070597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for all your support &amp;amp; help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can enable or disable a field by mentioning a Function Code against it, in its properties, with a function type or 'E' or 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function code has to be trapped in the PAI event if the Function type as 'E'(Exit-Command) in &lt;/P&gt;&lt;P&gt;MODULE returnexit AT EXIT-COMMAND &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;in the Process On Value Request event if the Function type is 'H'(Help Function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also transfer the control to another transaction by the Function type 'T'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can assign such Function codes only for Pushbuttons or Input/Output fields with the "Dropdown box" attribute, not to any other controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 11:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-input-screen-validation/m-p/4529721#M1070597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T11:03:22Z</dc:date>
    </item>
  </channel>
</rss>

