<?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: Using pattern on screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-pattern-on-screen/m-p/5272915#M1217188</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;First you would have to define the Particular Pattern wich you want to confirm with,say for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data g_pattern type string '&lt;STRONG&gt;C&lt;/STRONG&gt;F+H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In screen 100 in PAI---validate the input field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
* To validate input 
  FIELD g_input MODULE check_input.


MODULE check_input INPUT.
     IF  g_input CP g_pattern.
*     code
    else.
*    Raise message to input as per the patter         
    endif.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if user input 'ABC123FGH' IT will be true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Mar 3, 2009 6:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2009 13:08:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-03T13:08:12Z</dc:date>
    <item>
      <title>Using pattern on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-pattern-on-screen/m-p/5272914#M1217187</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 create a pattern on a screen. For example I created a SCREEN 100. On the screen I have an input field. I want allow to write in the input field if it is according to a specific pattern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 10:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-pattern-on-screen/m-p/5272914#M1217187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T10:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using pattern on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-pattern-on-screen/m-p/5272915#M1217188</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;First you would have to define the Particular Pattern wich you want to confirm with,say for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data g_pattern type string '&lt;STRONG&gt;C&lt;/STRONG&gt;F+H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In screen 100 in PAI---validate the input field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS AFTER INPUT.
* To validate input 
  FIELD g_input MODULE check_input.


MODULE check_input INPUT.
     IF  g_input CP g_pattern.
*     code
    else.
*    Raise message to input as per the patter         
    endif.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if user input 'ABC123FGH' IT will be true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Mar 3, 2009 6:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 13:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-pattern-on-screen/m-p/5272915#M1217188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T13:08:12Z</dc:date>
    </item>
  </channel>
</rss>

