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

Problem with ENTER in module pool

Former Member
0 Likes
577

Hi,

I am calling a screen in my main program.

When I press enter it should carry some functionality, but it is not happening.

I wrote the code assuming sy-ucomm when it is space, but it is not working. I even tried assigning a function code in the PF status for the enter(tick button) in Standard toolbar which wasnt working too.

But when I click the debugger on and see then the enter functionality is working. But when running in foreground without the debugger it is not working.

It is something like when I swithc on the dubugger the functinality works and in the foreground it is not working.

Please suggest.

Regards,

Deepti

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
543

What is the value of the ok_code field ?

(As a rule don't use sy-ucomm in your programs)

Regards,

Raymod

Read only

0 Likes
543

Hi,

I have used a field called gv_ok_code for ok_code in elemnt attributes

I have even tried with sy-ucomm. Both werent working.

Regards,

Deepti

Read only

0 Likes
543

Hi Deepti,

Write your required code in OTHERS branch of CASE OK_CODE statement In your PAI.

What is that functionality exactly you are looking for when you click on Enter ?

Read only

0 Likes
543

Hi,

I found the solution. I was using container of full screen size because of which it is not taking the enter. I decreased the container size and it is working fine.

Thank you for your replies.