Application Development 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: 

validate after data entered in a input field

Former Member
0 Kudos
517

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

former_member355937
Participant
0 Kudos
126

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!

5 REPLIES 5

Vinod_Chandran
Active Contributor
0 Kudos
126

Hi Donna,

You can use the following syntax.

chain.

field: <field1>,

<field2>.

module check_input_data.

endchain.

Thanks

Vinod

Former Member
0 Kudos
126

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

0 Kudos
126

hi

try with this

in the PAI event

field <fieldname> MODULE <module name>.

cheers,

sasi

Former Member
0 Kudos
126

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

former_member355937
Participant
0 Kudos
127

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!