Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using pattern on screen

Former Member
0 Likes
341

Hi experts,

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.

1 REPLY 1
Read only

Former Member
0 Likes
288

Hi,

First you would have to define the Particular Pattern wich you want to confirm with,say for example

data g_pattern type string 'CF+H'.

In screen 100 in PAI---validate the input field

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.

so if user input 'ABC123FGH' IT will be true.

Regards,

Neha

Edited by: Neha Shukla on Mar 3, 2009 6:38 PM