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 (ok_code) is empty when doin an action after an error message

Former Member
0 Likes
1,234

hi there,

ive got a dynpro in which i have a button to create a user. i don't have rights to create a new user so i catch the error and show it as error message on the bottom. this works so far but after that when im pushing any button theres nothing goin to happen. the ok_code, sy-ucomm is empty then. when i try it again it works, but then again nothing happens when i push a button. every second time i push a button its not working. why?

hi there,

ive got a dynpro in which i have a button to create a user. i don't have rights to create a new user so i catch the error and show it as error message on the bottom. this works so far but after that when im pushing any button theres nothing goin to happen. the ok_code, sy-ucomm is empty then. when i try it again it works, but then again nothing happens when i push a button. every second time i push a button its not working. why?

2 REPLIES 2
Read only

Former Member
0 Likes
720

Dont use error message in this case..

Rather use an information message. then exit

and then

call screen Screen_number.

This is the way to show an error message when you dont want you program to hault.

Let me know if, you have any doubts or if ive not been able to express correctly

Read only

0 Likes
720

hi,

yea i got that by myself, the same day i postet my question just didnt know how to close this thread

thanks anyway for ur help.

peace