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

Error with select option field validation in module pool

Former Member
0 Likes
1,074

Hi experts,

I've a requirement with two screens of which first screen will have select option and some other fields and second screen will have table control.

Based on screen input data must be put in to table control of the second screen. I've declared selection screen and table control in the Top include and i have to do field validation for the first screen inputs which includes select option field validation also. For that i have used At selection screen event in the Top include.

But while activation it is showing following error.

Controls can only be defined only.(I have declared it in TOP include only)

There should only be definition in the (Top include) . Which means any sort of implementation is not meaningful.

Please help to do the field validations of the first screen.

Also at exit command module is not triggering with subscreen.

Regards,

Muthubalaji

6 REPLIES 6
Read only

former_member202818
Active Contributor
0 Likes
886

Hi,

In module pool we can't use report events.

Write validation in PAI of module pool screen.

or...

You can solve this by creating a report and a screen in it for table control.

Keep select options in selection screen and call screen.

Cheers

SP

Read only

0 Likes
886

Hi sree,

Thanks for your reply.

But when I validate after PAI it is saying Select option field is not defined.

Regards,

Muthu

Read only

RaymondGiuseppi
Active Contributor
0 Likes
886

How did you define the selection screen, as a classic report selection-screen or a subscreen ?

  • Ususally TOP include should only contain declaration, so put your AT SELECTION-SCREEN event/form in another exit.
  • Insure sub-screen definition is in a previous include.

Regards,

Raymond

Read only

0 Likes
886

Hi raymond,

I have declared subscreen in top include using module pool not in report. Same TOP include has table control. so when i write at selection screen it is throwing an error.

also im unable to use at exit command in PAI. since it is not triggering.

Regards,

Muthu

Read only

0 Likes
886

Did you insure every object is defined BEFORE it is used ?

Regards,

Raymond

Read only

Former Member
0 Likes
886

HI.

Use call sub-screen command both in PBO & PAI .

to validate , Use simple module validate in the chain endchain structure, inside the module .

Thanks

Vijay