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

Enable screen entry after error message

Former Member
0 Likes
4,078

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

1 ACCEPTED SOLUTION
Read only

lijisusan_mathews
Active Contributor
0 Likes
1,629

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,629

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.

Read only

0 Likes
1,629

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

Read only

0 Likes
1,629

DO you wish to retaim the wrong values after generating the error message?

Then you might have to save it in a variable and pass it to teh screen.Because thsi would regenerate teh screen.

check this link :

[;

Edited by: sap_wiz on Jul 6, 2011 3:50 PM

Read only

lijisusan_mathews
Active Contributor
0 Likes
1,630

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

Read only

Former Member
0 Likes
1,629

Suzie


I had the same issue & your solution worked like magic. Thanks.