‎2007 May 02 5:56 PM
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 ?
‎2007 May 02 5:58 PM
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
‎2007 May 02 6:02 PM
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.
‎2007 May 02 6:05 PM
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.
‎2007 May 02 6:19 PM
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