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

Even After Debugging iam unable get function code of ENTER key on selection-screen.

Former Member
0 Likes
1,375

Hi all Experts,

iam clearing all the selection-screen parameters after modifying,through At Selection-screen Output event.

But all parameters are getting cleared even if i press Enter key.

so how to get function code of Enter key in selection-screen.?

Thanks in advance,

Kiran.

Hi all Experts,

iam clearing all the selection-screen parameters after modifying,through At Selection-screen Output event.

But all parameters are getting cleared even if i press Enter key.

so how to get function code of Enter key in selection-screen.?

Thanks in advance,

Kiran.

5 REPLIES 5
Read only

former_member196331
Active Contributor
0 Likes
1,341

You can put one button in Selection screen then check with sy-ucomm at selection-screen output then

clear the content.If it is possible

Hope you understood.

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
1,341

You can declare

TABLES sscrfields.

and look at

sscrfields-ucomm


Read only

0 Likes
1,341

Horst,

You did set me straight - I can't find the post now - Standard selection screen programs do have a "built-in" GUI Status that returns ONLI for an Enter. I played around with a test program and found that the problem is that Kiran Kanth is trying to use AT SELECTION-SCREEN OUTPUT. The sscrfields and sy-ucomm are both available only on the AT SELECTION-SCREEN. The OUTPUT behaves like the PBO in a dialog program.

DATA:

  werks TYPE werks_d.

TABLES sscrfields.

SELECTION-SCREEN BEGIN OF BLOCK plant WITH FRAME.

SELECT-OPTIONS r_werks FOR werks.

SELECTION-SCREEN END OF BLOCK plant.

AT SELECTION-SCREEN OUTPUT.

  CASE sscrfields-ucomm. "Or sy-ucomm

    WHEN 'ONLI'.

      "My Code

  ENDCASE.

START-OF-SELECTION.

Read only

0 Likes
1,341

yes,Thats right.

Read only

raghug
Active Contributor
0 Likes
1,340

In your GUI Status, have you specified a function code for enter? Without that even the sscrfields-ucomm will be blank