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: 

Field validation in module pool program

anand_n5
Explorer
0 Kudos
2,574

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

Former Member
0 Kudos
948

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

RaymondGiuseppi
Active Contributor
0 Kudos
948

Use CHAIN ... ENDCHAIN in the PAI.

Regards,

Raymond

0 Kudos
948

thank you

Former Member
0 Kudos
949

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

0 Kudos
948

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

0 Kudos
948

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

0 Kudos
948

Was it helped to you and problem solved?

0 Kudos
948

thank you praveen