Application Development 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: 

using sy-comm checking in if condition

0 Kudos

In module pool screen If I remove the screen input field value I am viewing all records in table control. When input field value is not available no data should be shown.By using this code table data was cleared when am using enter action twice

if sy-ucomm <> 'enter' and I_RECNAME IS INITIAL.
.
REFRESH it_rec[].
endif.

1 ACCEPTED SOLUTION

VenkatRamesh_V
Active Contributor

Hi,

you can keep the field as obligatory. input field as 'Required'. double click on screen field

scn.jpg

Regards,

Ramesh

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

I don't understand. What is the function code "enter" (lower case?), and what is the question? Thanks.

VenkatRamesh_V
Active Contributor

Hi,

you can keep the field as obligatory. input field as 'Required'. double click on screen field

scn.jpg

Regards,

Ramesh

0 Kudos

Yes I put it as obligatory .Thanks