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: 

calling next screen when press enter

Former Member
0 Kudos

Hello Friends,

please tell me the code to call a new screen when give enter in the previous screen.

Thanks & Regards

jayaraman veda.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi friend,

try this

in PAI of previous screen write following codes:

if sy-ucomm = ok_code.

call screen 101.

endif.

thanks and regards

vijay

6 REPLIES 6

Former Member
0 Kudos

Hi,

in PAI of previous screen write following codes:

if sy-ucomm = 'ENTE'. "Check sy-ucomm for enter in debugging and give here

call screen 101. "This is next screen

endif.

Former Member
0 Kudos

Hi Veda,

In dialog prgmming when u click enter means it will directly take the comtrol to PBO(Process before Output) There u need to write the code directly or by checking the condition by using Sy-ucomm field...

Reward if useful

Former Member
0 Kudos

Hi Jayaraman,

find out the fcode for enter using debugging.

e.g it is &ent .In PAI module of screen. write this code :

case sy-ucomm.

when '&ent'.

call screen 2000.

endcase.

Regards,

Hemant

Former Member
0 Kudos

in PAI user module write this code.

case sy-ucomm.

when ' '.

call screen <screen number>

endcase.

Here empty space refers to enter.

Former Member
0 Kudos

hi friend,

try this

in PAI of previous screen write following codes:

if sy-ucomm = ok_code.

call screen 101.

endif.

thanks and regards

vijay

Former Member
0 Kudos

Hai Kalpanashri,

Helpful answer. Thanx.

Jayaraman veda.