‎2011 Nov 11 10:03 AM
Hello all,
I am implementing a user exit for CO11N screen and i want the control after hitting save button so i made a control for sy-ucomm and i gave an error message. But when i hit enter button after this error message, sy-ucomm still equal to BU so it gives error message again. How can i prevent this?
Thanks.
‎2011 Nov 11 10:06 AM
Dont just provide the blank error message, instead provide the message in some condition.
‎2011 Nov 11 10:54 AM
Im not creating blank message
i use the a term but the problem is, when i first hit save button and see the error message,than i hit enter button to pass the message and make the input fields editable again. But sy-ucomm is still equal to BU so it show the message again and again and i cant return to normal input screen. And if i make the message type 'S' i cant block the saving process.
I have to option first i will use type E message but i have to get over the problem above, or i will use type 'S' message but i have to stop the transaction after this message. I used type E like S or type S like E. They didnt work.
‎2011 Nov 11 11:52 AM
Hi,
Are you clearing your OK_CODE field after transferring it to the program ok code field. Always use a seperate ok code field in the program to recieve the OK_CODE from the screen and clear the OK_CODE. I guess that will solve your problem.
Regards,
Karthik D