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

Leaving the Screen

Former Member
0 Likes
1,070

Hey Guys,

I have created a transaction which would call up a screen upon execution. But when the button is ticked to go to another screen, the previous screen is still visible in the background.

I want to know how can I get rid of the previous screen when I already call the next screen.

I already declared SET SCREEN 0 before CALLing the next screen.

Your help will be greatly appreciated.

Thanks!

Mark

Hey Guys,

I have created a transaction which would call up a screen upon execution. But when the button is ticked to go to another screen, the previous screen is still visible in the background.

I want to know how can I get rid of the previous screen when I already call the next screen.

I already declared SET SCREEN 0 before CALLing the next screen.

Your help will be greatly appreciated.

Thanks!

Mark

8 REPLIES 8
Read only

Former Member
0 Likes
1,043

Hi,

Don't declare SET screen 0, Directly write as call screen 101 after the button is clicked.

regards,

Santosh Thorat

Read only

Former Member
0 Likes
1,043

use leave to screen

Read only

former_member386202
Active Contributor
0 Likes
1,043

Hi,

Use CALL SCREEN , it will work

Regards,

Prashant

Read only

Former Member
0 Likes
1,043

Try with LEAVE TO SCREEN <scrn_no>.

and before that write 'SET SCREEN <scrn_no>.

Read only

0 Likes
1,043

Thanks for your quick responses guys but I still have the same problem after trying out all your suggestions.

Please see below sample code:

CLEAR v_lines.

CASE sy-ucomm.

WHEN c_ucom4. " SAVE

DESCRIBE TABLE i_tab LINES v_lines.

ADD 1 TO v_lines.

READ TABLE i_tab WITH KEY zname = wa_tab-zname.

IF sy-subrc NE 0.

INSERT wa_tab INTO i_tab INDEX v_lines.

INSERT ztable FROM wa_atab.

CLEAR: v_lines, wa_atab.

  • v_tag = c_x.

ELSE.

MESSAGE i005.

ENDIF.

MESSAGE i007.

LEAVE TO SCREEN 0.

CALL SCREEN '0103' STARTING AT 30 5 ENDING AT 70 13.

  • LEAVE TO SCREEN '0103'.

WHEN c_ucom5. "BACK

LEAVE TO SCREEN 0.

CALL SCREEN '0103' STARTING AT 30 5 ENDING AT 70 13.

WHEN OTHERS.

ENDCASE.

Read only

0 Likes
1,043

use only leave to screen scrno

Read only

Former Member
0 Likes
1,043

Use CALL SCREEN or LEAVE TO SCREEN

Read only

Former Member
0 Likes
1,043

Try using just EXIT instead of call transaction or leave to screen.

Rewards if helpful!!!