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

Field validation in module pool program

anand_n5
Explorer
0 Likes
3,941

Hi experts i have a problem in module pool program. I have created a screen with two fields and two function keys DISPLAY CREATE where i have to check these fields for validation.I know the syntax for field validation  (field<fld name> module<module name>) but the problem is i have to check both the fields for validation means if press display or create when both the fields are empty it should generate a massage that both fields are empty..please help me to solve this problem.   

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,315

Hae you can do validation in PAI by placing those two fields in between CHAIN & ENDCHAIN .

Please refer the below screenshot for reference.

Regards,

Praveen Chitturi

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,315

Use CHAIN ... ENDCHAIN in the PAI.

Regards,

Raymond

Read only

0 Likes
2,315

thank you

Read only

Former Member
0 Likes
2,316

Hae you can do validation in PAI by placing those two fields in between CHAIN & ENDCHAIN .

Please refer the below screenshot for reference.

Regards,

Praveen Chitturi

Read only

0 Likes
2,315

thank you praveen i got your point but in the above screen shot u wrote chain and endchain in PBO. I dont understand this  will u pls tell me y u wrote that PBO

Read only

0 Likes
2,315

Hi anand,

It should be in PAI only which is meant for validation checks for the fields mentioned in Chain and enchain. That was the code I had written when I am doing a mini project at my learning stage. It is not at all required to mention in PBO.

IT SHOULD BE IN PAI MODULE ONLY.

Regards,

Praveen Chitturi

Read only

0 Likes
2,315

Was it helped to you and problem solved?

Read only

0 Likes
2,315

thank you praveen