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

sy-ucomm problem when hitting enter button

Former Member
0 Likes
1,107

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.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
886

Dont just provide the blank error message, instead provide the message in some condition.

Read only

0 Likes
886

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.

Read only

0 Likes
886

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