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

validate after data entered in a input field

Former Member
0 Likes
1,746

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,355

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

5 REPLIES 5
Read only

Vinod_Chandran
Active Contributor
0 Likes
1,355

Hi Donna,

You can use the following syntax.

chain.

field: <field1>,

<field2>.

module check_input_data.

endchain.

Thanks

Vinod

Read only

Former Member
0 Likes
1,355

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

Read only

0 Likes
1,355

hi

try with this

in the PAI event

field <fieldname> MODULE <module name>.

cheers,

sasi

Read only

Former Member
0 Likes
1,355

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

Read only

Former Member
0 Likes
1,356

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!