2005 Sep 22 8:52 AM
hi,
just want to ask what can i do to validate certain fields after i input data in that field.
im using dynnpro screen.
example: i have input field date as a 3rd input box in my screen, i should validate this date after i input data in this input field.
how would i know if the date input field is the one i entered data.
thanks.
donna
2005 Sep 22 9:12 AM
Hi Den,
You can use the field statement.
Syntax:
Field <variable/screen field name> module <module name>.
Example:
Field v_date field module validate_date_field.
Then you can now create your validation routine under module
validate_date_field.
You can also try using Chain - EndChain if you want to validate multiple fields at the same time.
Happy coding!
hi,
just want to ask what can i do to validate certain fields after i input data in that field.
im using dynnpro screen.
example: i have input field date as a 3rd input box in my screen, i should validate this date after i input data in this input field.
how would i know if the date input field is the one i entered data.
thanks.
donna
2005 Sep 22 8:58 AM
Hi Donna,
You can use the following syntax.
chain.
field: <field1>,
<field2>.
module check_input_data.
endchain.
Thanks
Vinod
2005 Sep 22 8:59 AM
hi,
in the PAI event only you can validate the inputs if it's dynpro.
you can find the input field by field name
cheers,
sasi
2005 Sep 22 9:02 AM
hi
try with this
in the PAI event
field <fieldname> MODULE <module name>.
cheers,
sasi
2005 Sep 22 9:00 AM
In The PAI
FIELD <DATEFIELDNAME> MODULE CHECK_DATE ON INPUT.
In Proram
MODULE CHECK_DATE.
<Your Check here>
ENDMODULE.
The above module will be triggered only on an entry or change in the date field
Cheers
2005 Sep 22 9:12 AM
Hi Den,
You can use the field statement.
Syntax:
Field <variable/screen field name> module <module name>.
Example:
Field v_date field module validate_date_field.
Then you can now create your validation routine under module
validate_date_field.
You can also try using Chain - EndChain if you want to validate multiple fields at the same time.
Happy coding!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |