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

Custom table validation

Former Member
0 Likes
785

Hi,

I wanted to validate the entries of custom table fields through custom code with custom messages for wrong entries.Werein the PAI do i need to change the code or modify the code?

Pls post ideas for this.

Thanks,

Stock

4 REPLIES 4
Read only

Former Member
0 Likes
634

Hi stock,

1. In PAI first of all write

MODULE MYABC.

2. Define one module (in any include , or top include, or main program itself)

MODULE MYABC INPUT.

ENDMODULE.

3. inside this module,

write your code :

a) check of save okcode

b) do validations

c)if validations not ok, u can issue message of type 'E'

regards,

amit m.

Read only

Former Member
0 Likes
634

Are you using standard maintenance or your own custom code for maintaining entries in this table?

Read only

Former Member
0 Likes
634

if you are maintaining the table maintenance generator

then just write the code for the custom events available

goto utilities ->Table Maintenance Generator->Utilities->Modification->Events

Here you can write code for any validation you require in your custom table fields

Read only

0 Likes
634

or SE54, 'Environment-->Events'. You can use event 01.