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

Leave screen?

Former Member
0 Likes
742

How can I return back? If I press the button the program says nothing. And I cann't go back.

Thanks!

TABLES sscrfields.

SELECTION-SCREEN PUSHBUTTON /10(20) btn1 USER-COMMAND bnt1.

INITIALIZATION.

MOVE 'Here!!! TO btn1.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

ENDIF.

START-OF-SELECTION.

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
721

Hi,

do like this

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE LIST-PROCESSING .

ENDIF.

OR try like this

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE TO SCREEN 0.

ENDIF.

Regards,

Nagaraj

7 REPLIES 7
Read only

Former Member
0 Likes
721

TABLES sscrfields.

SELECTION-SCREEN PUSHBUTTON /10(20) btn1 USER-COMMAND bnt1.

INITIALIZATION.

MOVE 'Here!!! TO btn1.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE TO program.

ENDIF.

START-OF-SELECTION.

Read only

Former Member
0 Likes
721

u can use CALL SCREEN 0.

reward if useful.

thanx

Read only

former_member404244
Active Contributor
0 Likes
722

Hi,

do like this

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE LIST-PROCESSING .

ENDIF.

OR try like this

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE TO SCREEN 0.

ENDIF.

Regards,

Nagaraj

Read only

Former Member
0 Likes
721

Hi Andrei,

There is no need for the code

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

Remove this code and try.

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
721

TABLES sscrfields.

SELECTION-SCREEN PUSHBUTTON /10(20) btn1 USER-COMMAND bnt1.

INITIALIZATION.

MOVE 'Here!!! TO btn1.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'BNT1'.

WRITE 10 'test'.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

LEAVE TO SCREEN 0.

ENDIF.

START-OF-SELECTION.

Read only

Former Member
0 Likes
721

Hi,

This is right answer.

There is no need for the code

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

Remove this code and try.

L.Velu

Read only

Former Member
0 Likes
721

Hi,

Use leave to screen 0 instead of LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.