‎2009 Mar 03 10:42 AM
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.
‎2009 Mar 03 1:08 PM
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