cancel
Showing results for 
Search instead for 
Did you mean: 

error handling in module pool program

Former Member
0 Kudos

hi,

in module pool program after enabling a field if the user enters an invalid value iam giving a error message.

message 'something' type 's' display like 'E'.

then again it should go to the previous screen where the user enters the value for that enabled filed.

can u guys share some ideas.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

if it is a ascreen field use the below syntax

Field <fieldname> module <module_validate>.

in the module validate write the validation and throw error message ,the screen will be in error position

if the field is in Table control

Loop at <table control>.

chain.

field <fieldnamemodule <module_validate>.

"in the module validate write the validation and throw error message ,the screen will be in error position

endchain.

Endloop.

Prabhudas

Former Member
0 Kudos

thank u.

Former Member
0 Kudos

Hi,

Use something like FIELD your field name MODULE validation module name in your PAI logic.

Then create a PAI module named validation module name and put your validation/error message in this module - this should trigger the validation for the field and not later in the flow.

Regards, Andy

Former Member
0 Kudos

thank u