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

ok_code is always empty

Former Member
0 Likes
1,620

I created a simple screen with two push buttons and their own function codes. in the program, I always get the ok_code value is empty. is there any additional configuration to make it works? thanks in advance.

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
959

Did you also define this ok_code in your screen? Look at one of the tabs of your screen. Here you'll see an empty field in which you can define the ok_code.

3 REPLIES 3
Read only

Sm1tje
Active Contributor
960

Did you also define this ok_code in your screen? Look at one of the tabs of your screen. Here you'll see an empty field in which you can define the ok_code.

Read only

Former Member
0 Likes
959

Hi,

1)

Declare the OK_CODE variable in the program..

2)

GO to the screen...in the "Element list tab" there will be row which has the Type as OK..There give OK_CODE in the Name column..

OR

You can directly use SY-UCOMM..in your program..

Thanks

Naren

Read only

0 Likes
959

yes I did not declare ok_code in screen, many thanks!