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

calling next screen when press enter

Former Member
0 Likes
1,015

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
Read only

Former Member
0 Likes
845

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

Hello Friends,

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

Thanks & Regards

jayaraman veda.

6 REPLIES 6
Read only

Former Member
0 Likes
845

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.

Read only

Former Member
0 Likes
845

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

Read only

Former Member
0 Likes
845

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

Read only

Former Member
0 Likes
845

in PAI user module write this code.

case sy-ucomm.

when ' '.

call screen <screen number>

endcase.

Here empty space refers to enter.

Read only

Former Member
0 Likes
846

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

Read only

Former Member
0 Likes
845

Hai Kalpanashri,

Helpful answer. Thanx.

Jayaraman veda.