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

Get ok_code or sy-ucomm in a subscreen

Former Member
0 Likes
1,595

Hi experts,

I have a SUBSCREEN and I would like to get an ENTER from user in a edit.

OK_CODE and sy-ucomm are both empty.

Thks,

Antoine

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
891

Try using a couple of Pushbuttons to allow the user to make a selection as yes or no . In this case you can assign the ok_code values in the elements list for the corresponding push button fields , Which should be supported further by the flow logic . Try if it works

Thnks

Hi experts,

I have a SUBSCREEN and I would like to get an ENTER from user in a edit.

OK_CODE and sy-ucomm are both empty.

Thks,

Antoine

3 REPLIES 3
Read only

Former Member
0 Likes
891

Hello,

In SAP system, ENTER command mostly results in blank value of user command field. Try to avoid using the same as much as possible.

Regards,

Shaurya Jain

Read only

Former Member
0 Likes
892

Try using a couple of Pushbuttons to allow the user to make a selection as yes or no . In this case you can assign the ok_code values in the elements list for the corresponding push button fields , Which should be supported further by the flow logic . Try if it works

Thnks

Read only

Former Member
0 Likes
891

Hi,

Subscreens cannot have their own OK_CODE field. Function codes linked to user actions on subscreens are placed in the OK_CODE field of the main screen.

Check by placing the ok_code in flow logic of the main screen.