2011 Jul 06 10:20 AM
Hello experts,
I am working on a exit for CO11N. We already have added few fields on this screen.
Now the requirement is that there are two fields, if a user enters anything in first field but the second field is initial then a error message should come asking to enter the value in second filed as well.
I put the condition in exit and sending a error message for this. But now the problem is that the screen become disable on this error message.
I want either the second field remain enable or on next enter the whole screen becomes enable.
Can you please help me on this.
Thanks in advance.
Best Regards
Ankur Gupta
2011 Jul 06 11:07 AM
Try doing the following: -
suppose your new fields are field1 and field2
process after input.
chain.
field field1.
field field2.
module check_validation on chain input.
endchain.
In the module check_validations, write your validation code and pop the error. In this case, the remaining fields in that chain group should be enabled.
Suzie
Hello experts,
I am working on a exit for CO11N. We already have added few fields on this screen.
Now the requirement is that there are two fields, if a user enters anything in first field but the second field is initial then a error message should come asking to enter the value in second filed as well.
I put the condition in exit and sending a error message for this. But now the problem is that the screen become disable on this error message.
I want either the second field remain enable or on next enter the whole screen becomes enable.
Can you please help me on this.
Thanks in advance.
Best Regards
Ankur Gupta
2011 Jul 06 10:28 AM
hi,
in module pool, the input fields get greyed out when we generate an error message.In order to enable them you need to do following in pai.
PROCESS AFTER INPUT.
CHAIN.
FIELD : <field1>,
<field2>,
<field3>,
<field4>
MODULE <module_name>.
ENDCHAIN.
2011 Jul 06 10:55 AM
Hi
Thanks for your reply. It works but now the problem is that the value I entered in second field is showing as blank.
Can you please suggest.
Best regards
Ankur Gupta
2011 Jul 06 11:17 AM
2011 Jul 06 11:07 AM
Try doing the following: -
suppose your new fields are field1 and field2
process after input.
chain.
field field1.
field field2.
module check_validation on chain input.
endchain.
In the module check_validations, write your validation code and pop the error. In this case, the remaining fields in that chain group should be enabled.
Suzie
2015 Sep 23 3:34 PM
Suzie
I had the same issue & your solution worked like magic. Thanks.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |