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

validations on module pool screen

Former Member
0 Likes
609

Hi Folks

I am performing some validations on fields in the module pool screen , its not a normal selection screen , so at selection screen does not work here . When i give an error message , all the fields are greyed and user cannot input any values after that . How to solve this problem ?

4 REPLIES 4
Read only

Former Member
0 Likes
579

If you hit enter after the message is displayed then you should be able to input values again. It shouldn't require a coding change.

- April King

Read only

Former Member
0 Likes
579

in flow logic PAI write a module using field syntax.

Field <field name> module <module name>.

now in tht module do ur validation & give error message it wont go to disable mode.

Read only

Former Member
0 Likes
579

write your code inside this block, if u want to retrict user from ignoring this error.

the advantage in this approach is, user will be prompted to change the field which the error is,... once that is corrected,.. user will be able to proceed.

chain.

ur code here...

endchain.

Read only

Former Member
0 Likes
579

HI,

You need to write the Module in between the CHAIN and ENDCHAIN statment in SE51

If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:

CHAIN.

FIELD: <f1>, <f 2>,...

MODULE <mod1>.

FIELD: <g1>, <g 2>,...

MODULE <mod2>.

...

ENDCHAIN.

all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.

Look at the DEMO program DEMO_DYNPRO_FIELD_CHAIN

Regards

Sudheer

Message was edited by:

Sudheer Junnuthula